Build PDF automation
with n8n
Install the official AllPDFMagic community node — invoice extraction, bank statement parsing, PDF conversion, and GSTIN validation as drag-and-drop n8n nodes. Or use the raw API via HTTP Request.
Official community node
On npmNo manual HTTP wiring — install once and use AllPDFMagic operations as native n8n nodes.
- 1. In n8n: Settings → Community Nodes → Install
- 2. Enter the package name:
n8n-nodes-allpdfmagic - 3. Add the AllPDFMagic API credential with your key (free — 500 calls/month)
- 4. Drop the AllPDFMagic node into any workflow
Self-hosted CLI alternative: npm install n8n-nodes-allpdfmagic in your n8n instance.
Operations included
- • Extract Invoice Data — invoice PDF → structured JSON (GST-aware)
- • Parse Bank Statement — categorized transactions + summary
- • Compress PDF / PDF to Excel — binary in, binary out
- • Validate GSTIN — check-digit math, runs locally, no API call
Example: Gmail Trigger (attachment) → Extract Invoice Data → Google Sheets
Prefer the raw API? HTTP Request node setup
Every AllPDFMagic endpoint works as a standard HTTP POST with multipart/form-data. Configure the n8n HTTP Request node like this:
// n8n HTTP Request node configuration // Method: POST // URL: https://www.allpdfmagic.com/api/v1/pdf/compress // Authentication: Header Auth // Name: Authorization // Value: Bearer YOUR_API_KEY // Body Content Type: Form Data // file: (Binary input from previous node) // level: medium
Workflow templates
Automated invoice processing pipeline
Watch an email inbox or S3 bucket, extract invoice data with AI, store in a database, and send a Slack alert for high-value invoices.
Contract review and storage
When a contract PDF arrives, run the contract analyzer, extract clauses, and create a structured record in Airtable or Notion.
Bulk PDF compression cron
Schedule a nightly job to compress all PDFs in a directory and upload them back — saving storage costs automatically.
Document audit trail
Every time a user uploads a document, watermark it with their name and timestamp, then store the watermarked copy for compliance.
Why n8n + AllPDFMagic
Self-hosted data privacy
Run n8n on your own servers. PDF files flow from your infrastructure → AllPDFMagic → back to your infrastructure. No data stored after processing.
500 free API calls/month
The AllPDFMagic Starter tier is free forever. Build and test your entire n8n workflow before spending a penny.
Binary file support
n8n's HTTP Request node natively supports binary data. Pass PDF files from any source — disk, S3, email attachments — directly to AllPDFMagic.
Start building in minutes
Free API key — 500 calls/month. Works with n8n Cloud and self-hosted.