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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -