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

Free Support Forum - aspose.com

PDF Images extraction


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();
// extract all the images
int imageCount = 1;
// get all the extracted images
while (pdfExtractor.hasNextImage()) {
pdfExtractor.getNextImage(“Image” + imageCount + “.jpg”);
System.out.println(" Image found: "+ imageCount);

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.