4 ms·
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
by Scorpiion 9y 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/ https://www.chromestatus.com/
Source: https://developers.google.com/web/updates/2017/04/headless-chrome#create_a_pdf_dom https://developers.google.com/web/updates/2017/04/headless-c...
- laktek 9y agoIf you are looking for a hosted API on top of Chrome headless, I built https://pdf.cool https://pdf.cool
- nurettin 9y agoDisable GPU because they assume headless servers don't have graphics cards installed ?
- sannee 9y agoYou would also probably need to have DISPLAY pointing to an X server (to get OpenGL), which is somewhat cumbersome for daemons to do.