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

Free Support Forum - aspose.com

Issue with converting pdf to image

When trying to converting pdf pages to images, a rectangle shows up at the end of each line.
Can you check this issue?

using (Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(“test.pdf”))
for (int page = 1; page <= pdfDocument.Pages.Count; pageCount++)
using (FileStream imageStream = new FileStream(page + “.gif”, FileMode.Create))
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
Aspose.Pdf.Devices.GifDevice gifDevice = new Aspose.Pdf.Devices.GifDevice(resolution);
gifDevice.Process(pdfDocument.Pages[page], imageStream);

pdf to image.zip (114.6 KB)


Thanks for sharing further details.

We have logged an investigation ticket as PDFNET-47915 in our issue tracking system. We will further look into details of it and keep you posted with the status of its resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.