Aspose.OCR for .NET 21.8 - Release Notes

All Features

OCRNET-374PDF files recognitionEnhancement
OCRNET-409Scanned multipage PDF-files input: (images only)Enhancement
OCRNET-393Extend RecognitionResult object with lines coordinatesEnhancement


  • added ability to recognize multipage scanned PDF files
  • added new property in the RecognitionResult class: RecognitionLinesResult

Public API and Backwards Incompatible Changes


  • added method: List RecognizePdf(string fullPath, DocumentRecognitionSettings settings)
  • added class: DocumentRecognitionSettings
  • added property: List RecognitionLinesResult { get; internal set; } to the RecognitionResult class

Removed APIs

Will be deprecated

Usage Example

using Aspose.OCR;

namespace ProgramOCR
    class Program
        static void Main(string[] args)
            // Get API
            AsposeOcr api = new AsposeOcr();

            // Create license
            License lic = new License();

            // Set license 

            // Get PDF file for recognize
            string imgPath = "img.pdf";

            // Recognize images from PDF           
			DocumentRecognitionSettings set = new DocumentRecognitionSettings();
				set.DetectAreas = false;
			List<RecognitionResult> result = api.RecognizePdf(imgPath, set);

			// Print result
			int pageNumber = 0;
			foreach (var page in result)
				System.Console.WriteLine($"Page: {pageNumber++} text: {page.RecognitionText}");