printaloft

n8n node for Printaloft: print PDFs and ZPL labels on your office or warehouse printers from any workflow, with an honest printed/failed result.

Package Information

Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 0.2.0
Author: UBARTAS.MEDIA GmbH

Documentation

n8n-nodes-printaloft

Print PDFs and ZPL labels from n8n on the printers in your office or warehouse with Printaloft.
A small agent on a Windows PC or Mac picks up the job and reports honestly back: printed, or failed with the reason
(paper out, printer missing, …). The same idempotency key never prints twice, so retries are safe.

Installation · Credentials · Operations · Example · Compatibility

Installation

Self-hosted n8n: Settings → Community Nodes → Install, enter n8n-nodes-printaloft.
See the n8n guide for community nodes.

Credentials

  1. In the Printaloft console (app.printaloft.com) set up a station (install the agent on the PC
    next to the printer) and a role for each document type, e.g. invoice → Brother, tray 1, label → Zebra.
  2. Create an API key (pck_…) in the console.
  3. In n8n create a credential Printaloft API: paste the key. Leave the base URL at https://api.printaloft.com.
    The credential test lists your roles; it fails if the key is unknown or revoked.

Operations

Print Job

Operation What it does
Print PDF Sends a PDF (from a binary field or a URL) to a role and waits up to 50 s for the result.
Print ZPL Label Sends raw ZPL (as text or a .zpl file) to a label printer role (Zebra and compatible). Printed unchanged, no PDF rendering. Needs the Printaloft agent 0.4.0 or later at the station; older agents reject the job with a clear message.
Get Status of a job by ID; can wait up to 50 s for the final status.
Cancel Cancels a job that has not reached the printer's spooler yet.

Role

Operation What it does
Get Many Lists your roles with printer, station and whether the station is online.

The result

Every job operation returns the same shape:

{ "ok": true, "accepted": true, "jobId": "job_…", "status": "printed", "message": "Gedruckt.",
  "printer": "ZEBRA ZD220", "stationOnline": true, "idempotencyKey": "order-1001-label-1" }
status Meaning
printed The spooler finished the job without error (ok: true).
failed Not printed; message says why.
queued, delivered, spooled Still on its way after the wait time. Use Get with the jobId to wait for the end.
cancelled, expired Never printed. Expired jobs did not reach the printer in time (default 15 min) and will never print.

Turn on Error If Not Printed to stop the workflow on failed, cancelled or expired.
HTTP errors (wrong key, unknown role, PDF too large) always stop the node, or go to the output with Continue On Fail.

Idempotency key: never print twice

Printaloft prints each key at most once. Sending the same key with the same PDF again returns the existing job; the same
key with a different PDF is rejected. Use a key per document, for example
order-{{ $json.orderNumber }}-invoice-1. For a deliberate reprint, count the last part up.
If you leave the field empty, the node uses n8n:<execution>:<node>:<item>: safe for retries inside one execution, but a
re-run of the whole workflow prints again.

The node never retries a print on its own. If you turn on Retry On Fail, keep a fixed key.

Example workflow

beispiele/rechnung-drucken.json: download a PDF, print it on the role invoice,
then branch on ok. Import it in n8n with … → Import from File, pick your credential and role.

Why there is no trigger

Printaloft answers within the same call (up to 50 s) and Get can wait for the final status, so a polling trigger
would only add delay. A trigger node will follow once Printaloft sends webhooks for finished jobs.

Compatibility

Tested with n8n 2.48. Requires Node.js 20.15 or newer. No runtime dependencies.

Development

npm ci
npm run verify   # typecheck, n8n lint, build, tests
npm run dev      # local n8n with this node, hot reload

The source lives in the Printaloft monorepo (apps/hosted/printcloud/integrations/n8n) and is mirrored to
github.com/printaloft/n8n-nodes-printaloft, which publishes to npm
with provenance (.github/workflows/publish.yml).

License

MIT

Discussion