A have Create a custom n8n node for working with PDF documents using the pdf-lib library. This node allows you to fill PDF forms, create new PDFs, and merge multiple PDFs directly in your n8n workflows.
🎯 Features
Fill PDF Forms - Add text overlays to existing PDF documents with full positioning control
Fill Form Fields - Fill actual interactive PDF form fields (text, checkboxes, radio buttons)
Extract Form Fields - Discover all form fields, types, values, and properties from PDFs ✨ NEW in v0.4.0
Add Images - Embed PNG and JPEG images into PDFs with positioning and rotation
Create PDFs - Generate new PDF documents from scratch
Merge PDFs - Combine multiple PDF files into one with support for multiple sources
JavaScript Code Mode - Programmatically define fields using JavaScript code
French Character Support - Full UTF-8 support for international characters
Flexible Input - Works with URLs or binary data
Customizable - Configure fonts, colors, positions, sizes, and rotations
🚀 Usage
Fill PDF Form
Perfect for filling tax receipts, invoices, or any form-based PDFs:
Select Fill PDF Form operation
Choose PDF source (URL or Binary Data)
Add text fields with coordinates and styling
Output as binary data
Example Use Case: French Tax Receipt (Reçu Fiscal)
Load template PDF from URL
Add donor name, address, amount, date
Generate personalized receipt
Create PDF
Create new PDF documents from scratch:
Select Create PDF operation
Choose page size (A4, Letter, or Custom)
Add text fields with positions and styling
Output as binary data
Extract Form Fields ✨ NEW
Discover all form fields in a PDF before filling:
Select Extract Form Fields operation
Choose PDF source (URL or Binary Data)
Get JSON output with all field information
Returns:
Field names and types (text, checkbox, radio, dropdown, list, button, signature)
Current values and properties
Max lengths, options, read-only status
PDF metadata (page count, title, author)
Perfect for:
Finding exact field names before filling forms
Validating PDF form structure
Building dynamic form-filling workflows
Documenting form fields
Merge PDFs
Combine multiple PDF files:
Select Merge PDFs operation
Add multiple PDF sources (URL or Binary Data)
Get combined PDF as output
✨ Advantages
✅ Permanent - Survives n8n updates
✅ Local - No external API dependencies
✅ Fast - Runs directly in n8n
✅ Flexible - Full control over PDF operations
✅ Reusable - Works across all workflows
✅ Team-Friendly - Easy for others to use
To add this community node
@hichamchar/n8n-nodes-pdflib