
Email-to-Booklet: Parse, Personalize, and Merge Legal PDFs with n8n + PDF.co
6 MIN READ
A fully automated system that monitors your inbox for new Customer Engagement Summary spreadsheets, converts them to PDF using PDF.co, and automatically uploads the final PDF into a designated folder in Google Drive.
This is perfect for:
Before you begin, make sure you have:
The JSON workflow requires the PDF.co community node to be installed in your n8n instance.
If you already imported the workflow and its PDF.co nodes appear as unknown or unavailable, install the node and reopen the workflow. If necessary, import a fresh copy after installation.
See the PDF.co n8n installation guide.
Customer Engagement Summary.xlsx) . Sample Test File: Link HereExample: You email Customer Engagement Summary.xlsx to your reporting inbox → the workflow detects it → converts to PDF → and stores Customer Engagement Summary - 2025-10-18.pdf in your Drive output folder.
Node: Email Trigger (IMAP)
This step listens to your inbox and triggers the workflow whenever a new unread email with the subject line “Customer Engagement Summary” arrives. It also fetches the attachment (spreadsheet) so the next steps can process it automatically.
trueCustom Email Config: ["UNSEEN", ["SUBJECT", "Customer Engagement Summary"]]
Success Looks Like: The workflow starts immediately when an email with a spreadsheet attachment is received, and the file is available as binary data for conversion.
Node: PDFco Api (Upload File to PDF.co)
This node uploads the spreadsheet attachment received from the email trigger to PDF.co’s cloud so it can be processed and converted in the next step.
Upload File to PDF.cotrueattachment_0 (the first attachment)={{ $json.subject }} (sets the uploaded file name dynamically)Success Looks Like: PDF.co returns a secure url pointing to the uploaded spreadsheet.
Node: PDFco Api1 (Convert to PDF)
This step converts the uploaded spreadsheet file into a high-quality PDF.We also apply an autosizing parameter so the layout fits nicely in portrait orientation, ensuring the final PDF looks polished.
Convert to PDFfromXlsx={{ $json.url }} (from previous node)Advanced Options → Profiles: {'std_params': {'autosize': 'true'}}
What this does: autosize: true ensures the spreadsheet columns and rows adjust automatically during conversion, so no content is cut off in the PDF.
Success Looks Like: PDF.co returns a new url pointing to the converted PDF file.
Node: HTTP Request
This step takes the PDF.co output URL and downloads the PDF file into the workflow as binary data, ready for uploading.
={{ $json.url }} (from PDF.co conversion step)GETSuccess Looks Like: The workflow successfully fetches the PDF file, and it’s available in memory for the final upload step.
Node: Google Drive
This step uploads the final PDF to a specific Google Drive folder. This folder can be shared with your team or used as an archive.
My DriveUpload (automatically picks the binary file)Success Looks Like: Your new Customer Engagement Summary PDF appears in the output folder with the same filename as the original spreadsheet.
autosize parameter to control the look of the final PDF.You’ve just built a Customer Engagement Summary → PDF → Drive Automation with n8n and PDF.co.This is perfect for scaling reporting workflows with zero manual intervention.
Built something cool with this? Share it with us @pdfdotco

6 MIN READ

6 MIN READ

6 MIN READ

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