GroupDocs.Parser for .NET 26.2 Release Notes
This page contains release notes for GroupDocs.Parser for .NET 26.2
Full List of Issues Covering all Changes in this Release
| Key | Summary | Category |
|---|---|---|
| PARSERNET-2833 | Implement support for Chinese and Japanese languages when using OCR | Improvement |
Public API and Backward Incompatible Changes
Implement support for Chinese and Japanese languages when using OCR
Description
This improvement implements the ability to perform text recognition (OCR) in Chinese and Japanese.
Public API changes
Class Languages has been added to GroupDocs.Parser.Options namespace. Property GroupDocs.Parser.Options.Languages Languages has been added to GroupDocs.Parser.Options.OcrOptions class.
Usage
The following example demonstrates how to recognize Japanese text in an image:
// Create an instance of Parser class
using (Parser parser = new Parser(documentPath))
{
OcrOptions ocrOptions = new OcrOptions()
{
Language = Language.Jpn
};
TextOptions options = new TextOptions(false, true, ocrOptions);
TextReader result = parser.GetText(options);
string text = result.ReadToEnd();
Console.WriteLine(text);
}