[
https://jira.jboss.org/jira/browse/JBSEAM-2578?page=com.atlassian.jira.pl...
]
Robert Morse commented on JBSEAM-2578:
--------------------------------------
As a partial work around, I modified p:chapter and p:section to accept a chapterTitle and
sectionTitle rather than other text in the document. This allows you to have a different
bookmark text that doesn't appear in the document itself. I've tested it with
Seam 2.1.2 along with iText 2.1.5 and 2.1.6. I'll upload the diff patch to both
UIChapter and UISection in a few minutes. I've been using this by putting p:chapter
right after the p:document tag and setting numberDepth = "0" and the chapterText
to whatever I need.
<p:chapter numberDepth="0" chapterTitle="This is a bookmarked
chapter">
....
....
</p:chapter>
(You'll need the UIChapter patch in order for it to recognize numberDepth)
To put an arbitrary section in, I do something like:
<p:section numberDepth="0" sectionTitle="This is the bookmark
section"/>
This doesn't include it in the document, but adds it to the PdfOutline as Terry
mentioned.
Provide support for creating bookmarks in pdf
---------------------------------------------
Key: JBSEAM-2578
URL:
https://jira.jboss.org/jira/browse/JBSEAM-2578
Project: Seam
Issue Type: Feature Request
Components: PDF
Affects Versions: 2.0.1.CR2
Environment: n/a
Reporter: Terry
Assignee: Norman Richards
Priority: Minor
Fix For: The future
Provide support to add bookmarks in pdf generated by seam. bookmark appears as an index
which when clicked jump to certain section of the page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira