Using annotationManager As AnnotationManager = New AnnotationManager()
annotationManager.InitFromFile("test.pdf")
Dim message As String = "The number of pages: " + annotationManager.PageCount
message = message + vbCrLf + "The current page: " + annotationManager.CurrentPage
MessageBox.Show(message, "CurrentPage", MessageBoxButtons.OK, MessageBoxIcon.Information)
annotationManager.Close()
End Using
using (AnnotationManager annotationManager = new AnnotationManager())
{
annotationManager.InitFromFile("test.pdf");
string message = "The number of pages: " + annotationManager.PageCount;
message += "\nThe current page: " + annotationManager.CurrentPage;
MessageBox.Show(message, "CurrentPage", MessageBoxButtons.OK, MessageBoxIcon.Information);
annotationManager.Close();
}