News for hackers. Stuff that matters.
Re:Gofpdf: Generate PDFs from Go with No Dependencies by Scorpiion on Friday November 24, 2017 @02:16AM (#15769891)
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...

Re:Gofpdf: Generate PDFs from Go with No Dependencies by laktek on Friday November 24, 2017 @03:57AM (#15770174)
If you are looking for a hosted API on top of Chrome headless, I built https://pdf.cool
Re:Gofpdf: Generate PDFs from Go with No Dependencies by nurettin on Friday November 24, 2017 @04:19AM (#15770248)
Disable GPU because they assume headless servers don't have graphics cards installed ?
Re:Gofpdf: Generate PDFs from Go with No Dependencies by sannee on Friday November 24, 2017 @04:55AM (#15770336)
You would also probably need to have DISPLAY pointing to an X server (to get OpenGL), which is somewhat cumbersome for daemons to do.