Re:PhantomJS: Stepping down as maintainer
by asdfgadsfgasfdg on Thursday April 13, 2017 @08:58AM
(#14106404)
This sounds horrible.. In general all these html->pdf ways of generating pdfs sounds horrible -- why don't people use latex for this?
[ Parent
| on HN ]
Re:PhantomJS: Stepping down as maintainer
by SigmundA on Thursday April 13, 2017 @10:10AM
(#14107030)
Because you probably already did the layout work in HTML to display on screen to the user and now just want a PDF version of it.
Or you can redo the layout in latex and maintain two layouts.
The full print css is actually pretty complete, problem is the only browser that fully supports it is PrinceXML. None of the major browsers seem to care much about print layout.
Re:PhantomJS: Stepping down as maintainer
by asdfgadsfgasfdg on Thursday April 13, 2017 @11:01AM
(#14107525)
But HTML layout is very different to page based layout. HTML is responsive and has no concept of pagination. PDF is paginated and has no concept of responsiveness.
Re:PhantomJS: Stepping down as maintainer
by IneffablePigeon on Thursday April 13, 2017 @12:36PM
(#14108547)
CSS2 has the concept of paged layouts: https://www.w3.org/TR/CSS2/page.html
Re:PhantomJS: Stepping down as maintainer
by demonshalo on Thursday April 13, 2017 @09:10AM
(#14106483)
It is NOT horrible. However, Latex is another way of doing things. Perhaps your requirements should dictate which of the two you should go for!