By "extension", we mean any data that can be placed in the input XML document that is not addressed by the XSL-FO standard. By having a mechanism for supporting extensions, FOP is able to add features that are not covered in the specification.
The extensions documented here are included with FOP, and are automatically available to you. If you wish to add an extension of your own to FOP, please see the Developers' Extension Page.
Please see the SVG documentation for more details.
By convention, FO extensions in FOP use the "fox:" namespace identifier. To use any of the FO extensions, add a namespace entry for http://xml.apache.org/fop/extensions to the root element:
You can provide outlines inside the root object (but outside any page-sequences or other formatting objects). Here's an example of an outline entry:
It works similarly to a basic-link. There is also an external-destination property, but it isn't supported currently. See the pdfoutline.fo file in examples/fo/basic for a more complete example.
Use the fox:destination element to define "named destinations" inside a PDF document. These are useful as fragment identifiers, e.g. "http://server/document.pdf#anchor-name". fox:destination elements can be placed almost anywhere in the fo document, including a child of root, a block-level element, or an inline-level element. For the destination to actually work, it must correspond to an "id" attribute on some fo element within the document. In other words, the "id" attribute actually creates the "view" within the PDF document. The fox:destination simply gives that view an independent name.
Use the fox:continued-label element to create content in table-header and table-footer cells that will appear only on pages after the first page that the table appears. fox:continued-label is itself inline content, and is a container of fo:inline content. This content will be laid out only if the table does not fit on a single page and flows to following pages. Here is an example of FO code creating such a table-header: