Get the content of the selected Bookmark

I need to get the content along with format when we select particular bookmark in the PDF document.


Please help me out how to achieve with .Net

Thanks,

Hi Srini,


Thanks for your inquiry. Please check following documentation link to get Bookmark details. It will help you to accomplish the task.


Please feel free to contact us for any further assistance.

Best Regards,

Hello,

Thanks for the update.

It’s only for getting bookmarks from the PDF document, but we need to get the content along with format by passing particular bookmark in the PDF document

Thanks

Hi Srini,


Thanks for your inquiry. You may get details of a particular bookmark as following. If there is any difference in your requirements and my understanding then please share some more details about your requirements.

PdfBookmarkEditor editor = new
PdfBookmarkEditor();<o:p></o:p>

editor.BindPdf(myDir+"Bookmark.pdf");

Aspose.Pdf.Facades.Bookmarks bms = editor.ExtractBookmarks("bookmark1");

foreach (Aspose.Pdf.Facades.Bookmark bm in bms)

{

Console.WriteLine("Title: {0}",bm.Title);

Console.WriteLine("Destination: {0}", bm.Destination);

Console.WriteLine("PageNumer: {0}", bm.PageNumber);

Console.WriteLine("level: {0}", bm.Level);

Console.WriteLine("Action: {0}", bm.Action);

}



Please feel free to contact us for any further assistance.


Best Regards,