Schedule Recurring PDF Exports from a Shared Drive
If you export the same shared drive folder every week or every month, setting up a scheduled Apps Script automation saves the manual effort every time. The script accesses the shared drive folder, exports each file to PDF, and saves the results to a dated folder in Drive automatically.
Writing a shared drive export script
In Google Apps Script, use DriveApp.getFolderById() with the shared drive folder ID to access the folder. Iterate over the files, export each compatible file using the PDF MIME type, and save the output to a designated folder. The folder ID is found in the URL when you open the folder in Drive.
Setting up the recurring trigger
After testing the script manually, go to Triggers in Apps Script and create a time-based trigger for your function. Set the frequency to weekly, monthly, or whatever matches your reporting cycle. The script runs automatically without any manual steps.
Email notifications for completed runs
Add a MailApp.sendEmail() call at the end of the script to notify you or the team when the scheduled export completes. Include the number of files converted and any errors. This confirms the automation ran without requiring you to log in and check.
Frequently Asked Questions
Can the Docs to PDF extension run scheduled exports automatically?
No. The Chrome extension requires user interaction. For scheduled, unattended exports, use Google Apps Script.
Can the Apps Script access a shared drive my personal account is a member of?
Yes. Apps Script runs under your account credentials and can access shared drives you have been added to.
Ready to Try It?
Install the free Chrome extension and start converting your Google Docs to PDF in one click.
Install Free Extension