PDF index using DITA OT

Post here questions and problems related to editing and publishing DITA content.
november
Posts: 7
Joined: Mon May 23, 2011 9:14 pm

PDF index using DITA OT

Post by november »

How can I produce an index in my PDFs? The TOC has a listing for the index, but no entries are picked up.
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF index using DITA OT

Post by Radu »

Hi,

Oxygen uses the DITA Open Toolkit to publish DITA content to various output formats.
Assuming that you have properly added index terms in your DITA topics, the default PDF rendering engine which is the open-source Apache FOP does not have support to generate the index page.

The commercial RenderX XEP supports generating PDF with an index page and it can be installed and integrated with Oxygen:

http://www.oxygenxml.com/doc/ug-oxygen/ ... essor.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
november
Posts: 7
Joined: Mon May 23, 2011 9:14 pm

Re: PDF index using DITA OT

Post by november »

Thanks, for the quick response. I was afraid you were going to say that. Until I can evaluate your suggestion, how can I suppress the "Index" entry appearing in the PDF TOC?
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF index using DITA OT

Post by Radu »

Hi,

In the XSLT stylesheet:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/bookmarks_1.0.xsl

there is an xsl:if:

Code: Select all

<xsl:if test="//opentopic-index:index.groups//opentopic-index:index.entry">......</xsl:if>
which can be entirely commented out.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF index using DITA OT

Post by Radu »

Just to update this thread:

Using Oxygen 15.2 or newer you can generate an index page using the default PDF transformation.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply