Generating Documents
Generate documents from your templates with PDFMonkey: statuses, download URLs, share links, webhooks, image output, retention and deletion.
Before you start
Generate Documents from the Dashboard
Generate PDF documents manually through the PDFMonkey dashboard. Create a document from a template, fill in the dynamic data payload, and download the result.
Generate PDFs with the API
Generate PDF documents programmatically using the PDFMonkey REST API with code examples in curl, Ruby, Node.js, Python, and PHP.
Convert HTML to PDF with the PDFMonkey API
Use PDFMonkey as an HTML-to-PDF API: send your own HTML in the payload, render it with a minimal code template and get a file back, no templating needed.
Generate PDFs with No-Code Integrations
Generate PDF documents without writing code using Zapier, Make, n8n, and other automation platforms. Connect PDFMonkey to your existing tools in minutes.
Document Statuses and Lifecycle
Every PDFMonkey document goes through draft, pending, generating, success or failure. Learn what each status means and how to handle failed documents.
Document Download URLs and Expiry
PDFMonkey download URLs are signed links valid for one hour. Learn how they work, how to refresh an expired URL and how to store your generated files.
Set a Custom Filename for Generated Documents
Control the filename of PDFs and images generated by PDFMonkey. Pass the _filename key in document metadata via the API or Dashboard.
Password-Protect Generated PDFs
Generate password-protected PDFs with PDFMonkey. Pass the _password key in document metadata via the API or Dashboard to encrypt files with AES-256.
Generate Images Instead of PDFs
PDFMonkey can generate WebP, PNG and JPG images as well as PDFs. Create an image template, set dimensions and transparency, and tune the output.
Generate Factur-X Electronic Invoices
Generate Factur-X compliant electronic invoices with PDFMonkey. Apply a compliance format to your template and get a PDF/A-3 with embedded, validated XML.
Permanent Share Links for Generated Documents
Share generated documents with a permanent public URL that never expires. No login needed. Available on Pro+ and Premium plans and during the trial.
Document Retention and Automatic Deletion (TTL)
Control how long PDFMonkey keeps your generated documents: set a per-template TTL, check your plan’s retention limit and see what data gets deleted.
Webhooks: Get Notified When Documents Are Ready
Set up webhooks to get notified when PDFMonkey documents finish generating: payload format, event types, channel routing and signature checks.
Embedding a Document Preview
Embed a live PDF preview of any PDFMonkey document — including drafts — directly in your app using an iframe and the preview_url field.