Use case

wkhtmltopdf on AWS Lambda

Skip the wkhtmltopdf binary and its dependencies. API2PDF hosts it for you with table of contents, headers, footers and every advanced option via REST.

Api2Pdf runs wkhtmltopdf on AWS Lambda. PDF generation on a serverless architecture like AWS Lambda has several advantages: 1) You only pay for the processing power to generate the PDFs when you need it. 2) It scales infinitely. 3) You can handle massively large files and CPU usage or a just a tiny bit.

Instead of running your own VMs at full capacity on the off-chance someone is going to generate a huge PDF and crush your server, serverless solves this problem.

After building PDF generation API tech stack to service our own needs, we spent some time retooling it so that every developer can sign up and get started within minutes.

Api2Pdf offers three endpoints for wkhtmltopdf:

An example of a simple GET request with the HTML to PDF API is:

https://v2018.api2pdf.com/wkhtmltopdf/url?url={UrlToConvert}&apikey={Your-Api-Key}

Next Steps

Create Account and Explore the Docs

Questions?

Don’t hesitate to contact us.

Generate your first PDF in minutes

Create an account, grab an API key, and send one POST request. One month of free credit, then pay only for what you use.