
Email-to-Booklet: Parse, Personalize, and Merge Legal PDFs with n8n + PDF.co
6 MIN READ
5 MIN READ
What You'll Have When Done: An automated system that generates personalized, password-protected contracts and emails them to clients — all without manual effort.
Before you begin, make sure you have:
Follow the 7-step guide below to create the automation from scratch:
First, create a Google Sheets document to serve as your client database or download our sample.
Create a PDF contract template with placeholders (e.g., {CLIENT_NAME}, {CLIENT_EMAIL}) or use our sample.
Hosting Options: Upload your contract PDF and signature image to:
YOUR_GOOGLE_SHEETSHEET_NAMESuccess Looks Like: Fires when a new client is added. The client data is returned as JSON for use in the workflow.
INSERT_PDF_TEMPLATE_LINK{CLIENT_NAME} → {{ $json.Name }}{CLIENT_ADDRESS} → {{ $json.Address }}{CLIENT_EMAIL} → {{ $json.Email }}0 (replaces every match found in the PDF){{ $json.Name }}_Service_Contract.pdfSuccess Looks Like: A PDF is generated with all placeholders replaced by client’s actual data. The output URL points to the personalized contract.
{{ $json.url }} (from previous node)INSERT_IMAGE_LINKSuccess Looks Like: Your signature appears at the correct position in the contract PDF. The output URL points to the signed contract.
{{ $json.url }} (from previous node)SET_YOUR_PASSWORDSET_CLIENT_PASSWORDSuccess Looks Like: The contract PDF now requires a password to open. The output URL points to the secured file.
https://api.pdf.co/v1/email/sendx-api-key: YOUR_PDF_CO_API_KEYContent-Type: application/json{{ $json.url }}your-email@domain.com{{ $('Google Sheets Trigger').item.json.Email }}{{ $json.name }}587your-email@domain.comSuccess Looks Like: The client receives an email with the contract PDF attached.
Congrats! You've automated your scalable contract system that runs hands-free.
Built something cool? 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.