douzong5473 2013-07-04 09:23
浏览 20
已采纳

将google文档作为downloadUrl获取

I am currently trying to get the downloadURL from a response sent via my server of which, whenever $file->getdownloadUrl() is used it returns ['downloadURL'] =>

My question is, is it possible to download Google Documents in the application/vnd.google-apps.document MIME Type?

My assumption is, these would contain a link to the online version of the document, but it would be good to be able to edit the document in the correct format so that any formatting done would be retained when re-uploaded to drive,

Regards,

  • 写回答

1条回答 默认 最新

  • duanqiao1947 2013-07-04 09:37
    关注

    Nope, you cannot download Google Documents in application/vnd.google-apps.document MIME type. You only can export it to other formats.

    Some workarounds:

    1. Apps script Document Services provide a little bit better control over the document, but you won't be able to get full control over all formatting for now.
    2. Export file as known formats such as Microsoft words and edit it. When you upload it back to Drive, you can request to convert it back to Google Docs format. Although you might possibly lose or corrupt with some formatting.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Excel发现不可读取的内容
  • ¥15 UE5#if WITH_EDITOR导致打包的功能不可用
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面
  • ¥15 算法题:数的划分,用记忆化DFS做WA求调
  • ¥15 chatglm-6b应用到django项目中,模型加载失败
  • ¥15 CreateBitmapFromWicBitmap内存释放问题。