PDF Generation Using Apache FOP

For generating a PDF from an XML file you need an XSLT stylesheet which converts the XML file to an XSL-FO file. The created XSL-FO file is also an XML file which contains all the formatted objects. The ORMB FOP reporting framework reads the XSL-FO file and formats it to a PDF document.

The process overview of PDF generation from an XML file is shown in the below image: