Images not in Resources.Images- but detected by ImagePlacementAbsorber

Hi,

I am evaluating Aspose.pdf for use in editing some of our custom generated pdfs.
One thing I am initially puzzled by - I can load and save our pdfs ok, but when
I detect for images off the Resources.Images, I find none.

If I load

Document pdfDocument = new Document("test.pdf")

pdfDocument.Pages[1].Resources.Images has a count of 0.

But if I use the ImagePlacementAbsorber, I can find the image
(in this case it is a graph that needs to be re-sized)

ImagePlacementAbsorber abs = new ImagePlacementAbsorber();
pdfDocument.Pages.Accept(abs);

foreach (ImagePlacement imagePlacement in abs.ImagePlacements)
{
XImage image = imagePlacement.Image;
// finds it no problem
}

So... why isn't the image showing in the Resources when I load this pdf,
and where might it be 'hiding' since the placement absorber seems to find it ok?
It's possible that the fellow who built the pdf in the first place may have
done something strange with the images that is causing this, not sure.

I'll need to resize it somehow, but I'm not sure how to get a handle on it that
I can work with. The ImagePlacementAbsorber can't be used to update the images
back to the Document object, I assume.

Thanks if you can help or provide more information

~Peter

Hi Peter,

Sorry for the inconvenience faced. I’ve managed to reproduce the issue at my end and logged it as PDFNEWNET-35208 in our bug tracking system for further investigation and resolution. You will be notified via this thread as soon as it is resolved.

Moreover in reference to your original requirement, extracting and replacing back image after manipulating it. Please check following documentation link for extracting and replacing using Facades namespace. Hopefully it will serve the purpose.

Best Regards,