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.

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

ResourceOperationOutput
DocumentCreate From URL / HTML / Markdownthe PDF in the binary field data, plus {jobId, bytes, test}
ScreenshotCapture URL / HTMLPNG or JPEG in data
E-InvoiceCreate (XML from a binary field or text)Factur-X PDF/A-3 in data
JobGet, Downloadstatus as JSON / the file in data
AccountGetplan, 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.