Browse our Products

Aspose.OCR for .NET 24.9.0 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
OCRNET‑918Added the ability to reduce PDF file size at the expense of lower background image quality.New feature
OCRNET‑913
OCRNET‑915
Implemented next-get text-in-wild OCR model with improved recognition accuracy and multi-language support.Enhancement
OCRNET‑917Improved image orientation detection to prevent certain images to be incorrectly rotated upside-down.Enhancement
n/aRefined content area detection algorithms for TABLE and PHOTO modes.Enhancement

Public API changes and backwards compatibility

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

Added public APIs:

The following public APIs have been added to Aspose.OCR for .NET 24.5.0 release:

Aspose.OCR.PdfOptimizationMode enumeration

The optimization mode specifies the balance between file size and image quality of saved PDFs.

NameValueDescription
NONE0Do not optimize PDF size.
MAXIMUM_QUALITY1Optimize file size while preserving the highest image quality.
HIGH_QUALITY2Smaller PDF file size at the expense of sight image downsampling.
BALANCED3Downsample images to balance file size and image quality.
AGGRESSIVE4Significantly reduce the PDF file size at the expense of lower image quality.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Examples

The code samples below illustrate the changes introduced in this release:

Optimize searchable PDF file size

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 image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input);
// Save results in optimized PDF
Aspose.OCR.AsposeOcr.SaveMultipageDocument("result.pdf", Aspose.OCR.SaveFormat.Pdf, results, null, Aspose.OCR.PdfOptimizationMode.BALANCED);