n8n+allpdfmagic
Self-hosted friendly

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 npm

No manual HTTP wiring — install once and use AllPDFMagic operations as native n8n nodes.

  1. 1. In n8n: Settings → Community Nodes → Install
  2. 2. Enter the package name: n8n-nodes-allpdfmagic
  3. 3. Add the AllPDFMagic API credential with your key (free — 500 calls/month)
  4. 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:

MethodPOST
URLhttps://www.allpdfmagic.com/api/v1/pdf/compress
AuthenticationHeader Auth — Authorization: Bearer YOUR_API_KEY
Body Content TypeForm Data
Body Fieldsfile: (binary from previous node) | level: "medium"
ResponseBinary (for PDF/ZIP outputs) or JSON (for AI endpoints)
n8n HTTP Request node
// 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.

Email Trigger / S3 Trigger
HTTP Request → /api/v1/ai/extract-invoice
IF node: amount > threshold
Postgres/MySQL: Insert row
Slack: Send alert

Contract review and storage

When a contract PDF arrives, run the contract analyzer, extract clauses, and create a structured record in Airtable or Notion.

Webhook trigger (new contract uploaded)
HTTP Request → /api/v1/workflows/extract-clauses
Airtable: Create record with clauses
Email: Notify legal team

Bulk PDF compression cron

Schedule a nightly job to compress all PDFs in a directory and upload them back — saving storage costs automatically.

Schedule trigger (nightly)
Read from disk / S3
Loop over files
HTTP Request → /api/v1/pdf/compress
Write back to disk / S3

Document audit trail

Every time a user uploads a document, watermark it with their name and timestamp, then store the watermarked copy for compliance.

Webhook: user document upload
HTTP Request → /api/v1/pdf/watermark
S3 Upload: store watermarked copy
Postgres: Log audit event

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.