Can I use wkhtmltopdf on AWS Lambda

Fabio Baldissera picture Fabio Baldissera · Feb 9, 2017 · Viewed 10.6k times · Source

Greeting,

I'm using a AWS Lambda function to merge PDF files stored on S3. In addition to that, I need now to create a PDF file (from HTML and CSS). I was trying to use wkhtmltopdf, but it seems that I would have to install it using apt-get install (which I don`t think I have access on AWS Lambda).

Any ideas on how can I do it?

Any suggestions for wkhtmltopdf replacements?

Thanks!

Answer

Björn picture Björn · Mar 29, 2017

There are multiple projects on GitHub claiming to run wkhtmltopdf on Lambda. Here are a few.