FOP Installation Verification on Windows

This section provides a tutorial on how to verify Apache™ FOP by running a FOP built-in example in an AWT preview window on Windows systems.

After installing Apache™ FOP on your Windows 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 \fop\fop

fop\fop> fop -version
FOP Version 2.5

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.

Apache™ FOP AWT Preview Example on Windows
Apache™ FOP AWT Preview Example on Windows

3. Add "C:\fop\fop" to system environment variable "path". This allows to run the "fop" command without the path name "C:\fop\fop".

herong> fop -version

FOP Version 2.5

Table of Contents

 About This Book

 Introduction of XSL-FO

Apache™ FOP (Formatting Objects Processor)

 What Is Apache™ FOP?

 FOP Download and Installation on Windows

FOP Installation Verification on Windows

 FOP Download and Installation on macOS

 FOP Installation Verification on macOS

 "fop" Command and Options

 "fop -fo" - Formatting XSL-FO Files

 "fop -xml -xsl" - Transformation and Formatting

 "fop -xml -xsl -foout" - XSLT Transformations

 RenderX XEP as an XSL-FO Tool

 Introduction of Area Model

 XSL-FO Document Basics and Examples

 Page Layout Masters

 Block-Level Formatting Objects

 Inline-Level Formatting Objects

 Including Graphics in XSL-FO document

 Table of Rows and Columns

 List, Item, Label, and Body

 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

 RenderX XEP Font Configurations

 Converting HTML to PDF

 References

 Full Version in PDF/ePUB