๐Ÿ”ฌ 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


Requirements


Workflow Steps

  1. Landingpage Endpoint (Webhook)
    Serves the landing page HTML to visitors.

  2. Set Form Endpoint
    Dynamically injects the endpoint URL into the HTML form.

  3. HTML for Landingpage
    Provides the form where users enter personal information (name, address, city, country, etc.).

  4. Respond to Webhook
    Returns the landing page HTML to the visitor.

  5. FormData Endpoint (Webhook)
    Receives the submitted form data as JSON.

  6. HTTP Request โ€“ Get PDF Template
    Fetches the PDF form template from a URL.

  7. PDF Form Fill (Fill PDF Fields)
    Populates the PDF with the submitted form data.

  8. Get PDF Form Fields (Optional)
    Reads and lists the names of the form fields in the PDF.

  9. Send Email
    Sends the completed PDF as an attachment to a configured recipient.

  10. Sticky Notes
    Provide documentation within the workflow for easier understanding and maintenance.


Usage

  1. Get API key from CustomJS

    • Sign up on the CustomJS platform.
    • Navigate to your profile page and copy your API key.
  2. Set Credentials for CustomJS API in n8n

    • Create a new credential in n8n with your API key.
  3. Prepare SMTP Credentials

    • Add your SMTP server credentials to n8n for sending emails.
  4. 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

๐Ÿ”— Nodes Used

Send Email, HTTP Request, Webhook

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup