n8n
The PDFik node for n8n turns a URL/HTML or Markdown into a PDF, captures screenshots, builds Factur-X e-invoices and reads jobs and your account — inside any workflow.
- Package:
@pdfik/n8n-nodes-pdfik— source: github.com/pdfik/n8n-nodes-pdfik (MIT) - No runtime dependencies; works as a tool for n8n's AI Agent
Install
Self-hosted n8n: open Settings → Community Nodes → Install, enter
@pdfik/n8n-nodes-pdfik and confirm.
n8n 3.x and n8n Cloud show only verified community nodes. The PDFik node is in n8n's verification queue; until it is verified, a self-hosted n8n 3.x can run it with:
N8N_UNVERIFIED_PACKAGES_ENABLED=true
Credentials
Create a PDFik API credential with your API key from the
dashboard. Keep the base URL
https://api.pdfik.net. n8n checks the key with GET /account, which creates nothing.
For n8n Cloud, a key with an IP whitelist must allow n8n Cloud's published outgoing addresses — or use a separate key without a whitelist.
Operations
| Resource | Operation | Output |
|---|---|---|
| Document | Create From URL / HTML / Markdown | the PDF in the binary field data, plus {jobId, bytes, test} |
| Screenshot | Capture URL / HTML | PNG or JPEG in data |
| E-Invoice | Create (XML from a binary field or text) | Factur-X PDF/A-3 in data |
| Job | Get, Download | status as JSON / the file in data |
| Account | Get | plan, quota window, usage and limits |
Every create operation waits for the file in the same request (sync mode,
up to 45 seconds). Every execution creates a new job — the node never sends an
Idempotency-Key, so a loop or a second n8n instance can never receive someone else's
earlier document. Options cover the PDF and browser options, screenshot
options and test mode.
Example workflow
Import with Workflows → Import from File/URL (or paste into the editor), then pick your PDFik credential in the PDFik node:
{
"name": "PDFik: URL to PDF",
"nodes": [
{
"id": "6f1d5f0e-6c39-4c8e-9d57-0a4a1c1b0001",
"name": "When clicking 'Execute workflow'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [0, 0],
"parameters": {}
},
{
"id": "6f1d5f0e-6c39-4c8e-9d57-0a4a1c1b0002",
"name": "PDFik",
"type": "@pdfik/n8n-nodes-pdfik.pdfik",
"typeVersion": 1,
"position": [220, 0],
"parameters": {
"resource": "document",
"operation": "createFromUrl",
"url": "https://example.com",
"pdfOptions": {
"format": "A4",
"marginTop": "10mm",
"marginBottom": "10mm"
}
},
"credentials": {
"pdfikApi": { "id": "REPLACE_WITH_CREDENTIAL_ID", "name": "PDFik account" }
}
}
],
"connections": {
"When clicking 'Execute workflow'": {
"main": [[{ "node": "PDFik", "type": "main", "index": 0 }]]
}
},
"settings": {}
}
More workflows (HTML with header and footer, Markdown, screenshots, e-invoices) are in the package README.
Errors
An API error fails the item with one line — status, title, detail and a link to
error codes. With On Error → Continue the remaining items go on. A
render longer than 45 seconds is cancelled and not charged (503, #sync-timeout):
running the node again is safe.