Hello,
i try to implement the example from here:
But when calling recognitionEngine.Recognize with every PDF, a NullReferenceException will be thrown.
Here is my code:
AsposeOcr recognitionEngine = new AsposeOcr();
OcrInput input = new OcrInput(InputType.PDF);
input.Add(inputForPdfOcrModel.InputPdf);
// Set recognition language
RecognitionSettings recognitionSettings = new RecognitionSettings();
recognitionSettings.Language = Language.Deu;
// Recognize image
List results = recognitionEngine.Recognize(input, recognitionSettings);
// Save searchable PDF
AsposeOcr.SaveMultipageDocument(inputForPdfOcrModel.InputPdf, SaveFormat.Pdf, results);
PDF:
TestDatei_c6a14dab-f0e3-4938-86ba-0b310a7eff5d_638581028449421452.pdf (1,8 KB)
Kind Regardd,
Andy