Automate PDF Password Protection with n8n & Google Drive

This workflow automates downloading a PDF, password protecting it via ConvertAPI, saving locally, and uploading to Google Drive. Save hours securing files manually with n8n’s seamless automation.
manualTrigger
httpRequest
googleDrive
+2
Workflow Identifier: 2471
NODES in Use: Manual Trigger, HTTP Request, Read & Write File, Google Drive, Sticky Note
Automate PDF protection with n8n and Google Drive

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow helps you take a PDF file from a web link, add password protection to it, save it on your local machine, and then upload it securely to Google Drive.

This stops mistakes like forgetting to add a password or sharing unsafe files. It saves a lot of time and keeps your documents safe.


Who should use this workflow

This is useful for anyone who needs to share PDF files securely and wants to avoid doing the same tasks over and over.

People who often handle contracts, legal documents, or confidential files will find it very helpful.


Tools and services used

  • n8n: Workflow automation tool where the automation is created.
  • ConvertAPI: Service used to add password protection to PDF files via API.
  • Google Drive: Cloud storage service to upload and share the secured PDF files.

Inputs, processing steps, and outputs

Inputs

  • PDF file URL to download the original document.
  • Your ConvertAPI secret key for authentication.
  • Google Drive OAuth2 credentials for upload permission.
  • Password that will protect the PDF file.

Processing Steps

  • Download PDF: A HTTP Request node gets the PDF file from the provided URL with response set to “file”.
  • Password Protect PDF: Another HTTP Request node sends the PDF file to ConvertAPI using multipart/form-data with the user password set, via POST request.
  • Save File Locally: The Read & Write File node writes the password-protected PDF binary data to disk.
  • Upload to Google Drive: The Google Drive node uploads the secured PDF to a chosen Drive folder with a set filename.

Outputs

  • Password-protected PDF saved on the local machine.
  • Password-protected PDF uploaded to Google Drive for secure sharing.

Beginner step-by-step: How to use this workflow in n8n

Importing and setup

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor (cloud or self-host n8n).
  3. Click “Import from File” and select the downloaded workflow file.

Configuring credentials and parameters

  1. Add your ConvertAPI API Key in the Protect File with Password node under Query Auth.
  2. Authenticate Google Drive in the Google Drive node with OAuth2 credentials.
  3. Check and update the PDF download URL in the Download PDF File node if needed.
  4. Set your desired PDF password in the “UserPassword” field inside the Protect File with Password node.
  5. Update file names or Google Drive upload folder IDs as required.

Testing and activating

  1. Run the workflow manually once using the Manual Trigger node.
  2. Check that the PDF downloads, is password protected, saved locally, and uploaded to Google Drive.
  3. If all looks good, activate the workflow to run automatically or with manual trigger.

Common problems and fixes

  • ConvertAPI 401 Unauthorized: API key missing or wrong. Fix by updating Query Auth in the Protect File with Password node.
  • Empty or broken downloaded file: Response format not set to file. Check Download PDF File node options.
  • Google Drive upload fails: OAuth2 token expired or wrong. Re-authenticate Google Drive credentials.

Customization ideas

  • Change the PDF source link in the download node to any valid PDF URL.
  • Set different passwords per file dynamically inside the password protection node.
  • Change local file path and name to your needs in the Read & Write File node.
  • Upload files to client-specific Google Drive folders by changing the folder ID.

Summary of results

✓ Automates downloading a PDF from web

✓ Automatically adds password protection via ConvertAPI

✓ Saves protected PDF on local disk for backup

✓ Uploads secured PDF to Google Drive folder

→ Saves time and avoids manual mistakes

→ Ensures sensitive PDFs are secure before sharing

Automate PDF protection with n8n and Google Drive

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Check the ConvertAPI API key in the node’s Query Auth settings. Make sure the key is correct and active.
The node must have response format set to ‘file’. Without this, the binary PDF data will not download correctly.
Edit the ‘UserPassword’ field inside the node and enter the desired password.
Yes, change the folder ID parameter in the node to upload to different folders as needed.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.