HTML to PDF API
The API for Converting HTML to PDF Documents
With APITemplate.io, it’s easy to create PDF documents from reusable HTML templates with a side-by-side web editor.
Design beautiful PDF documents with HTML, CSS & Javascript and generate PDF with JSON data and REST API using your favorite programming language.

Design beautiful PDF documents with HTML, CSS, Javascript and JSON
A Side-by-side HTML Editor and Preview

Steps to Generate PDF Documents from an HTML Template
with A Simple REST API
With our PDF generation API, you can design an HTML template with the template editor and create dynamic PDFs via a simple REST API.
The followings are the step to generate a PDF document from an HTML template with the CURL command. To generate a new PDF, we just send a POST request.
The followings are the 4 steps:
HTML Template with Jinja2 Template Language
The dynamic data(JSON) will be passed in the {{ variable }} tag, it’s a special syntax of Jinja2 to render variables in the HTML template. You can learn more about the Jinja2 template language here
Style the layout with CSS
Prepare the JSON data
Run the CURL command
PDF Generation with Zapier, Integromat or Airtable
Besides API integration, we also integrate with No-code platforms for you to automate PDF creation. You can generate PDFs easily with Zapier, Integromat, N8n, and UiPath. Additionally, you can generate PDFs in bulk with our Airtable integration.
*Integration with other no-code platforms can be achieved with the platform’s HTTP/HTTPS component such as bubble.io – API Connector or Integromat – HTTP app