Browse our Products

Aspose.OCR for .NET 21.12 - Release Notes

All Features

KeySummaryCategory
OCRNET-402.NET 5 supportEnhancement
OCRNET-306Add .xlsx support for output formatEnhancement

Enhancements

  • improved skew correction algorithm
  • added the ability to get an Excel document (.xlsx) as a result of recognition
  • checked .NET 5 support

Public API and Backwards Incompatible Changes

New API

  • added case to the SaveFormat enum: xlsx

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 
            lic.SetLicense("Aspose.Total.lic");
			
            // recognize multipage PDF and save result as Excel file
            List<RecognitionResult> result = api.RecognizePdf(@"test.pdf", new DocumentRecognitionSettings
            {
                StartPage = 0,
                PagesNumber = 2
            });

            AsposeOcr.SaveMultipageDocument("ocr_result.xlsx", SaveFormat.Xlsx, result);
        }
    }
}