Aspose Java

aspose for java doesnt recognize all pdf images

Hi Fernando,


Thanks for your inquiry. Please share your sample code and source document, so we will test the scenario and will update you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

This is unaceptable i need this in bulk work.

is there a work around?

if not i want a refound.

Hi Fernando,


Thanks for sharing the sourced document, I have tested the scenario using Aspose.Pdf for Java 9.7.0 and unable to notice the issue. Please download and try latest version of Aspose.Pdf for Java, hopefully it will resolve the issue.

// Open document<o:p></o:p>

Document doc = new Document(myDir + "NoImages.pdf");

// Create ImagePlacementAbsorber object to perform image placement

// search

ImagePlacementAbsorber abs = new ImagePlacementAbsorber();

// Accept the absorber for first page

doc.getPages().accept(abs);

int cnt = 0;

// Display image placement properties for all placements

for (com.aspose.pdf.ImagePlacement imagePlacement : (Iterable) abs

.getImagePlacements()) {

java.io.OutputStream output = new java.io.FileOutputStream(myDir

+ cnt + "output.png");

imagePlacement.getImage()

.save(output, ImageFormatInternal.getPng());

// imagePlacement.getImage().save(output);

output.close();

cnt++;

}


Please feel free to contact us for any further assistance.


Best Regards,