public final class ConversionOptions
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversionOptions.Builder
Provides static creation methods for
ConversionOptions. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ConversionOptions |
firstPage(int firstPage)
Sets the number of the first page to generate.
|
int |
hashCode() |
ConversionOptions |
imageWidth(int imageWidth)
Sets the output image width in pixels.
|
ConversionOptions |
lastPage(int lastPage)
Sets the number of the last page to generate, defaults to the last page
of the document.
|
ConversionOptions |
ocrInputLanguage(java.lang.String ocrInputLanguage)
Sets the language code in BCP 47 format, used by OCR engine to search for
language-specific character set.
|
public ConversionOptions imageWidth(int imageWidth)
imageWidth - the output image width in pixelsjava.lang.IllegalArgumentException - if imageWidth is not positivepublic ConversionOptions firstPage(int firstPage)
firstPage - the number of the first page to generatejava.lang.IllegalArgumentException - if firstPage is not positivepublic ConversionOptions lastPage(int lastPage)
lastPage - the number of the last page to generatejava.lang.IllegalArgumentException - if lastPage is not positivepublic ConversionOptions ocrInputLanguage(java.lang.String ocrInputLanguage)
ocrInputLanguage - the language code used by OCR enginejava.lang.IllegalArgumentException - if ocrInputLanguage is null, empty or
comprises only whitespace characterspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object