Print from n8n: PDFs to any printer, with an honest result
The Printaloft node for n8n sends a PDF to a role such as invoice or label. The agent on the PC next to the printer prints it, and n8n gets back “printed”, or “failed” with the reason, for example paper out or printer missing.
What you get
- The same idempotency key never prints twice, so retries are safe.
- Every job has a deadline (15 minutes by default). After a disruption, no pile of old jobs prints at once.
- Printers and trays are set per role in the console. The workflow only names the role.
- Operations: Print PDF (from a binary field or a URL), Print ZPL Label for Zebra and other ZPL printers (agent 0.4.0 or later), Get, Cancel, and a list of your roles.
Set it up
1. In the console, add a station (install the agent on the PC next to the printers) and create your roles.
2. Create an API key (pck_…).
3. In self-hosted n8n, open Settings › Community Nodes › Install and enter n8n-nodes-printaloft.
4. Create the credential “Printaloft API” with your key. The credential test checks the key; your roles then appear in the node’s list.
5. Add the node “Printaloft”, choose Print PDF and pick the role from the list. Set a fixed idempotency key per document, for example order-{{ $json.orderNumber }}-invoice-1. With “Error If Not Printed”, the workflow stops when a job fails, is cancelled or expires.
Without the node: HTTP Request
n8n Cloud only installs community nodes that n8n has verified, and the Printaloft node is not one of them. There, use an HTTP Request node: method POST, authentication as a Header Auth credential with your key, body as JSON:
POST https://api.printaloft.com/v1/jobs?wait=50
Authorization: Bearer pck_… (Header Auth credential)
{
"idempotencyKey": "order-{{ $json.orderNumber }}-invoice-1",
"role": "invoice",
"pdfBase64": "{{ $json.data }}",
"fileName": "invoice-{{ $json.orderNumber }}.pdf"
}- PDF from a file: put an “Extract from File” node with “Move File to Base64 String” before it and use its field for pdfBase64.
- Set the node timeout to 55 seconds, a little longer than wait=50. Retry only with a fixed key, never with a new one per attempt.
The answer
The node and the API return ok, accepted, jobId, status, message, printer and stationOnline.
status is printed, failed, queued, delivered, spooled, cancelled or expired.
Check later with the Get operation or GET /v1/jobs/<jobId>?wait=50, cancel with Cancel or POST /v1/jobs/<jobId>/cancel.
The Printaloft node on npm
Package n8n-nodes-printaloft, MIT licence, no runtime dependencies. The page on npm shows the current version, all operations and an example workflow.