how to generate a pdf file

hi i want to generate a pdf file using a java program, i have a string of xml format i want read the string and get each node of the string then

pass it to generate pdf.how to do this, the problem is if i want to read

xml then i must use org.w3c.dom.Element, but for pdf generation i must use com.lowagie.text.Element , so how to solve this.

please help.

rafel

[392 byte] By [rafelmita] at [2007-11-27 7:49:09]
# 1

Well, obviously XML and PDF are two very different kinds of format, and it's up to you how one is going to be mapped into the other. There are at least two PDF APIs available free, but it's not a trivial format to manage.

It's impossible to give you any more advice with the limited information you've supplied.

malcolmmca at 2007-7-12 19:30:05 > top of Java-index,Java Essentials,Java Programming...
# 2
Is it possible to use of jasper report and iReport report designer tools ? As there is possibility to generate information in different formats from text to html to pdf.. I dont know whether this is applicable to you or not. You have to just pass parameters.prashant shukla
prashant@banasdairy.coopa at 2007-7-12 19:30:05 > top of Java-index,Java Essentials,Java Programming...