PDA

View Full Version : Designing for print with CSS



barrymavin
2016-05-27, 01:01
For those of you who want to generate HTML formatted reports and print them here are a few good links that are worth reading.

https://www.smashingmagazine.com/2015/01/designing-for-print-with-css/
http://stackoverflow.com/questions/3341485/how-to-make-a-html-page-in-a4-paper-size-pages
https://github.com/delight-im/HTML-Sheets-of-Paper
https://css-tricks.com/almanac/properties/p/page-break/
http://stackoverflow.com/questions/19646835/print-repeating-page-headers-in-chrome

wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine. These run entirely "headless" and do not require a display or display service. These are free and open source so you can generate HTML reports and then convert and print them.

http://wkhtmltopdf.org (http://wkhtmltopdf.org)

HankFay
2016-05-27, 21:58
As some guy named Barry said about programming and the need for a simpler way to get work done: "that's too darn hard. It doesn't have to be that hard." :)