Hi Team,
Please ,kindly help to get the image type which is embedded inside the PDF .
Thanks & regards,
priyanga G
Hi Team,
Please ,kindly help to get the image type which is embedded inside the PDF .
Thanks & regards,
priyanga G
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
Please refer to this help topic: Extract Images from the PDF File
Java
System.out.println(com.aspose.imaging.Image.getFileFormat(stream));