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 "Parham, Clinton" <cp...@biosignia.com> on 2007/08/30 18:09:31 UTC

Setting ID in PDF

Hello Fop Users:

I'm using FOP to transform HTML to PDF. In the HTML, I use id attributes to identify specific areas of interest:
<table id="intro">...</table>
<p id="summary">...</p>

I would like the id attributes to be part of the PDF so I can use another PDF capable tool to locate them. How should I go about doing this? I've tried setting the id attribute on block elements but the id doesn't seem to make it into the PDF.

Doing this:

<fo:block id="intro">...</fo:block>
or
<fo:block>...</fo:block>

results in the exact same PDF. The id is ignored.

Thank you!