3 ms·
PDF is an OK format - if you're targetting print. TeX is better though. Unfortunately many aren't aware that CSS can help a lot with printing HTML documents, m
by pmlnr 9y ago
PDF is an OK format - if you're targetting print. TeX is better though.
Unfortunately many aren't aware that CSS can help a lot with printing HTML documents, making the formatting nearly as nice as with PDF, but it takes a lot of tests to make this sure, especially with images.
I wonder is there are any simple CSS templates that are view AND print friendly, possible passed to Pandoc[1], so you write your HTML and it'll just work.
[1]: http://pandoc.org/ http://pandoc.org/
- blkhawk 9y agoDo you have any idea what a fuckerclust the PDF format is internally? Here is a relevant Talk from 27c3: https://media.ccc.de/v/27c3-4221-en-omg_wtf_pdf https://media.ccc.de/v/27c3-4221-en-omg_wtf_pdf
- tonyedgecombe 9y agoThat doesn't matter because it isn't bad enough to stop people writing good enough software for it.
- tannhaeuser 9y agoFor CSS Paged Media there's Prince (fka PrinceXML and expensive) and wkhtmltopdf (F/OSS, Webkit-based), but while these are certainly good enough for printing of invoices from web content and casual documents (and even academic publishing), I doubt CSS Paged Media will ever match facilities of dedicated print tool chains such as FrameMaker etc. Prince is based on a transcription of CSS to constraint logic (using the Mercury Prolog-like system), so I wonder if there's a formal specification of CSS that could be lifted into a Prolog specification to yield a CSS renderer for print (the only work I'm aware of in that direction was [1]). [1]: https://lmeyerov.github.io/projects/pbrowser/pubfiles/extended.pdf https://lmeyerov.github.io/projects/pbrowser/pubfiles/extend...