C# Counting the number of pages of a PDF with iText7 and C# Using the built-in iText7 call, it's easy to get the number of pages in a PDF.