Seeing the following error
> Exception thrown: '#=zhqZCDh_kiUMv1MLnUfX5kULpbpeAAofF4as_A0yydKnjlK99Sg==' in Aspose.PDF.dll
> Exception thrown: '#=zhqZCDh_kiUMv1MLnUfX5kULpbpeAAofF4as_A0yydKnjlK99Sg==' in Aspose.PDF.dll
…
trying to use Aspose.OCR to extract text from images in a PDF with the following code. Which I have reduced to just getting the images to rule out other problems. Haven’t found any pattern as to why it is failing. I tried writing to a file and still get the error, the errored image is a black box.
The PDF appears to be a scanned document that was saved as a PDF, in that each page is an image. The document opens successfuly in acrobat reader.
using (var pdfExtractor = new PdfExtractor())
{
pdfExtractor.BindPdf(fileSource);
pdfExtractor.ExtractImage();
while (pdfExtractor.HasNextImage())
{
using (var extractionStream = new MemoryStream())
{
pdfExtractor.GetNextImage(extractionStream);
}
}
}
Using Aspose pdf 22.3.0, OCR 22.2