Class
OcrFormatProvider

Format provider that uses an OCR provider to create a RadFixedPage from an image.

Definition

Namespace:Telerik.Windows.Documents.Fixed.FormatProviders.Ocr

Assembly:Telerik.Windows.Documents.Fixed.FormatProviders.Ocr.dll

Syntax:

cs-api-definition
public class OcrFormatProvider : BinaryFormatProviderBase<RadFixedPage>, IFormatProvider<RadFixedPage>, IBinaryFormatProvider<RadFixedPage>

Inheritance: objectFormatProviderBase<RadFixedPage>BinaryFormatProviderBase<RadFixedPage>OcrFormatProvider

Implements: IBinaryFormatProvider<RadFixedPage>IFormatProvider<RadFixedPage>

Inherited Members BinaryFormatProviderBase<RadFixedPage>.Import(byte[])BinaryFormatProviderBase<RadFixedPage>.Import(byte[], TimeSpan?)BinaryFormatProviderBase<RadFixedPage>.Export(RadFixedPage)BinaryFormatProviderBase<RadFixedPage>.Export(RadFixedPage, TimeSpan?)FormatProviderBase<RadFixedPage>.Import(Stream)FormatProviderBase<RadFixedPage>.Import(Stream, TimeSpan?)FormatProviderBase<RadFixedPage>.Export(RadFixedPage, Stream)FormatProviderBase<RadFixedPage>.Export(RadFixedPage, Stream, TimeSpan?)FormatProviderBase<RadFixedPage>.ImportOverride(Stream)FormatProviderBase<RadFixedPage>.ExportOverride(RadFixedPage, Stream)FormatProviderBase<RadFixedPage>.ExportOverride(RadFixedPage, Stream, CancellationToken)

Constructors

OcrFormatProvider(IOcrProvider)

Initializes a new instance of the OcrFormatProvider class.

Declaration

cs-api-definition
public OcrFormatProvider(IOcrProvider ocrProvider)

Parameters

ocrProvider

IOcrProvider

The OCR provider implementation that will be used for optical character recognition operations.

Properties

CanExport

Gets a value indicating whether format provider can export.

Declaration

cs-api-definition
public override bool CanExport { get; }

Property Value

bool

The value indicating whether can export.

Overrides FormatProviderBase<RadFixedPage>.CanExport

CanImport

Gets a value indicating whether format provider can import.

Declaration

cs-api-definition
public override bool CanImport { get; }

Property Value

bool

The value indicating whether can import.

Overrides FormatProviderBase<RadFixedPage>.CanImport

OcrProvider

The OcrProvider instance used to process the image.

Declaration

cs-api-definition
public IOcrProvider OcrProvider { get; set; }

Property Value

IOcrProvider

SupportedExtensions

Gets the supported extensions.

Declaration

cs-api-definition
public override IEnumerable<string> SupportedExtensions { get; }

Property Value

IEnumerable<string>

The supported extensions.

Overrides FormatProviderBase<RadFixedPage>.SupportedExtensions

Methods

ImportOverride(Stream, CancellationToken)

Imports the specified input.

Declaration

cs-api-definition
protected override RadFixedPage ImportOverride(Stream input, CancellationToken cancellationToken)

Parameters

input

Stream

The input stream containing the image data to process with OCR.

cancellationToken

CancellationToken

The cancellation token used to cancel the operation.

Returns

RadFixedPage

The imported document.

Overrides FormatProviderBase<RadFixedPage>.ImportOverride(Stream, CancellationToken)