Why use XSL-FO instead of CSS2, for transform HTML into good PDF?

niekvdm

New Member
There are a lot of old texts, like this 2002 book, stating that we must use "CSS for Web" and "XSL-FO for print".I think in nowadays (2012) we can, finally, to use CSS with render engines that understand paged media of CSS2 and something of CSS3... But where the "new texts", the consensus of programmers, and the investment of softhouses?XSL-FO or "XSL Formatting Objects" (a W3C standard) was the most often used technology to generate PDF documents,from XML or XHTML content. Version 1.1 of XSL-FO was published in 2006, 1.0 in 2001.CSS2.1 is from 2011, but CSS2.0 is a 1998 standard, revised in 2008... I think standard ages are not a problem. CSS with HTML, XHTML or XML have "the power of print": see tools like PrinceXML, WebKit print module (or wkhtmltopdf), ABCpdf and others.Choosing between CSS and XSL-FO: with CSS2 you can fit the text exactly to the paper page, etc. It's not a matter of pagination, multiple column layouts, place footnotes, running headers, or margins of a page...Both, CSS (paged media) and XSL-FO, are good standards to do this.PS: there are some related questions/answers for this context, about webkit transform, converting with with PHP and about Generation PDF from HTML. No one with good answer for this presented question.
 
Back
Top