Aspose.OCR for .NET 21.5 - Release Notes

All Features

KeySummaryCategory
OCRNET-331Add .pdf format support for RecognitionResultEnhancement

Enhancements

  • added ability to save the recognition result in the PDF (Adobe Portable Document) format

Public API and Backwards Incompatible Changes

New API

  • modified public enum SaveFormat: added value ‘Pdf’

Removed APIs

Will be deprecated

Usage Example for recognition and spell-checking with language indication

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");

            // Get image for recognize
            string image = "D://img.png";

            // Recognize image           
            RecognitionResult result = api.RecognizeImage(image, new RecognitionSettings());

            // Save result

			Console.WriteLine(result.RecognitionText);
			
            result.Save("D://test.pdf", SaveFormat.Pdf);
        }
    }
}