Java create PDF from template: Apache FOP vs?

rascio picture rascio · Apr 18, 2012 · Viewed 9.4k times · Source

I have to create a pdf from Java, I would like to create it from a template instead of create it using java code ex:

document.addLabel("a pdf..")

I've seen that I can do it with Apache FOP that use the XSL-FO for the template, does anyone know a free graphical designer for the XSL-FO? I've found just https://www.ecrion.com/Products/XFDesigner/StartTrial.aspx this one.

Or are there some alternatives to Apache FOP? Thank you!

Answer

gimco picture gimco · Apr 18, 2012

I recomend you the combination of JODReports and JODConverter. JODReports it's a solution to generate reports from ODT templates, so it is easy to design templates using LibreOffice. Later, you can transform the reports (in format .odt or .doc) to PDF.