Reputation: 77
I created a Google document file in Google Drive. How can I convert that file to a Word document using Google Drive API.
Upvotes: 2
Views: 1453
Reputation: 6791
Depending on the type of download you'd like to perform — a file, a Google Document, or a content link — you'll use one of the following URLs:
- Download a file — files.get with
alt=media
file resource- Download and export a Google Doc — files.export
- Link a user to a file —
webContentLink
from the file resource
Depending on the type of download you'd like to perform — a file, a Google Document, or a content link — you'll use one of the following URLs:
- Download a file — either files.get with
alt=media
, ordownloadURL
from the file resource- Download and export a Google Doc —
exportLinks
from the file resource- Link a user to a file —
webContentLink
from the file resource
Google Doc formats and supported export MIME types map to each other as follows:
MS Word document application/vnd.openxmlformats-officedocument.wordprocessingml.document
If you are trying to do it programmatically try following this tutorial using Apps Script.
Upvotes: 2