public final class TextExtractionOptions extends TextOptions
Represents text extraction options
Modifier and Type | Class and Description |
---|---|
static class |
TextExtractionOptions.TextFormattingMode
Defines different modes which can be used while converting pdf document into text.
|
Constructor and Description |
---|
TextExtractionOptions(int formattingMode)
Initializes new instance of the
TextExtractionOptions object for the specified text
formatting mode. |
Modifier and Type | Method and Description |
---|---|
int |
getFormattingMode()
Gets formatting mode.
|
double |
getScaleFactor()
Gets factor that will be applied to scale font size during extraction in pure mode.
|
void |
setFormattingMode(int value)
Sets formatting mode.
|
void |
setScaleFactor(double value)
Sets factor that will be applied to scale font size during extraction in pure mode.
|
public TextExtractionOptions(int formattingMode)
Initializes new instance of the TextExtractionOptions
object for the specified text
formatting mode.
formattingMode
- Text formatting mode value.public int getFormattingMode()
Gets formatting mode.
TextExtractionOptions.TextFormattingMode
public void setFormattingMode(int value)
Sets formatting mode.
value
- TextFormattingMode valueTextExtractionOptions.TextFormattingMode
public double getScaleFactor()
Gets factor that will be applied to scale font size during extraction in pure mode. Setting of less value leads to more spaces in the extracted text. Default value is 1 - no scaling; Setting value to zero allows algorithm choose scaling automatically.
public void setScaleFactor(double value)
Sets factor that will be applied to scale font size during extraction in pure mode. Setting of less value leads to more spaces in the extracted text. Default value is 1 - no scaling; Setting value to zero allows algorithm choose scaling automatically.
value
- double value