c# - PDFNet - how do I get all bookmarks -
i'm using pdfnet sdk c#. want list in own window bookmarks.
however, find way first bookmark, not other bookmarks.
this code:
namespace david.pdftest { public partial class pdfview : pdfviewctrl { protected override void onmousedown(mouseeventargs e) { trace.writeline(getdoc().getfirstbookmark().gettitle()); } } } is there possibility bookmarks?
it seems there bookmark.getnext() method use.
so write this:
namespace david.pdftest { public partial class pdfview : pdfviewctrl { protected override void onmousedown(mouseeventargs e) { var bm = getdoc().getfirstbookmark(); while ( bm!=null ) { trace.writeline(bm.gettitle()); bm = bm.getnext(); } } } }
Comments
Post a Comment