You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Schweigl, Johann" <Jo...@softwareag.com> on 2002/05/27 14:48:01 UTC
PDF table of contents - possible with FOP?
Hi all,
is it possible to have Apache FOP generate a table of contents and maybe
thumbnails for a PDF file? Is there any other FOP that can do that?
Best Regards,
Johann
AW: PDF table of contents - possible with FOP?
Posted by Jens Posingies <je...@posingies.com>.
PDF table of contents - possible with FOP?Here an xsl example, taken from my
current project:
<xsl:template match="chapter" mode="content">
<fox:outline internal-destination="{@id}">
<fox:label>
<xsl:number count="chapter" level="multiple"/>
<xsl:text>.</xsl:text><xsl:value-of select="title"/>
</fox:label>
<xsl:apply-templates select="chapter" mode="content"/>
</fox:outline>
</xsl:template>
Don't forget the name space:
xmlns:fox="http://xml.apache.org/fop/extensions" version="1.0"
This works with all FOP version I have used until now (0.18.1 - 0.20.3).
-----Ursprüngliche Nachricht-----
Von: Schweigl, Johann [mailto:Johann.Schweigl@softwareag.com]
Gesendet: Montag, 27. Mai 2002 14:48
An: 'fop-user@xml.apache.org'
Betreff: PDF table of contents - possible with FOP?
Hi all,
is it possible to have Apache FOP generate a table of contents and maybe
thumbnails for a PDF file? Is there any other FOP that can do that?
Best Regards,
Johann