I’m trying to count images in a pdf file, The attached file contains 14 images, however, when I count the images, I get 14 on each page. For example,
int count = 0;
foreach (Page page in doc.Pages)
count += page.Resources.Images.Count;
}
At the end of this, the count will be 14*15 = 210.