PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
List<float> horizontalResolution = new List<float>();
List<float> verticalResolution = new List<float>();
foreach (PdfPageBase page in loadedDocument.Pages)
{
//Extracts the images from the document
Image[] extractedImages = page.ExtractImages();
//Iterates all the image
for (int j = 0; j < extractedImages.Length; j++)
{
PdfImage img = new PdfBitmap(extractedImages[j]);
horizontalResolution.Add(img.HorizontalResolution);
verticalResolution.Add(img.VerticalResolution);
}
} |