
Email-to-Booklet: Parse, Personalize, and Merge Legal PDFs with n8n + PDF.co
6 MIN READ
This workflow monitors a Google Drive folder, adds a text watermark to each new PDF with PDF.co, and saves the processed file in another Drive folder.
The workflow is:
Google Drive Trigger → Download PDF → Upload to PDF.co → Add Watermark → Download Result → Upload to Google Drive
Prepare:
The PDF.co node is a community node and must be installed before importing the JSON workflow.
In n8n:
n8n-nodes-pdfco.After importing, select your Google Drive and PDF.co credentials and update the input and output folders. See the PDF.co node package for installation details.
You can also build the workflow manually using the steps below.
Create two folders:
INPUT_FOLDER for PDFs awaiting processingOUTPUT_FOLDER for completed PDFsKeeping them separate prevents processed files from triggering the workflow again.
Add Google Drive Trigger and configure it to watch INPUT_FOLDER for newly created files.
Connect your Google Drive account and test the trigger with a sample PDF. The result should include the file ID and filename.
Add a Google Drive node after the trigger.
Configure it to download the file:
dataThis provides the actual PDF file rather than a Drive preview link.
Add PDF.co API and select Upload File.
Configure the node:
dataThe node uploads the PDF securely and returns a temporary PDF.co URL.
Add another PDF.co API node and select Add Text/Images to PDF.
Map the URL returned by the upload node into the source URL field.
Add this text annotation:
{
"text": "CONFIDENTIAL",
"x": 105,
"y": 412,
"size": 100,
"color": "#662563EB",
"fontBold": true,
"fontName": "Arial",
"alignment": "center",
"pages": "0-"
}The color uses AARRGGBB format. 66 adds transparency, while 2563EB defines the blue color.
Use 0- to apply the watermark to every page. Adjust the coordinates and font size for your document layout. PDF.co’s PDF Edit Add Helper can be used to determine suitable coordinates.
Set the output filename to the original filename or another descriptive value.
Add an HTTP Request node:
dataThis downloads the processed PDF into n8n as binary data.
Add Google Drive and select Upload.
Configure the node:
dataWatermarked_ followed by the original filenameOUTPUT_FOLDERRun the workflow and upload a sample PDF to INPUT_FOLDER.
Confirm that PDF.co adds the watermark and that the processed file appears in OUTPUT_FOLDER. Once the test succeeds, activate the workflow.
You now have an automated n8n workflow that securely downloads new Google Drive PDFs, adds a watermark with PDF.co, and saves the finished files to a separate Drive folder.
You can enhance this automation further by:
Built something amazing? Share your workflow and tag us @pdfdotco — we’d love to feature your automation!

6 MIN READ

6 MIN READ

6 MIN READ

6 MIN READ
Create an account, get an API key and test a request.