Hacker News new | ask | show | jobs
by eberkund 2095 days ago
I used it for creating PDFs at my last job.
3 comments

We've done this. You can run it in AWS lambda.
Could someone elaborate? How does this work?

Do you create a HTML document then print the output as a PDF with headless Chrome?

Yes exactly, HTML document using whatever templating language you want (or even client-side JavaScript framework since Chrome can handle that too) and then output a PDF.
I use currently use puppeteer to do the same thing