Run simplecol.fo Example in FOP

Q

How to run the "simplecol.fo" example in FOP to generated a PDF file?

✍: FYIcenter.com

A

FOP comes with an example XSL-FO file, simplecol.fo, which shows how to generate multiple columns in PDF. You can use the "fop" command to convert it into a PDF file:

\fyicenter>cd \local\fop-2.2\fop

\local\fop-2.2\fop>fop examples\fo\region_body\simplecol.fo \temp\simplecol.pdf
... org.apache.fop.apps.FopConfParser configure
INFO: Default page-height set to: 11in
... org.apache.fop.apps.FopConfParser configure
INFO: Default page-width set to: 8.26in
Nov 15, 2015 10:43:25 AM org.apache.fop.events.LoggingEventListener processEvent
INFO: Rendered page #1.

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

The same example is provided in FOP 2.2, 2.1, and 2.0.

 

barcode.fo Example Errors in FOP

Run SVG embedding.fo Example in FOP

FOP Commands and Examples

⇑⇑ FAQ for FOP (Formatting Object Processor)

2016-07-03, 1556👍, 0💬