⚠️ Notice:
Community nodes like @custom-js/n8n-nodes-pdf-toolkit can only be installed on self-hosted instances of n8n.
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.
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.
Get API key from CustomJS
Set Credentials for CustomJS API in n8n
Prepare SMTP Credentials
Run or schedule the workflow