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.

Is there any progress regarding this issue?


I am afraid that at present the issue is still unresolved. We request for your patience and will share feedback with you as soon as the issue will be fixed.

Is there any update?


We regret to share with you that there is no update available on this issue at the moment. We will be sure to inform you via this forum thread once there is an update available on it.