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

Free Support Forum - aspose.com

Images with transparent layers

I have an app which is extracting images from a pdf file, then modifying and replacing them in the original pdf file. Certain images have transparent layers which cannot be handled properly when saved in jpeg format (must be saved as png). Is there a way of telling if the image extracted from the pdf using the XImage class has transparent layers before I do the save so that I can save as jpeg for all except the images with transparent layers in them?

Hi Trenton,

Aspose.Pdf for .NET does not support checking the transparent layers but you can use Aspose.Imaging for .NET to check if a PNG has transparent layers.

Please feel free to contact us in case you have further comments or questions.

Best Regards,