[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Is letting the browser transform XML to XHTML usin
> > And what's the best method of generating PDFs from > > these XML files? > > One way is to use XSL:FO - I don't know if that's the best. One > problem if you are publishing to the web and to PDF is that you have > to maintain both an XSLT and an XSL:FO when a change is needed. > Another option maybe to publish to XHTML and then look for an XHTML -> > PDF conversion... I wonder if anyone has a solution for this now? Prince is great for this: http://www.princexml.com/ It's an XML to PDF engine that uses css to hold formatting information. When your content is already XHTML and you have css that makes it ready for screen display you can get a PDF that looks just like your browser screen with no extra work (actually it's not perfectly identical, if your pdf users are picky you need to treat Prince output as a browser and test for that output just like you do for IE and Firefox). If you want more features in your PDF, you can layer print only css on top of your web stuff and get things like table of contents, print headers and footers, page breaks (before sections for example), etc. Because prince supports css3 you can do a lot of fancy stuff. Check out boom for an example: http://www.alistapart.com/articles/boom Although prince is not an exact drop in replacement for FO, I still think it could take over pdf generation for the vast majority of documents that have a web representation. ----->Nathan
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|