Class OCRParams.Builder
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.params.ocr.OCRParams.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructs aOCRParams.Builderinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OCRParamsbuild()Returns a newOCRParamsinstance built from the current state of this builder.OCRParams.BuilderwithOCRLocale(OCRSupportedLocale ocrSupportedLocale)Sets input language to be used for OCR, specified byOCRSupportedLocale.OCRParams.BuilderwithOCRType(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
-
-