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

Free Support Forum - aspose.com

GetNextImage returns blank pages for large PDFs

Hi,

We are trying to extract a large PDF to images and they are coming out as blank pages.

I have attached the PDF that isn’t working using the code below:

private void PdfToImages()
{
PdfConverter converter = new PdfConverter();
converter.BindPdf(“big.pdf”);
converter.DoConvert();
int i = 1;
while (converter.HasNextImage())
{
MemoryStream stream = new MemoryStream();
converter.GetNextImage(stream, ImageFormat.Tiff);
Image img = Image.FromStream(stream);
img.Save(String.Format(“image{0}.tiff”, i++));
}
}

Regards,

Hi Matthew,

I have reproduced this problem at my end and logged it as PDFKITNET-19400 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,