Automatically Save Converted PDFs to a Drive Folder

Automatically saving converted PDFs to a Drive folder combines two steps into one unattended workflow: conversion and filing. Google Apps Script handles both. The script converts documents and saves the PDFs directly to the target folder without any manual upload.

The Apps Script workflow

Write a function that opens the source folder, iterates over Google Workspace files, exports each to PDF using the export URL, and saves the resulting blob to the target folder with DriveApp.createFile(). Set a time-based trigger to run the function on your schedule.

Choosing source and target folders

Use separate folders for source documents and converted PDFs. Get each folder's ID from the URL in Google Drive (the long alphanumeric string after /folders/). Use DriveApp.getFolderById() in the script to reference them.

Notifications and logging

Add a MailApp.sendEmail() call at the end of the script to receive an email when the conversion runs. Log the number of files converted and any errors to the Apps Script execution log for troubleshooting.

Frequently Asked Questions

Can this be done without any coding at all?

For fully automatic Drive-to-Drive saving, some scripting is required. Apps Script uses JavaScript and the Drive API. Many ready-to-use templates are available in the Apps Script documentation.

Ready to Try It?

Install the free Chrome extension and start converting your Google Docs to PDF in one click.

Install Free Extension