Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

pdf bookmarks list count not getting accurately

$
0
0
Hi,

The pdf bookmarks count is not getting accurately.
my code and sample pdf file mentioned Here

 PdfBookmarkEditor bookmarkEditor = new PdfBookmarkEditor();
        //open PDF file
        bookmarkEditor.BindPdf("outputwb3344.pdf"));
        //extract bookmarks
        Aspose.Pdf.Facades.Bookmarks bookmarks = bookmarkEditor.ExtractBookmarks();
        foreach (Aspose.Pdf.Facades.Bookmark bookmark in bookmarks)
        {
            string strLevelSeprator = string.Empty;
            for (int i = 1; i < bookmark.Level; i++)
            {
                strLevelSeprator += "----";
            }

            Response.Output.Write("{0}Title: {1}", strLevelSeprator, bookmark.Title);
            Response.Output.Write("{0}Page Number: {1}", strLevelSeprator, bookmark.PageNumber);
            Response.Output.Write("{0}Page Action: {1}<br/>", strLevelSeprator, bookmark.Action);
        }
        




Viewing all articles
Browse latest Browse all 3131

Trending Articles