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.
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.
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.