3 ms·
I sort of disagree, HTML as implemented in PhantomJs, wkhtmltopdf and all interactive browsers is incomplete for paged/print output. However HTML with CCS page
by SigmundA 11y ago
I sort of disagree, HTML as implemented in PhantomJs, wkhtmltopdf and all interactive browsers is incomplete for paged/print output. However HTML with CCS page media is pretty close to being a complete solution, unfortunately the only implementation currently is the commercial PrinceXML.
If someone (Apple or Google) would get wise and implement the full paged media spec then PhantomJS/wkhtmltopdf/your browser might be a viable option for full fidelity print output.
See:
http://www.webkit.org/projects/printing/ http://www.webkit.org/projects/printing/
http://www.princexml.com/ http://www.princexml.com/
Until then our apps will have to suffer with one layout language for viewing (HTML) and have another for print like this lib.