XSL-FO Tutorials - Herong's Tutorial Examples - v2.25, by Herong Yang
FOP Installation Verification on macOS
This section provides a tutorial on how to verify Apache™ FOP by running a FOP built-in example in an AWT preview window on macOS systems.
After installing Apache™ FOP on your macOS system, you can follow these steps to verify if the installation is completed or not.
1. Verify if JVM (Java Virtual Machine) is on the system or not by running the following in a command window:
herong> java -version java version "15" 2020-09-15 Java(TM) SE Runtime Environment (build 15+36-1562) Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)
If you get an error, install JDK (Java Development Kit) on your system.
2. Run the built-in example:
herong> cd /Library/fop/fop /Library/fop/fop> ./fop -version FOP Version 2.7 /Library/fop/fop> ./fop -fo examples/fo/basic/readme.fo -awt
If you see a new window displaying some FOP readme information as shown below, you know that your Apache™ FOP is installed correctly.
As you can see, the AWT preview tool on macOS is not as good as the one on Windows. But this should not impact the behavior of the main FOP processor.
3. Add "/Library/fop/fop" to system environment variable "path". This allows to run the "fop" command without the path name "/Library/fop/fop".
herong> fop -version FOP Version 2.7
Table of Contents
►Apache™ FOP (Formatting Objects Processor)
FOP Download and Installation on Windows
FOP Installation Verification on Windows
FOP Download and Installation on macOS
►FOP Installation Verification on macOS
"fop -fo" - Formatting XSL-FO Files
"fop -xml -xsl" - Transformation and Formatting
"fop -xml -xsl -foout" - XSLT Transformations
XSL-FO Document Basics and Examples
Block-Level Formatting Objects
Inline-Level Formatting Objects
Including Graphics in XSL-FO document
Floating Blocks - "float" and "footnote"
Hyperlinks, Table of Contents and Indexes
Headers and Footers using "static-content"
Font Attributes and Font Families
Apache FOP Font Configurations