| By Date: | <-- --> |
| By Thread: | <-- --> |
|
Hi, You say on your site about
the SimpleBookmark class the following remarks: Bookmark processing in a simple way. It has
some limitations, mainly the only action types supported are GoTo, GoToR, URI
and Launch. The list structure is composed by a number
of HashMap, keyed by strings, one HashMap for each bookmark. The element values
are all strings with the exception of the key "Kids" that has another
list for the child bookmarks. All the bookmarks have a "Title"
with the bookmark title and optionally a "Style" that can be
"bold", "italic" or a combination of both. They can also
have a "Color" key with a value of three floats separated by spaces. The
key "Open" can have the values "true" or "false"
and signals the open status of the children. It's "true" by default. The actions and the parameters can be: ·
"Action" = "GoTo" - "Page" |
"Named" o
"Page"
= "3 XYZ 70 400 null" - page number followed by a destination (/XYZ
is also accepted) o
"Named" =
"named_destination" ·
"Action"
= "GoToR" -
"Page" | "Named" | "NamedN", "File",
["NewWindow"] o
"Page"
= "3 XYZ 70 400 null" - page number followed by a destination (/XYZ
is also accepted) o
"Named"
= "named_destination_as_a_string" o
"NamedN"
= "named_destination_as_a_name" o
"File"
- "the_file_to_open" o
"NewWindow" -
"true" or "false" ·
"Action" = "URI" - "URI" o
"URI" =
"http://sf.net" - URI to jump to ·
"Action" = "Launch" - "File" o
"File"
- "the_file_to_open_or_execute" As you can see in my
following PDF example, the action is a _javascript_
action. 109 0 obj<</Count
4/Type/Outlines/First 272 0 R/Last 278 0 R>> endobj 272 0 obj<</Parent
109 0 R/Next 274 0 R/Title(Bibliographic data)/A 273 0 R>> endobj 273 0
obj<</S/_javascript_/JS(this.pageNum=0;)>> endobj 274 0 obj<</Parent
109 0 R/Next 276 0 R/Prev 272 0 R/Title(Abstract)/A 275 0 R>> endobj 275 0
obj<</S/_javascript_/JS(this.pageNum=0;)>> endobj 276 0 obj<</Parent
109 0 R/Next 278 0 R/Prev 274 0 R/Title(Description)/A 277 0 R>> endobj 277 0
obj<</S/_javascript_/JS(this.pageNum=1;)>> endobj 278 0 obj<</Parent
109 0 R/Prev 276 0 R/Title(Claims)/A 279 0 R>> endobj 279 0 obj<</S/_javascript_/JS(this.pageNum=2;)>> endobj Is it not possible to add
this type of action to the SimpleBookmark class? It does not seem to be
very difficult: I did myself a fix into the bookmarkDepth and createOutlineAction
methods. But to have an adapted
itext jar from you is more a solution I think. Best regards, Anne MUSSARD |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions