Browse our Products

Aspose.OCR for Java 23.7.0 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
OCRJAVA‑328Added automatic spelling correction to the SaveMultipageDocument method.Enhancement
OCRJAVA‑329Significantly improved the performance of geometric distortions removal (AutoDewarping method).Enhancement

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR for Java 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 Java 23.7.0 release:

SaveMultipageDocument method

A new parameter language has been added to set the language for searching and automatically correcting spelling errors when saving recognition results to multi-page document.

Removed public APIs:

No changes.

Examples

The examples below illustrates the changes introduced in this release:

Find and automatically correct spelling errors

AsposeOCR api = new AsposeOCR();
// Add images to OcrInput object
OcrInput source = new OcrInput(InputType.SingleImage);
source.add("image1.png");
source.add("image2.jpg");
// Extract text from images
ArrayList<RecognitionResult> results = api.Recognize(source, new RecognitionSettings());
// Save all recognized pages as PDF
AsposeOCR.SaveMultipageDocument("result.pdf", Format.PdfNoImg, results, SpellCheckLanguage.Eng);