Browse our Products

Aspose.OCR for Java 23.6.0 - Release Notes

Deprecation warning

What was changed

OCRJAVA‑323Added the ability to save recognition results to searchable PDF files without keeping an original image in the background.New feature

Public API changes and backwards compatibility

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

Added public APIs:

The following public APIs have been introduced in this release:

Format.PdfNoImg option

When saving recognition results with this option, a textual PDF document is created, but the original images are not placed in the background. This can be useful when digitizing large amounts of high-quality text (such as books) so that the resulting file takes up much less space than using the Format.Pdf parameter.

Updated public APIs:

No changes.

Removed public APIs:

No changes.


The examples below illustrates the changes introduced in this release:

Saving searchable PDF without background images

AsposeOCR api = new AsposeOCR();
// Add images to the recognition batch
OcrInput images  = new OcrInput(InputType.SingleImage);
images.add(os.path.join(self.dataDir, "source1.png"));
images.add(os.path.join(self.dataDir, "source2.png"));
// Recognize images
ArrayList<RecognitionResult> results = api.Recognize(input, set);
// Save results to PDF
AsposeOCR.SaveMultipageDocument("result.pdf", Format.PdfNoImg, results);