Quoting Ronald Tooley <[EMAIL PROTECTED]>:

> Hi, how do I get a table header to also be a bookmark? The only way I know
> how to add a bookmark is through addSection

Please read Chapter 11 of the tutorial.
It explains how you can build an Outline tree manually.

> but I want this as a table header. How is this possible?

I would use an onGenericTag-event.
I would put the text of a Table Header in a Chunk, set the
generic tag (using the text I want in the Outline tree) and
in the onGenericTag, I would create a Destination and an
Outline-entry.

You can retrieve the pageNumber from the writer-parameter,
the position on the page from the rect-parameter and the
text for the outline from the text-parameter.

You can find some inspiration from example 8 of Chapter 11
where an outline is built using onParagraph-events...

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to