Acquire current page being displayed in WPF Pdf Viewer
PDF Viewer supports acquiring the index of the page being displayed in the PDF Viewer at any moment using the CurrentPageIndex property. The following code example illustrates the same.
//Initialize PDF Viewer. PdfViewerControl pdfViewer1 = new PdfViewerControl(); //Load the PDF. pdfViewer1.Load("Sample.pdf"); // Acquiring the number of page being displayed in the Viewer int pageCount = pdfviewer1.CurrentPageIndex;
'Initialize PDF Viewer. Private pdfViewer1 As New PdfViewerControl() 'Load the PDF. pdfViewer1.Load("Sample.pdf") ' Acquiring the number of page being displayed in the Viewer Dim pageCount As Integer = pdfviewer1. CurrentPageIndex
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page