We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Read Bookmarks from PDF using C#

Hi Team please let us know what is the purpose of PageDisplay_Left & PageDisplay_Top in Aspose.Pdf.Facades.Bookmark object
can we read bookmarked data from those PageDisplay_Top & PageDisplay_Left numbers if yes please share sample code how to read bookmarked data from pdf

PdfBookmarkEditor bookmarkEditor2 = new PdfBookmarkEditor();
bookmarkEditor2.BindPdf(sInFile);
Aspose.Pdf.Facades.Bookmarks bookmarks2 = bookmarkEditor2.ExtractBookmarks();
foreach (Aspose.Pdf.Facades.Bookmark bookmark in bookmarks2)
{

}

@RaeesBeg

PageDisplay_Left and PageDisplay_Top Properties of Bookmark Class can be used to get/set left/top coordinate of page display. Along with it, you can also get the PageNumber value to determine which page is bookmarked. The bookmarked page then can be extracted and processed as per your needs. However, if you are facing some issues or your requirements are not being met, please share some sample PDF and details of your actual requirements so that we can further proceed to assist you accordingly.

Hi sir
I have 1 pdf attached to the same
I need to create bookmark named pdf as a output & in that bookmark I want only bookmark contents as original pdf contain Accenture.pdf (515.7 KB)
how can I archive this please give me suggestions

@RaeesBeg

We are trying to prepare a code example to achieve your requirements and will share with you soon.

1 Like