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.