Everything you need to start using and appreciating Apache™ FOP quickly.
The goal of this Quick Start Guide is to help novice users get Apache FOP up and running quickly. Typically, you'll need to:
Here are some links to help you find out what FOP can do, as well as how and where to get help:
Once you've familiarized yourself with the basics, you can get more detailed information, in the detailed FOP product documentation.
This section walks you through a "Hello World!" page with Apache FOP. We're assuming you download the binary distribution and that you have a Java Runtime Environment (version 1.8 or later) installed.
Windows: fop -fo examples/fo/basic/readme.fo -awt
Unix: ./fop -fo examples/fo/basic/readme.fo -awt
Frank
version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> method="xml" indent="yes"/> match="/"> master-name="A4-portrait" page-height="29.7cm" page-width="21.0cm" margin="2cm"> master-reference="A4-portrait"> flow-name="xsl-region-body"> Hello, select="name"/>!
Windows: fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf
Unix: ./fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf
Copyright © 2016 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
Apache, Apache XML Graphics, Apache FOP, Apache Batik, the Apache feather logo, and the Apache XML Graphics logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.