Package com.itextpdf.pdf2data
Class RecognitionProperties
java.lang.Object
com.itextpdf.pdf2data.RecognitionProperties
The
RecognitionProperties
class represents properties of recognition.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RecognitionProperties
Creates an instance of recognition properties for image file processing with OCR.static RecognitionProperties
Creates an instance of recognition properties for default PDF file processing.static RecognitionProperties
Creates an instance of recognition properties for PDF file with OCR processing.Get document source type which specifies how to treat the provided document.Get preprocessing type which specifies how to preprocess the provided document.setMetaInfo
(com.itextpdf.commons.actions.contexts.IMetaInfo metaInfo) Sets IMetaInfo for this recognition properties instance
-
Method Details
-
createForPdfFile
Creates an instance of recognition properties for default PDF file processing.- Returns:
-
created instance of
RecognitionProperties
-
createForPdfFileWithOcr
Creates an instance of recognition properties for PDF file with OCR processing.- Returns:
-
created instance of
RecognitionProperties
-
createForImageFile
Creates an instance of recognition properties for image file processing with OCR.- Returns:
-
created instance of
RecognitionProperties
-
getDocumentSourceType
Get document source type which specifies how to treat the provided document.- Returns:
- document source type
-
getPreprocessingType
Get preprocessing type which specifies how to preprocess the provided document.- Returns:
- preprocessing type
-
setMetaInfo
Sets IMetaInfo for this recognition properties instance- Parameters:
-
metaInfo
- IMetaInfo instance - Returns:
- current recognition properties instance
-