Convert Google Docs into Password-Protected PDFs Using Zapier
Automatically create a password-protected PDF when a new Google Doc is added, then save the protected file to Google Drive.
Step 1: Set Up the Google Docs Trigger
Create a Zap and select Google Docs → New Document.
Connect your Google account and test the trigger. Select a completed document containing the content you want in the PDF.
To process documents from a specific folder, use New Document in Folder and select that folder. Google Docs trigger documentation
Step 2: Connect PDF.co
Add PDF.co → PDF Security.
Connect your PDF.co account by signing in and authorizing Zapier through OAuth.
Step 3: Configure Password Protection
Complete these fields:
- Source PDF URL: Map the Google Docs trigger’s File PDF output. This provides the document’s PDF export.
- Operation Mode: Select Add Security.
- User Password: Enter the password recipients must use to open the PDF.
- Owner Password: Enter a separate password for full access and permission management.
- Encryption Algorithm: Select AES-128 or a higher available AES option.
- Specify Name: Enter an output name such as
protected-document.pdf.
Set the permission options according to your needs, including printing, content copying, document modification, and commenting.
See the PDF Security documentation for all available settings.
Step 4: Test and Save the Protected PDF
Test the PDF.co action and download the file from its returned url.
Open it in a PDF reader and confirm that it requests the user password. Enter the password and check the document’s content and formatting.
Add Google Drive → Upload File:
- Folder: Select your destination folder.
- File: Map PDF.co’s output
url. - File Name: Map PDF.co’s output
name. - Convert to Document: Select No / false, if shown, to retain the protected PDF.
Test the upload and confirm that the saved PDF still requires a password. Saving it retains a copy before PDF.co’s temporary URL expires.
Step 5: Publish the Zap
Publish the Zap after testing. New documents matching your trigger will produce password-protected PDFs in the selected Google Drive folder.
In this tutorial, you learned how to convert Google Docs into Password-Protected PDFs using PDF.co and Zapier. You also learned how to use the /v1/pdf/security/add endpoint to put security passwords to PDF documents. You were also taught how to set up the PDF Security configuration and add security protection to PDF documents.
In case you’re interested, we also have a similar tutorial for converting Google Docs into password-protected PDFs using PDF.co and Make.
Related Tutorials

