Hacker News new | ask | show | jobs
by Scorpiion 3127 days ago
It's also worth noting that Chrome headless could be a nice alternative if you use html as the base for say invoices or reports that you want to generate from a SaaS app.

Create pdf with Chrome headless: chrome --headless --disable-gpu --print-to-pdf https://www.chromestatus.com/

Source: https://developers.google.com/web/updates/2017/04/headless-c...

2 comments

If you are looking for a hosted API on top of Chrome headless, I built https://pdf.cool
Disable GPU because they assume headless servers don't have graphics cards installed ?
You would also probably need to have DISPLAY pointing to an X server (to get OpenGL), which is somewhat cumbersome for daemons to do.