Browse our Products

Aspose.OCR for .NET 23.7.0 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
OCRNET‑697Significantly improved the performance of geometric distortions removal (AutoDewarping method).Enhancement
OCRNET‑698Added automatic spelling correction to the SaveMultipageDocument method.Enhancement

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR for .NET 23.7.0 that may affect the code of existing applications.

Added public APIs:

No changes

Updated public APIs:

The following public APIs have been introduced in Aspose.OCR for .NET 23.7.0 release:

Aspose.OCR.AsposeOcr.SaveMultipageDocument method

New parameters have been added, which enable finding and automatically correcting spelling errors when saving recognition results to a multi-page document:

ParameterTypeDescription
applySpellingCorrectionboolSet to true to activate automatic spelling correction.
languageSpellCheckLanguageSelect the spellchecker language.
dictionaryPathstringProvide the path to the custom spelling dictionary.

Removed public APIs:

No changes.

Examples

The examples below illustrates the changes introduced in this release:

Find and automatically correct spelling errors

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add images to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("page1.png");
input.Add("page2.png");
// Recognize images
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input);
// Save results
AsposeOcr.SaveMultipageDocument("result.pdf", SaveFormat.PdfNoImg, result, true, Aspose.OCR.SpellChecker.SpellCheckLanguage.Eng);