File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes XML:FO and PDF's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML:FO and PDF Watch "XML:FO and PDF New topic
Author

XML:FO and PDF's

Simon Harvey
Ranch Hand

Joined: Jan 26, 2003
Posts: 79
Hi there everyone,
Am I right in thinking that you have to use XML:FO in order to make PDF files out of xml files? If this is the case then can someone explain why you have to use this other technology instead of just using XSL.
For making HTML pages, I just use XSL, after all, it has been touted as the solution to all our presentation woes. But if this is the case, why then does pdf require this other technology, and what exactly does it do?
I havent been able to get a useful answer to this simple question yet.
I'm really hoping someone can help
Many thanks
Kind Regards
Simon
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Am I right in thinking that you have to use XML:FO in order to make PDF files out of xml files? If this is the case then can someone explain why you have to use this other technology instead of just using XSL.
For making HTML pages, I just use XSL, after all, it has been touted as the solution to all our presentation woes. But if this is the case, why then does pdf require this other technology, and what exactly does it do?

You don't have to use XSL:FO. It's just easier compared to writing your own XML-to-PDF conversion tool (whether it's based on an XSL stylesheet or just Java code parsing the XML). The reason why it's so difficult is the shear complexity of the PDF specification (e.g. font elements aren't that easy to play with).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Simon Harvey
Ranch Hand

Joined: Jan 26, 2003
Posts: 79
OK,
Thanks for that
Simon
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML:FO and PDF's