API To convert a file to PDF
5 answers
I would recommend that you take a look at Flying Saucer (formerly xhtmlrenderer), which makes creating PDFs extremely easy from XML and HTML files (it uses iText internally).
HTML / XML can be used as an intermediate format, which makes it quite flexible.
+4
source to share
If you want to generate a PDF document from an XML document, you can try Apache FOP, which follows the XSL-FO standard.
http://xmlgraphics.apache.org/fop/
So the smart process could be: extract data from different document formats using POI, odftoolkit (for OenDocument) or other tools, inject it into an XML container, and then convert it to PDF using FOP.
+1
source to share