๐ฌ Automated PDF form processing with web forms and email delivery
โก 374 views ยท ๐ฌ Document Extraction & Analysis
Description
> โ ๏ธ Notice:
> Community nodes like @custom-js/n8n-nodes-pdf-toolkit-v2 can be installed on both self-hosted and Cloud instances of n8n. Just search for it via CustomJS.
This n8n workflow demonstrates how to collect form submissions from a landing page, fill a PDF form automatically, and send it via email. It uses the PDF Form Fill node from customjs.space to populate PDF fields with the submitted data.
What this workflow does
- Serves a landing page with a user-friendly form.
- Receives form submissions via a Webhook.
- Uses the HTTP Request node to fetch a PDF template.
- Fills the PDF form fields with the submitted data using the PDF Form Fill node.
- Optionally reads PDF form field names using Get PDF Form Fields.
- Sends the completed PDF as an email attachment.
Requirements
- Self-hosted or cloud n8n instance.
- CustomJS API key for the PDF Toolkit nodes.
- SMTP account for sending emails.
- Optional: Access to the PDF template online.
Workflow Steps
-
Landingpage Endpoint (Webhook)
Serves the landing page HTML to visitors. -
Set Form Endpoint
Dynamically injects the endpoint URL into the HTML form. -
HTML for Landingpage
Provides the form where users enter personal information (name, address, city, country, etc.). -
Respond to Webhook
Returns the landing page HTML to the visitor. -
FormData Endpoint (Webhook)
Receives the submitted form data as JSON. -
HTTP Request โ Get PDF Template
Fetches the PDF form template from a URL. -
PDF Form Fill (Fill PDF Fields)
Populates the PDF with the submitted form data. -
Get PDF Form Fields (Optional)
Reads and lists the names of the form fields in the PDF. -
Send Email
Sends the completed PDF as an attachment to a configured recipient. -
Sticky Notes
Provide documentation within the workflow for easier understanding and maintenance.
Usage
-
Get API key from CustomJS
- Sign up on the CustomJS platform.
- Navigate to your profile page and copy your API key.
-
Set Credentials for CustomJS API in n8n
- Create a new credential in n8n with your API key.
-
Prepare SMTP Credentials
- Add your SMTP server credentials to n8n for sending emails.
-
Run or schedule the workflow
- The workflow will serve the landing page, fill the PDF form with submissions, and send it via email.
Customization Tips
- Modify the landing page form in the HTML node to add or remove fields.
- Change PDF template URL in the HTTP Request node.
- Add more recipients or dynamic email addresses in the Send Email node.
- Track submitted form data in Google Sheets or a database for long-term storage.
- Extend workflow logic with validation or notifications using additional nodes.
๐ Nodes Used
Send Email, HTTP Request, Webhook
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File