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.
Yes. Try the File.getAs() method