I am using this code below to get the page count on a document. I created a PDF document with a blank back page. This code incorrectly returns 1 pages instead of 2 pages. What am I doing wrong?document2.pdf (96.4 KB)
Document pdfDocument = new Document(pdfFile.FullName);
return pdfDocument.Pages.Count;