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 How to convert xml to pdf form in java 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 "How to convert xml to pdf form in java" Watch "How to convert xml to pdf form in java" New topic
Author

How to convert xml to pdf form in java

vipin jain
Ranch Hand

Joined: Aug 24, 2008
Posts: 122


Best Regards,<br />Vipin<br />MCA, SCJP5, SCWCD in progress
vipin jain
Ranch Hand

Joined: Aug 24, 2008
Posts: 122
vipin jain wrote:


Hi any one please tell me how to convert xml in pdf and visa versa ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41489
    
  53
The "xml-to-pdf" part can be achieved using the Apache FOP library if you're proficient in XSL-FO. If the XML is closer to XHTML, the Flying Saucer library may help (it's on dev.java.net).

The "vice versa" part will be hard, if not impossible. You may be able to extract the text that's in the pdf using a librariy like PDFBox or JPedal, but that text will be unstructured. So it'd be up to your application to create XML from that.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert xml to pdf form in java