Is there a way to export / serve a document as a PDF via the API in google app script?
I know there exists a download as pdf option, but I am not looking for that. I am looking to create a PDF document in google drive via the app script API.
I use this:
oOutputFile.saveAndClose();
DocsList.createFile(oOutputFile.getAs('application/pdf')).rename(cOutputName+".pdf");
where oOutputFile is my Doc, and cOutputName is the name I want to give to the file.
Chris
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With