Skip to content

adangel/java-xml2pdf-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-xml2pdf-example

accompanying blog post

Example of how to use Apache FOP to create a PDF document in a simple Java application. The application converts a self-defined XML format using a XSL stylesheet into XSL-FO and then into PDF.

Features:

  • Title page with embedded image
  • Table of contents
  • Bookmarks in PDF
  • Embedded open type fonts
  • Self-contained as an executable jar

Building and running

./mvnw clean verify
java -jar target/javaxml2pdf-1.0-SNAPSHOT-jar-with-dependencies.jar example/bigdoc.xml
open example/bigdoc.pdf

Examples

References

License

Apache License, Version 2.0

About

Creating a PDF document using Apache FOP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published