Convert PDF to Image throw System.IndexOutOfRangeException

Hi,
I want to convert every pages in one pdf to image,
I use Pdf.Kit PdfConverter to do this job, the code is blow

PdfConverter pdfToImg = new PdfConverter();
pdfToImg.BindPdf(@“G:\SlideParserTest\微軟談雲端運算.pdf”);
pdfToImg.DoConvert();

while (pdfToImg.HasNextImage())
{

pdfToImg.GetNextImage(@“G:\SlideParserTest” + DateTime.Now.Ticks + “.jpg”);
}
pdfToImg.Close();

but I always get the System.IndexOutOfRangeException
and only the first page covert to image.

use visual studio debug, the exception is throwed by "while (pdfToImg.HasNextImage())"
Is any solution can help me, Thanks.

Galaxy


Hi,

Thank you for considering Aspose.

Could you please attach the pdf here and tell us which version of Aspose.Pdf.Kit you are using to help us reproduce the problem at our end? Then we could investigate it in detail.

Thanks,


The version of Pdf.Kit is 3.4.0.0 For .Net

and one more question, if use this pdf "CSharp Coding Standards.pdf"
it will throw “Error in converting character” exception.

please check this question, too. Thanks.

galaxy

Hi,

These issues have been logged as PDFKITNET-8913;PDFKITNET-8914 in our bug tracking system. Our team will be looking into the issues and you'll be updated via this forum.

Regards,