Using SetCurrentPageProc() delegate to keep track of the current PDF page


I was trying to set a delegate to perform status bar update every time
the number of the current page changes. According to the API reference
there is a method SetCurrentPageProc, but I didn't find it inside
PDFNet dll.

Perhaps you are not using the latest version of PDFNet SDK demo?
If you download the latest SDK ( and run PDFView sample project, you will notice that
the current page is indicated in the window status bar.

The delegate is set as follows (in PDFViewForm.cs):
PDFViewCurrentPageDelegate(UpdateStatusBar), main_form);

Of course, you can also provide a different GUI (e.g. to display the
current page in an edit box instead of status bar etc).