Run pdfoutline.fo Example in FOP

Q

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

✍: FYIcenter.com

A

FOP comes with an example XSL-FO file, pdfoutline.fo, which shows how to generate the outline of PDF contents. You can use the "fop" command to convert it into a PDF file:

fyicenter> cd \local\fop-2.x\fop

fyicenter> fop examples\fo\basic\pdfoutline.fo \temp\pdfoutline.pdf
... org.apache.fop.events.LoggingEventListener processEvent
INFO: Rendered page #1.
...
... org.apache.fop.events.LoggingEventListener processEvent
INFO: Rendered page #10.

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

 

Run blockcontainer.fo Example in FOP

Run images.fo Example in FOP

FOP Commands and Examples

⇑⇑ FAQ for FOP (Formatting Object Processor)

2016-07-02, 2789👍, 0💬