Class RecognitionProperties

java.lang.Object
com.itextpdf.pdf2data.RecognitionProperties

public class RecognitionProperties extends Object
The RecognitionProperties class represents properties of recognition.
  • Method Details

    • createForPdfFile

      public static RecognitionProperties createForPdfFile()
      Creates an instance of recognition properties for default PDF file processing.
      Returns:
      created instance of RecognitionProperties
    • createForPdfFileWithOcr

      public static RecognitionProperties createForPdfFileWithOcr()
      Creates an instance of recognition properties for PDF file with OCR processing.
      Returns:
      created instance of RecognitionProperties
    • createForImageFile

      public static RecognitionProperties createForImageFile()
      Creates an instance of recognition properties for image file processing with OCR.
      Returns:
      created instance of RecognitionProperties
    • getDocumentSourceType

      public DocumentSourceType getDocumentSourceType()
      Get document source type which specifies how to treat the provided document.
      Returns:
      document source type
    • getPreprocessingType

      public PreprocessingType getPreprocessingType()
      Get preprocessing type which specifies how to preprocess the provided document.
      Returns:
      preprocessing type
    • setMetaInfo

      public RecognitionProperties setMetaInfo (com.itextpdf.commons.actions.contexts.IMetaInfo metaInfo)
      Sets IMetaInfo for this recognition properties instance
      Parameters:
      metaInfo - IMetaInfo instance
      Returns:
      current recognition properties instance