Hello
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)