Automatically Convert a Google Drive Folder to PDF
If you need PDFs from the same Drive folder repeatedly, automation removes the manual steps entirely. Google Apps Script connects to your Drive and can export every file in a specified folder to PDF on demand or on a schedule. This is useful for recurring reports, nightly backups, or any workflow where manual conversion would happen at the same time each week.
Using Apps Script to automate folder exports
Open Google Apps Script at script.google.com. Write a function that uses DriveApp to iterate over a specified folder, exports each Google Doc, Sheet, or Slides file using the Drive export MIME type for PDF, and saves the result to a destination folder. Test the script manually first to confirm it converts the right files.
Setting up a trigger for automatic runs
In Apps Script, go to Triggers and create a time-based trigger that runs your export function daily, weekly, or on a custom schedule. The script runs in the background on Google's servers even if your computer is off.
Chrome extension vs Apps Script
The Chrome extension is better for ad-hoc exports where you choose which files to convert each time. Apps Script is better for unattended, scheduled workflows. Use the extension for manual exports and Apps Script for recurring automatic ones.
Frequently Asked Questions
Does the Chrome extension run automatically without user interaction?
No. The Chrome extension requires you to be present and click. For fully automatic exports, use Google Apps Script.
Do I need a paid Google Workspace plan to use Apps Script?
No. Apps Script is available on personal Google accounts. Workspace plans have higher execution time limits for scripts.
Ready to Try It?
Install the free Chrome extension and start converting your Google Docs to PDF in one click.
Install Free Extension