Where can I find an alternative to Apache Format Objects Processor to produce PDF files from XML documents using Java?
IText, an open source library that can produce PDF documents dynamically from Java programs, is available in ready-to-use pre-compiled binary format and source code.
From the iText Web site, download the two jar files that make up iText, found in the Download section of the page. Place the jar files in a directory that is part of your Java Classpath.
To use the library, download the Hello World example named Chap0101.java located at the top of the iText tutorial page. The example is a stand-alone Java application that will create a PDF file containing the words “Hello World” when executed.
To build and run the example in Eclipse, create a Java Project containing the two jar files and the example file, add the jar files to the Java Build Path using the Project Properties menu, and run the application to create Chap0101.pdf.
The iText tutorial pages provide several examples of how to apply the steps demonstrated in the Hello World tutorial.




