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

Free Support Forum - aspose.com

Pdf -extract image as aspose.pdf.Image

Hi,

How can we extract images as aspose.pdf.Image objects?

With below method we get XImage object but it may not have details like Hyperlink or referenceParagraph which are available in Image class.

com.aspose.pdf.XImage xImage = pdfDocument.getPages().get_Item(1).getResources().getImages().get_Item(1);

Please let us know how to extract aspose.pdf.Image objects from existing PDF document. or let us know how can we get hyperlink or reference paragraph using XImage and related classes.

Thank you.
-Sonali

Hi Sonali,


I am looking into this query and will get back to you soon.

Hi,

Any update ?We want image to be read as aspose.pdf.Image from existing PDF because we want to delete it based on Hyperlink associated with it. Please let us know when can this be available? or let us know if any other workaround to delete image based on hyperlink using com.aspose.pdf.XImage or other classes in com.aspose.pdf.

Thanks.

-Sonali

Hi Sonali,


Thanks for your patience and sorry for the delayed response.

I am afraid currently Aspose.Pdf for Java does not support the feature to retrieve URL/Hyperlink associated with image object. However for the sake of implementation, we already have logged this requirement as PDFNEWJAVA-34031 in our issue tracking system. The development team will look into the details of this requirement and will keep you posted on the status of correction. Please be patient and spare us little time.

We are really sorry for this delay and inconvenience.

@sonaliag1,

Thanks for your patience.

We are pleased to share that the feature requested earlier is implemented. In order to fulfill your requirements, please try using the latest release of Aspose.Pdf for Java 17.7.

For implementation details, please take a look over this blog post.