Run table.fo Example in fop-2.0-bin.zip

Q

How to run the "table.fo" example in fop-2.0-bin.zip to generated a PDF file?

✍: FYIcenter.com

A

fop-2.0-bin.zip comes with an example XSL-FO file, table.fo, which shows how to generate tables in PDF. You can use the "fop" command to convert it into a PDF file:

\fyicenter>cd \local\fop-2.0

\local\fop-2.0>echo %java_home%
   \Program Files\Java\jdk1.8.0_45\

\local\fop-2.0>fop examples\fo\basic\table.fo \temp\table.pdf
... 
INFO: Rendered page #7.

The output PDF file is located at \temp\table.pdf. Open it with a PDF viewer, you will see something like this:

Back to FAQ on FOP (Formatting Objects Processor).

2016-07-02, 1060👍, 0💬