Chapter 11. Converting XML to PDF
XML is the most suitable format for data exchange, but not for data presentation. Adobe's PDF and Microsoft Excel's spreadsheet are the commonly used formats for data presentation. If you receive an XML file containing data that needs to be included in a PDF or Excel spreadsheet file, you need to convert the XML file to the relevant format. Some of the commonly used XML-to-PDF conversion tools/APIs are discussed in the following table:
Tool/API |
Description |
---|---|
iText |
iText is a Java library for generating a PDF document. iText may be downloaded from http://www.lowagie.com/iText/. |
Stylus Studio XML Publisher |
XML Publisher is a report designer, which supports many data sources, including XML, to generate PDF reports. |
Stylus Studio XML Editor |
XML Editor supports XML conversion to PDF. |
Apache FOP |
The Apache project provides an open source FO processor called Apache FOP to render an XSL-FO document as a PDF document. We will discuss the Apache FOP processor... |