3 ms·
Ooh -- if that works I could do my dashboards in HTML/CSS, print them to PDF, convert the PDF to an image file, and use that. That would make my life much easi
by patio11 17y ago
Ooh -- if that works I could do my dashboards in HTML/CSS, print them to PDF, convert the PDF to an image file, and use that. That would make my life much easier, as producing the PDFs directly is a bit of a kludge. Thanks, I'll have to look into that later.
- roam 17y agoYou should have a look at Flying Saucer/xhtmlrenderer (https://xhtmlrenderer.dev.java.net/ https://xhtmlrenderer.dev.java.net/). It handles every CSS rule I could throw at it. If you simply need a commandline app converting a XHTML file into a PDF, you're done in 10 lines of code.