The GetEngineSupportedFormats Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Gets a list of the engine native formats supported by this IOcrEngine.Visual Basic (Declaration) | |
---|---|
Function GetEngineSupportedFormats() As String() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IOcrDocumentManager Dim value() As String value = instance.GetEngineSupportedFormats() |
C# | |
---|---|
string[] GetEngineSupportedFormats() |
C++/CLI | |
---|---|
array<String^>^ GetEngineSupportedFormats(); |
Some of the OCR engines supported by LEADTOOLS (for example, the OcrEngineType.Plus and OcrEngineType.Professional supports saving the recognition result using the engine native save mechanism instead of the LEADTOOLS Document Writers. Use the GetEngineSupportedFormats method to get a list of the names of the native formats and the EngineFormat property to set the format to use when saving the results.
It is recommended that you use the LEADTOOLS Document Writers supported formats always when saving OCR recognition data. For more information refer to Leadtools.Forms.DocumentWriters.DocumentFormat. Support for native engine formats may be deprecated in later versions of LEADTOOLS.
To save the recognition results using the engine native format:
- Obtain the engine native format name using the GetEngineSupportedFormats.
- Set the engine format name with the EngineFormat property
- Call the various save methods (IOcrDocument.Save or IAutoRecognizeManager.Run) using DocumentFormat.User for the format parameter.
For more information about the various document formats supported by LEADTOOLS refer to Leadtools.Forms.DocumentWriters.DocumentFormat.
To determine whether a particular engine native format is supported by this IOcrEngine, use IsEngineFormatSupported.
To get the file extension for a particular engine native format, use GetEngineFormatFileExtension.
To get the friendly name for a particular engine native format, use GetEngineFormatFriendlyName.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Reference
IOcrDocumentManager InterfaceIOcrDocumentManager Members
Leadtools.Forms.DocumentWriters.DocumentFormat
IOcrDocument Interface
IOcrDocument.Save
IOcrDocument.SaveXml
IOcrPage.Recognize
IOcrEngine Interface
OcrEngineManager Class
OcrEngineType Enumeration
Programming with Leadtools .NET OCR
Files to be Included with Your Application