Xgamer4@programming.devtoWeb Development@programming.dev•Download PDF with browser provided pdf renderer
3·
1 year agoAt a prior company I worked at, they had the requirement to allow pretty sophisticated and seamless “download report as pdf” functionality. So exactly what you’re asking about, more or less.
The solution they came to was to have the “Print to PDF” button call an endpoint that launched a headless chrome instance that printed the page, and to have a pile of print media css rules. It worked… Far better than it really should have.
I was going to ask if it seemed to have overlap with this article. Then I noticed the author of the article is the one that gave the talk, so I’m taking that as a yes.
https://www.hillelwayne.com/post/are-we-really-engineers/