Is it possible to covert Word docs to a Google Doc?

℡╲_俬逩灬. 提交于 2019-12-13 01:26:52

问题


I am uploading Word documents to Google Drive using the Google SDK. I can view these files once uploaded through the Google Drive interface, but to edit these documents I need to selected "Open with Google Docs". When I do this, Google makes another version of the file and saves it to my Google Drive.

I want to automatically create a URL for users to click on once their file has been uploaded, so I presume I somehow need to convert the uploaded file (Word Document) to a Google Docs file so a user can then edit it and save it. Is this possible?


回答1:


You need to send the optional query parameter of convert

convert (boolean) Whether to convert this file to the corresponding Google Docs format. (Default: false)

Documentation for Google Drive Insert



来源:https://stackoverflow.com/questions/24180602/is-it-possible-to-covert-word-docs-to-a-google-doc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!