npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-pdf-form-fill

v1.2.1

Published

Fill PDF forms in n8n using pdf-lib

Readme

n8n-nodes-pdf-form-fill

This is an n8n community node that allows you to fill PDF forms using the powerful pdf-lib library.

Features

  • Fill PDF Form Fields: Support for text fields, checkboxes, dropdowns, radio groups, dates, and numbers
  • Multiple Match Modes: Exact, case-insensitive, regex, or fuzzy field name matching
  • Coordinate Override: Write text at specific coordinates when form fields don't exist
  • List Fields: Discover all available fields in a PDF before filling
  • Custom Font Support: Embed standard fonts for UTF-8 character support
  • Flexible Output: Flatten forms, rebuild appearances, customize output filenames
  • Batch Processing: Process multiple items individually or together
  • Error Handling: Choose to ignore missing fields or fail strictly
  • n8n Expression Support: Use expressions like ={{$json.name}} for dynamic values

Installation

Via n8n UI (Recommended)

  1. Go to SettingsCommunity Nodes
  2. Click Install
  3. Enter: n8n-nodes-pdf-form-fill
  4. Click Install
  5. Restart n8n

Via npm

cd ~/.n8n/custom
npm install n8n-nodes-pdf-form-fill

Then restart n8n.

Usage

  1. Add a HTTP Request node or Read Binary File node to get your PDF
  2. Add the Doc Fill node
  3. Configure fields to fill:
    • Field Name: The exact name of the field in the PDF form
    • Field Type: Text Field, Checkbox, Dropdown, Radio Group, Date, or Number
    • Value: The value to insert (supports n8n expressions like ={{$json.name}})
  4. Execute the workflow

The output will contain the filled PDF in the binary data.

Quick Example

{
  "fields": [
    { "key": "firstName", "type": "textfield", "value": "={{$json.firstName}}" },
    { "key": "lastName", "type": "textfield", "value": "={{$json.lastName}}" },
    { "key": "email", "type": "textfield", "value": "={{$json.email}}" },
    { "key": "agreeToTerms", "type": "checkbox", "value": "={{$json.agree}}" }
  ],
  "options": {
    "flatten": true,
    "embedFont": "helvetica"
  }
}

Options

  • Flatten PDF: Make form fields non-editable after filling
  • Ignore Missing Fields: Skip fields that don't exist instead of throwing an error
  • Match Mode: How to match field names (exact, case-insensitive, regex, fuzzy)
  • Rebuild Appearances: Refresh visual appearance of form fields
  • Embed Font: Support UTF-8 characters (Helvetica, Courier, Times Roman)
  • Output Filename: Custom filename with expression support
  • Strict Mode: Fail on any invalid field name or type
  • List Available Fields: Discover all field names in the PDF

Documentation

For detailed documentation, examples, and troubleshooting, see the DocFill README.

Requirements

  • Node.js 20.15 or newer
  • Self-hosted n8n instance (custom nodes don't work on n8n Cloud)

License

MIT

Resources