0% found this document useful (0 votes)
10 views3 pages

Examples

Examples on the use of XSL-FO can be found in the FOP distribution. You can start transformation of all fo files into pdf files by running ant in this directory (only source distribution) the resulting test files are found in examples / fo / tests.

Uploaded by

edgardurao
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Examples

Examples on the use of XSL-FO can be found in the FOP distribution. You can start transformation of all fo files into pdf files by running ant in this directory (only source distribution) the resulting test files are found in examples / fo / tests.

Uploaded by

edgardurao
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Apache FOP Examples

Version 1298724

Table of contents
1 Example Documents Using Apache FOP........................................................................................2 2 Images Examples..................................................................................................................................2 3 Instream Foreign Object Examples......................................................................................................3

PDF created by Apache FOP [Link]

Apache FOP Examples

1 Example Documents Using Apache FOP These examples have been rendered using Apache FOP:
Description default font characters Table 1: Generated examples [Link] XSL-FO file [Link] PDF result

Other basic examples on the use of XSL-FO can be found in the FOP distribution in the subdirectory examples/fo. You can start transformation of all fo files into pdf files by running ant in this directory (only source distribution). The resulting test files can be found in examples/fo/tests At the moment the following files are part of the distribution: [Link] - a very simple file which gives use a first impression of the structure of an XSL-FO file [Link] - a simple file showing the use of a 2 level of headings, normal text and a header. [Link] - some table examples [Link] - a short tutorial how to use list fo's and properties [Link] - shows how to embed GIF and JPEG images into the XSL-FO file using external-graphic. [Link] - a not so simple example how to use borders in tables [Link] - a longer test file containing a lot of different flow objects and properties. A good candidate to test your bugfix or new FOP code. [Link] - shows different uses of fo:leader, p.e. as rule or in a table of content [Link] - shows the use of computed property values [Link] - shows the use of inherited property values [Link] - shows the use of fo:instream-foreign-object together with SVG [Link] - shows the use of the property text-decoration [Link] - uses an old version of FOP documentation for a longer example

Also, in the directory examples/fo/pagination you will find a suite of examples showing the use of XSLFO pagination. Developers will find the first steps to a test suite for all implemented formatting objects and properties in test/xml in the source distribution. 2 Images Examples Embedding images in FO:
description align in larger viewport align in smaller viewport scaling image Table 1: Images in FO [Link] [Link] [Link] fo file [Link] [Link] [Link] pdf result

Look also into the directory examples/fo/svg. There you find some very extensive SVG examples.

PDF created by Apache FOP [Link]

Page 2/3

Apache FOP Examples

3 Instream Foreign Object Examples Instream Foreign Object images in FO, there are more on the SVG Page:
description embedding svg in viewport [Link] fo file [Link] pdf result

Table 1: Embedding instream-foreign-object

PDF created by Apache FOP [Link]

Page 3/3

You might also like