How to Get page count in Windows Forms PdfViewerControl

14 Jun 20211 minute to read

The number of pages in the currently loaded PDF can be found by using PageCount property.

int count = pdfViewerControl1.PageCount;
Dim count As Integer = pdfViewerControl1.PageCount