We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF Images extraction

Hello,

I had questions about images extractions.

When I execute your sample I am unable to extract our images in the PDF.

PdfExtractor pdfExtractor = new PdfExtractor();
pdfExtractor.bindPdf(“SampleDataTable.pdf”);
// extract all the images
pdfExtractor.extractImage();
int imageCount = 1;
// get all the extracted images
while (pdfExtractor.hasNextImage()) {
pdfExtractor.getNextImage(“Image” + imageCount + “.jpg”);
imageCount++;
System.out.println(" Image found: "+ imageCount);
}

@george.soto,
We have tested a sample PDF with the latest version 17.8 of Aspose.Pdf for Java API and can retrieve images. Kindly send us your source PDF, we will investigate and share our findings with you. Your response is awaited.