High Quality HTML to PDF Conversion API

Generate fully structured PDFs with few lines of code.

Completely free up to 100 conversions monthly

High Quality Structured PDF

Generate fully structured PDF documents with selectable / editable text and images.

Browser Based PDF Engine

Our HTML to PDF conversion engine is based on real browsers and faithfully renders HTML5/CSS3/SVG and Webfonts.

Advanced Options

Set dimensions, margins, page numbers, custom CSS, encryption, viewport, delay, and much more.

Raw HTML Support

There is no need to make your HTML publically on the web. You can pass raw HTML with POST method.

Fast & Simple HTML to PDF API

Based on a single lighning fast RestFUL HTTP url, all options are easy to pass and reason about.

Refund Guaranteed Service

We guarantee 99.99% uptime. And if our downtime ever causes you problems, we'll refund you!

$ curl https://restpack.io/api/html2pdf/v3/convert?access_token=TOKEN&url=http://google.com
...or try your own URL.
Do I have to make my web page publicly available to use HTML to PDF converter API?

No - you can send the html (instead of a url) - there is no need to put the page you want to convert publically on the web.

What about data privacy?

We take privacy very seriously and we do not store either the web page content you sent to us or the resulting PDF. When you use the HTML to PDF API, a temporary context is generated for the job on hand and the entire data is removed upon completion.

What happens if I exceed my API Request volume?

Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100%. You generated PDF documents will stay cached but further HTML to PDF conversion requests will fail.

Can you capture lazy loaded items?

By default, we wait for 2 seconds before each capture. You can configure this delay. If you need further control, you can inject your own JS and control the capture shutter.

Can I link directly to the generated PDF?

If you need a publicly accessible url for your documents, please use the json parameter to receive a document URL rather than the document itself. The HTML to PDF conversion will be run only once and the document will be served from cache in this case.

Do you have a free trial?

Yes! You can test the HTML to PDF conversion API for free until you pass 100 conversion requests per month.