Class OCRParams.Builder
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.params.ocr.OCRParams.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructs aOCRParams.Builder
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OCRParams
build()
Returns a newOCRParams
instance built from the current state of this builder.OCRParams.Builder
withOCRLocale(OCRSupportedLocale ocrSupportedLocale)
Sets input language to be used for OCR, specified byOCRSupportedLocale
.OCRParams.Builder
withOCRType(OCRSupportedType ocrSupportedType)
Sets OCR type, specified byOCRSupportedType
-
-
-
Method Detail
-
withOCRLocale
public OCRParams.Builder withOCRLocale(OCRSupportedLocale ocrSupportedLocale)
Sets input language to be used for OCR, specified byOCRSupportedLocale
.- Parameters:
ocrSupportedLocale
- seeOCRSupportedLocale
; can not be null. Default value isOCRSupportedLocale.EN_US
- Returns:
- this Builder instance to add any additional parameters
-
withOCRType
public OCRParams.Builder withOCRType(OCRSupportedType ocrSupportedType)
Sets OCR type, specified byOCRSupportedType
- Parameters:
ocrSupportedType
- seeOCRSupportedType
; can not be null. Default value isOCRSupportedType.SEARCHABLE_IMAGE
- Returns:
- this Builder instance to add any additional parameters
-
-