Hello
     I am using SimpleBookmark class to get bookmarks
from a PDF file by using
SimpleBookmark.getBookmark(reader) method. The main
problem is that when it returns a list, i am unable to
extract the required information from the fields in
it, especially Named field. Some PDF files return
Action and Page fields along with their values but
some of them return Action and Named. How can i get
the Page information from only two fields i.e. Action
and Named. I have tried but in vain to make something
out of the value of this Named field but it doesnt
make sense. Below is the List that
SimpleBookmark.getBookmark(reader) returns.

{Kids=[{Named=G1.1014396, Title=Opening PDF documents,
Action=GoTo}, {Kids=[{Named=G1.1013681, Title=Setting
the page layout and orientation, Action=GoTo}],
Named=G1.1013619, Title=Adjusting the view of PDF
documents, Action=GoTo}, {Named=G1.1013715,
Title=Reading documents in Full Screen view,
Action=GoTo}, {Named=G1.1013731, Title=Paging through
documents, Action=GoTo}, {Kids=[{Named=G1.1013829,
Title=Retracing your viewing path, Action=GoTo},
{Named=G1.1013844, Title=Printing PDF documents,
Action=GoTo}], Named=G1.1013773, Title=Browsing with
Bookmarks, Thumbnails, Links, and Articles,
Action=GoTo}], Named=G1.1014403, Title=Adobe Acrobat
Reader Help, Action=GoTo}

{Kids=[{Named=G2.1010732, Title=Copyright,
Action=GoTo}], Named=G2.1010731, Title=Legal Notices,
Action=GoTo}

    The problem is that i am unable to get an idea of
the type of bookmark that these (Action and Named
fields) are indicating.

    Please can you tell me how to get or extract
information from Named and Action to set a bookmark. I
will be very thankful.

Shoaib


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to