While attempting to do OCR on a pdf using provided sample code, I am getting an exception: ‘Could not load type ‘Aspose.Drawing.Bitmap’ from assembly ‘Aspose.Drawing, Version=23.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’.’
I am using Aspose.Total v 23.1.0. in a .Net 7 Console app
The code is:
var filePath = @"..\..\..\Docs\TEST REPORT.pdf";
Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
Aspose.OCR.DocumentRecognitionSettings recognitionSettings = new
Aspose.OCR.DocumentRecognitionSettings();
recognitionSettings.Language = Aspose.OCR.Language.Eng;
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.RecognizePdf(filePath, recognitionSettings);
var outputFilePath = @"..\..\..\Output\TEST REPORT.docx";
Aspose.OCR.AsposeOcr.SaveMultipageDocument(outputFilePath, Aspose.OCR.SaveFormat.Docx, results);