PdfConverter.GetNextImage() Takes a Long Time

Hi,


We are facing an issue when trying to get all the images from a pdf. It is taking an unusual amount of time to save the image in a stream. Please find below the code we are using (and the pdf attached)

string pdfPath = “”; //Path of pdf
PdfConverter pdfConverter = new PdfConverter();
Document document = new Document(pdfPath);
pdfConverter.BindPdf(document );
pdfConverter.StartPage = 1;
pdfConverter.EndPage = 2;
pdfConverter.DoConvert();
using (MemoryStream stream = new MemoryStream())
{
pdfConverter.GetNextImage(stream, System.Drawing.Imaging.ImageFormat.Jpeg); //This statement is taking too long
}

Thank you.

Hi Rachelle,


Thanks for using our API’s.

I have tested the scenario and as per my observations, the conversion process is taking around 15 seconds when using latest release of Aspose.Pdf for .NET 11.4.0. For the sake of correction, I have logged it as PDFNEWNET-40518 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.