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

Free Support Forum - aspose.com

Pdf to png- incorrect colors and some artifacts

Hi, everybody!


Try to convert complex pdf page with a lot of images to png-file. In result, I have an incorrect colors and some artifacts (green spots in the 24 square). Can you help me to have a better quality of resulting png-file?

pdf
png

Code (from there):
Aspose.Pdf.Document book = new Aspose.Pdf.Document(pdfPath);
using (FileStream imageStream = new FileStream(pngPath, FileMode.Create))
{
Resolution resolution = new Resolution(300);
PngDevice pngDevice = new PngDevice(resolution);
pngDevice.Process(book.Pages[1], imageStream);
imageStream.Close();
}

Hi,


Thanks for contacting support.

Please share the resource file so that we can test the conversion at our end. We are sorry for this inconvenience.

projectExample

Hi there,


Thanks for sharing your source document. While testing the scenario with the latest version of Aspose.Pdf for .NET 9.5.0, we have managed to reproduce the reported issue and logged it in our bug tracking system as PDFNEWNET-37434 for further investigation and resolution. We will notify you via this thread as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,