Bulk convert all the Google Docs within a given folder to PDFs and optionally delete the Docs afterward, version 2.0
The following Google Apps Script tool is designed to bulk convert all Google Docs within a given Google Drive folder into PDFs. You can choose the destination folder for the PDFs to be put into and also whether you want the original Docs to be deleted. This tool does work on Shared drives.
It is an improved version of this Google Doc to PDF tool post.
Improvements / Features
- Maximum runtime – in order to prevent the tool from reaching the limits imposed by Google you can adjust the number of minutes the tool can run for. Change this in the ‘GlobalVariables.gs’ file in the Script Editor.
- Continue from where it left off – if you have a lot of Google Docs to convert and the above runtime is reached the tool will save its progress and prompt you to run it again, avoiding any file duplication.
- HTML popup – as well as the ‘Log’ sheet the tool now displays a direct popup to the user if it encounters a problem.
- PDF counter – after successfully running the tool will include the number of PDFs created as part of the success popup to the user.
Source: The Gift of Script: Bulk convert Google Docs to PDFs 2.0
I use Google Apps Script to support staff and students in my job. I enjoy dabbling with creating tools to help with automation and I freely share my learning experiences on my blog: www.pbainbridge.co.uk