Hey,
I must be doing something wrong, as this doesn’t make any sense.
Document pdfDocument = new Document(“source-pdf.pdf”);
Console.WriteLine("# of pages: " + pdfDocument.Pages.Count);
foreach(Page page in pdfDocument.Pages)
{
Console.WriteLine(page.Number);
}
Generates:
# of pages: 30
1
2
3
4
Why does this over loop only 4 times if there are 30 pages?
Sadly, this is a sensitive document and I cannot share it.
I can confirm the PDF does have 30 pages when opening it in Acrobat.
Thanks