java.lang.Object | |
↳ | com.pspdfkit.api.ocr.OcrProcessor.Builder |
A builder for creating OcrProcessor
instances.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder(PdfDocument sourceDocument)
Create the builder to help construct an
OcrProcessor . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OcrProcessor |
build()
Construct the
OcrProcessor with the parameters given to this builder. | ||||||||||
Builder |
setLanguage(OcrLanguage language)
Sets the OCR language.
| ||||||||||
Builder |
setPages(Set<Integer> pages)
Sets the pages for OCR.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create the builder to help construct an OcrProcessor
.
sourceDocument | The source document on which to perform OCR containing the image with recognizable text. |
---|
Construct the OcrProcessor
with the parameters given to this builder.
OcrProcessor
.
PSPDFKitInitializeException |
---|
Sets the OCR language. If this method is not called, the language will default to English.
language | The OcrLanguage with which to perform OCR.
|
---|
Sets the pages for OCR. If this method is not called, OCR will be performed on all pages.
pages | The page indices of the source document on which to perform OCR. Defaults to all pages if empty. |
---|