How to Get page count in Windows Forms PdfViewerControl

5 Sep 20251 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