Reputation: 6566
When I have a File in Google Drive that is a native Google Docs document, then I have access to exportLinks
for different mime-types, also for PDF;
But I have MSWORD documents that have been generated. The exportLinks
property is always null
for MSWORD document. In the web interface I can print which downloads a perfectly converted PDF document.
Question: can I generate a PDF from a MSWORD file somehow using the SDK ?
Been up and down through the docs looking for clues.
The download/print link downloads from a real long URI :
https://doc-0o-a0-docsviewer.googleusercontent.com/viewer/securedownload/1ve0rd17der7n5d32lker62ffdq2175h/<randomstring>/<longnumber>/<randomstring>=/<randomstring>/<randomstring>==?docid=<randomstring>&chan=<randomstring>&dom=<googleappsdomain>&sec=<randomstring>&a=gp&filename=<filename>&nonce=<nonce>&user=<userid>&hash=<hasvalue>
anybody ?
Thx
Upvotes: 0
Views: 565
Reputation: 15024
ExportLinks are only provided for documents in Google-native formats, so you'll have to convert the MS Word document to Google Docs before you can export it as pdf (and other supported file formats).
Upvotes: 1