Click or drag to resize

IOcrManagerGetValidOcrFileTypes Method

Get a list of the file types that support OCR.

Namespace:  EdaIntegrationContract.OCR
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
List<string> GetValidOcrFileTypes()

Return Value

Type: ListString
A list of file type Id's.
Examples
The following example demonstrates retrieving a list of valid file types for OCR.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.OCR;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        //Get the list of valid OCR file types
        List<string> ocrFileTypeIds = edaCase.OCR.GetValidOcrFileTypes();

        // Set the AnalysisOcrFileTypes list
        edaCase.OCR.Properties.AnalysisOcrFileTypes = ocrFileTypeIds;

        // Save the changes to the case
        edaCase.OCR.UpdateProperties();
    }
}
See Also