Guides / HTML to PDF in n8n
HTML to PDF in n8n
Call SlipKiln from n8n's HTTP Request node and get a binary PDF to send, store or attach.
Set up the request
- Get a free API key (starts with
sk_). - In n8n, add the HTTP Request step. Method POST, URL
https://api.slipkiln.com/v1/render/template(or/v1/render/htmlfor your own HTML). - Add a header
Authorization: Bearer YOUR_KEYand send a JSON body, for example{"template":"invoice","data":{...}}. Map fields from earlier steps intodata. - Set the response to be treated as a file (binary). The output is the PDF, ready to email, upload to cloud storage or attach to a record.
For /v1/render/html, send {"html":"<h1>Hello</h1>","options":{"format":"A4"}}. Options: format (A4, A5, Letter, Legal), landscape, margin, print_background.
In n8n, set Response Format to File so the PDF arrives as binary data.
Pricing
Free plan: 50 documents a month, no card. Paid plans: $9/mo (1,000 docs), $19/mo (3,000), $49/mo (10,000), with overages of $0.010 / $0.006 / $0.004 per extra document. See pricing.