To get the BookMark data structure in Tree

37 views
Skip to first unread message

Jitendra Kumar Singh

unread,
Mar 16, 2015, 1:52:59 PM3/16/15
to pdfne...@googlegroups.com
Hi I need the nested BookMark data in the WPF C#.
I need the Title of bookMark,Src of BookMark and Unique Id.

I have To create a Object in Nested Tree means

obj1(Parent Object) is List Which contain Obj2(Child Object), Id,Text,Src

Obj2(Child Object) also contain same structure like parent object(obj1).
That is Nested
A Parent object can contain multiple child object.
A Child Object also contain multiple child object like parent.

I need the Book Mark data in this Format


I had try to crate the object from this link:
https://www.pdftron.com/pdfnet/samplecode/BookmarkTest.cs.html


Our Object Structure:

[Serializable]
public class NavPointElement
{
public string Text { get; set; }
public string Src { get; set; }
public List<NavPointElement> Children { get; set; }
}


We have To set the details in This class object like NavPointList
[Serializable]
public class TOCElement
{
public string DocTitle { get; set; }
public string DocAuthor { get; set; }
public List<Meta> MetaList { get; set; }
public List<NavListElement> NavList { get; set; }
public List<PageListElement> PageList { get; set; }
public List<NavPointElement> NavPointList { get; set; }
}


Ryan

unread,
Mar 18, 2015, 8:44:00 PM3/18/15
to pdfne...@googlegroups.com
The Bookmark class exposes everything you need to recreate the TOC of a PDF.
Reply all
Reply to author
Forward
0 new messages