Hi all, I have a problem with FOP extension for PDF bookmarks. It seems that FOP will not generate bookmarks in the PDF if the <fox:outline> elements come after a page-sequence element. Has anyone else had this experience? According to the help the <outline> elements need only be children of the root and there are no restrictions on their location in the file.
A sample file is below that demonstrates an outline placement that prevents the bookmark from being created. Thanks Philip <?xml version="1.0" encoding="utf-8"?> <fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format' xmlns:fox='http://xml.apache.org/fop/extensions'> <fo:layout-master-set> <fo:simple-page-master page-width='215.9mm' page-height='279mm' master-name='my-page'> <fo:region-body margin='25mm' /> </fo:simple-page-master> </fo:layout-master-set> <!-- The bookmark is created when the outline fragment is immediately below this line --> <fo:page-sequence master-reference="my-page"> <fo:flow flow-name="xsl-region-body"> <fo:block id="foo">This sample file demonstrates a problem(?) with the FOP PDF bookmarks standard extension. Bookmarks are created when the outline elements come before a page-sequence element but they're ignored when placed after a page-sequence element despite the fact that they're children of root in both cases. </fo:block> </fo:flow> </fo:page-sequence> <!-- The bookmark is NOT created when the outline fragment is immediately below this line --> <fox:outline internal-destination="foo"> <fox:label>Read about foo!</fox:label> </fox:outline> </fo:root> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
