How to get page count in WinForms PDF Viewer

14 Aug 20261 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