Hi,
After converting PDF to Jpeg we have incorrect result (there are black spots on whole picture). We use Aspose.PDF 21.11.
Please see attached files:
PdfToJpeg.pdf (609.1 KB)
PdfToJpeg_output.jpeg (614.1 KB)
The code we use:
Document doc = new Document($“C:/test/PdfToJpeg.pdf”);
JpegDevice device = new JpegDevice();
using (FileStream imageStream = new FileStream($“C:/test/PdfToJpeg_output.jpeg”, FileMode.Create))
{
device.Process(doc.Pages[1], imageStream);
imageStream.Close();
}
This happens not with every PDFs, only with attached file. Is there any way to fix this?
Thanks for your help.