Click or drag to resize

IOcrPropertiesAnalysisOcrFileTypes Property

Gets or sets a list of file types to get queued for OCR by the analyzer when the QueueForOcrDuringAnalysis attribute is active.

Namespace:  EdaIntegrationContract.OCR
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
List<string> AnalysisOcrFileTypes { get; set; }

Property Value

Type: ListString
Remarks
List defaults to include all of the most common file types. A list of supported file type Id's can be found by using GetValidOcrFileTypes. Duplicate file type Id's will be removed from the list automatically when set.
Examples
The following example demonstrates setting a list of valid file types for OCR.
C#
using System.Collections.Generic;
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Ocr;

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

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

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

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