Hello. There is a need to write the following script: the Word file is uploaded to GoogleDrive, we get its id and through file_export we give the link to download the PDF file. Initially I tried to directly upload the file to GoogleDrive. It was loaded there, but then it could not be exported to PDF. However, to export, we need to have a GoogleDocs file with the MimeType "application / vnd.google-apps.document".

After long googling I found the following link , but using the code from it I did not get the desired result.

I also read in one place that you can pass the convert: TRUE parameter in the request to GoogleDrive and he himself will try to convert it into his own formats.

How to build a query in GoogleDrive to succeed?

0