HTML to PDF API using AWS Lambda

Api2Pdf’s HTML to PDF API runs on AWS Lambda and supports the generation of PDFs with raw HTML using two PDF engines: wkhtmltopdf and Headless Chrome.  These two PDF engines are open source and each have their advantages and disadvantages. Depending on your use-case and HTML, you may find that one endpoint renders your HTML better than the other. We recommend you test both out to see which one works better for you.

Create an account and check out our documentation to get started for free.

HTML to PDF conversion on Lambda offers some huge benefits. First, we do not have any rate limits, unlike other services out there. Hit the API as many times as you wish. And second, the cost to service the API is substantially less, resulting in much lower fees than competing services.

To get the full power of HTML to PDF conversion, you can include HTML, CSS, and even javascript in the raw HTML that you POST. Here’s an example of raw HTML that you can POST to the API.

Advanced Options:

Both wkhtmltopdf and Headless Chrome have advanced options that allow you to specify margins, page layouts, and a host of other capabilities. We let you pass those options along.