Print from n8n to any printer
n8n builds the PDF, Printaloft puts it on paper. One HTTP Request node sends the file to a role such as “packing-slip”, and the workflow learns in the same step whether the print system has finished the job.
How it works
- 01
Get the PDF
From your shop, a document service or an HTML-to-PDF step. Turn the file into Base64 with the “Extract from File” node.
- 02
Send it to a role
An HTTP Request node posts the PDF to the Printaloft API with a role and an idempotency key built from your order number.
- 03
Wait for the answer
With ?wait=50 the node waits up to 50 seconds for “printed”. Branch on ok: true, or alert someone on “failed”.
Today and next
- Works today with the standard HTTP Request node.
- The Printaloft node for self-hosted n8n is on npm: n8n-nodes-printaloft.
Why it helps
- Retries are safe: n8n can retry the node, the same key never prints twice.
- The workflow never needs printer names. Roles point to printers and trays in the console.
- No VPN or open port to the warehouse. The agent there only opens outgoing connections.
The HTTP Request node
Settings of the node; the PDF comes as Base64 from the step before.
Method: POST
URL: https://api.printaloft.com/v1/jobs?wait=50
Auth: Header Auth · Authorization: Bearer pck_…
Body: JSON
{
"idempotencyKey": "order-{{ $json.orderNumber }}:packing-slip:1",
"role": "packing-slip",
"pdfBase64": "{{ $json.data }}",
"fileName": "packing-slip-{{ $json.orderNumber }}.pdf"
}Try it with your printers
Sign up, install the agent next to your printers and print the first page: 30 days of Business, no card needed, then the Free plan.