Google Apps Script – Print, Open, or Download Google Doc as PDF

google-apps-script

I have created a Form that will run a script on submit to dynamically generate a google doc. So far so good.

What I miss is a way to:

  • Print the document (open the printing preview in browser)
  • Preview document (Google doc preview)
  • Download document

Apparently there's no way to let the script interact with the browser. Is this true?

Best Answer

Yes, that is true for server-side code. Some people published Chrome Extensions or used client side code to make it possible to automate some web browser tasks like the one suggested by Jacob Jan Tuinstra on his answer to Print all Gmail messages between specific dates

Related