Run blockcontainer.fo Example in FOP

Q

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

✍: FYIcenter.com

A

FOP comes with an example XSL-FO file, blockcontainer.fo, which shows how to the fo:block-container object to create an area with a different writing mode or a different reference orientation. 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\blockcontainer.fo \temp\blockcontainer.pdf
... org.apache.fop.events.LoggingEventListener processEvent
WARNING: Font "Symbol,normal,700" not found. Substituting with 
"Symbol,normal,400".
... org.apache.fop.events.LoggingEventListener processEvent
WARNING: Font "ZapfDingbats,normal,700" not found. Substituting 
with "ZapfDingbats,normal,400".
... org.apache.fop.events.LoggingEventListener processEvent
WARNING: Content overflows the viewport of an fo:block-container 
in block-progression direction by 43200 millipoints. (See position 103:68)
... org.apache.fop.events.LoggingEventListener processEvent
WARNING: Content overflows the viewport of an fo:block-container in 
block-progression direction by 72000 millipoints. (See position 119:69)
... org.apache.fop.events.LoggingEventListener processEvent
INFO: Rendered page #1.
... 
INFO: Rendered page #2.

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

 

Run table.fo Example in FOP

Run pdfoutline.fo Example in FOP

FOP Commands and Examples

⇑⇑ FAQ for FOP (Formatting Object Processor)

2016-07-02, 3648🔥, 0💬