Generate PDF From XML Or Java Object Using Apache FOP


What is FOP(Formatting Objects Processor)?
Formatting Objects Processor (FOP, also known as Apache FOP) is a Java application that converts XSL Formatting Objects (XSL-FO) files to PDF or other printable formats.

Find more details on below link:

https://xmlgraphics.apache.org/fop/

Find this project on Github

https://github.com/javacodenet/ApacheFopDemo

pom.xml


ApacheFOPDemo.java


Books.java


Book.java


template.xsl


book.xml


Output


Comments

Popular posts from this blog

Generate Random values in Spring boot

Generate/Read an Excel file in Java using Apache POI