Get properties of image

Hi Team,

Please ,kindly help to get the image type which is embedded inside the PDF .

Thanks & regards,
priyanga G

@priyanga,

With Aspose.PDF API, we can retrieve the stream instance of each image from the PDF document, and then pass it to Aspose.Imaging API to detect the format of the image stream as follows:
C#

Console.WriteLine(Aspose.Imaging.Image.GetFileFormat(stream));

Please refer to this help topic: Extract Images from the PDF File

Hi @imran.rafique,

Please,kindly provide the source code in java.

Thanks & regards,
priyanga G

@priyanga,

Please refer to this help topic: Extract Images from the PDF File

Java

System.out.println(com.aspose.imaging.Image.getFileFormat(stream));