Class OcrFormatProvider
Format provider that uses an OCR provider to create a RadFixedPage from an image.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.FormatProviders.Ocr
Assembly: Telerik.Windows.Documents.Fixed.FormatProviders.Ocr.dll
Syntax
public class OcrFormatProvider : BinaryFormatProviderBase<RadFixedPage>, IFormatProvider<RadFixedPage>, IBinaryFormatProvider<RadFixedPage>
Constructors
OcrFormatProvider(IOcrProvider)
Initializes a new instance of the OcrFormatProvider class.
Declaration
public OcrFormatProvider(IOcrProvider ocrProvider)
Parameters
IOcrProvider
ocrProvider
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
public override bool CanExport { get; }
Property Value
System.Boolean
The value indicating whether can export. |
Overrides
CanImport
Gets a value indicating whether format provider can import.
Declaration
public override bool CanImport { get; }
Property Value
System.Boolean
The value indicating whether can import. |
Overrides
OcrProvider
The OcrProvider instance used to process the image.
Declaration
public IOcrProvider OcrProvider { get; set; }
Property Value
IOcrProvider
|
SupportedExtensions
Gets the supported extensions.
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
System.Collections.Generic.IEnumerable<System.String>
The supported extensions. |
Overrides
Methods
ImportOverride(Stream, CancellationToken)
Imports the specified input.
Declaration
protected override RadFixedPage ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
System.IO.Stream
input
The input stream containing the image data to process with OCR. |
System.Threading.CancellationToken
cancellationToken
The cancellation token used to cancel the operation. |
Returns
RadFixedPage
The imported document. |