Send a PDF from n8n
Turn an order form submission into a PDF attachment using n8n’s built-in HTTP, Wait, and Email nodes. The workflow ships inactive and uses placeholder credentials and recipient addresses.
- Publish an Invoice template. Change the footer to your own closing line. The sample form sends the customer name and an order reference as one repeating row.
- Download the workflow JSON. In n8n, choose Import from File. In Configuration, set the trusted DocKiln origin reachable from n8n and the published template ID.
- Create an HTTP Header Auth credential named for DocKiln. Set the header name to
Authorizationand the value toBearer YOUR_KEY. Select that credential on all three HTTP nodes. - Set the Email node’s sender and fixed recipient to your test mailbox and select your SMTP credential. Restrict the form to your intended users before activation.
- In manual test mode, submit a fictional order. The queue node uses the execution ID for idempotency. The Wait node polls every three seconds. A failed job or two-minute deadline stops the execution. The download node passes the PDF as binary property
datato the email attachment.
Check the PDF attachment in your test mailbox before enabling the workflow. Each new execution can consume a generation. The sample was imported into n8n 1.123.17 and executed with a synthetic order and a local SMTP sink. A real mail provider requires your own credentials.