Getting Exception: 'Could not load type 'Aspose.Drawing.Bitmap' from assembly 'Aspose.Drawing, Version=23.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56'.'

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);

@andychopra

Can you please make sure that you have installed all the packages using NuGet package manager? Please try to remove the Aspose.PDF package and install Aspose.PDF.Drawing package instead as it will also install Aspose.Drawing dependency with it. If issue still persists, please share the sample console application with us in .zip format. We will test the scenario in our environment and address it accordingly.