TextExtractionOptions

Inheritance: java.lang.Object, com.aspose.pdf.TextOptions

public final class TextExtractionOptions extends TextOptions

Represents text extraction options

Constructors

ConstructorDescription
TextExtractionOptions(int formattingMode)Initializes new instance of the TextExtractionOptions object for the specified text formatting mode.

Methods

MethodDescription
getFormattingMode()Gets formatting mode.
setFormattingMode(int value)Sets formatting mode.
getScaleFactor()Gets factor that will be applied to scale font size during extraction in pure mode.
setScaleFactor(double value)Sets factor that will be applied to scale font size during extraction in pure mode.

TextExtractionOptions(int formattingMode)

public TextExtractionOptions(int formattingMode)

Initializes new instance of the TextExtractionOptions object for the specified text formatting mode.

Parameters:

ParameterTypeDescription
formattingModeintText formatting mode value.

getFormattingMode()

public int getFormattingMode()

Gets formatting mode.

Returns: int - TextFormattingMode value

setFormattingMode(int value)

public void setFormattingMode(int value)

Sets formatting mode.

Parameters:

ParameterTypeDescription
valueintTextFormattingMode value

getScaleFactor()

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.

Returns: double - double value

setScaleFactor(double value)

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 (from 1 to 10). Default value is 1 - no scaling; Setting value to zero allows algorithm choose scaling automatically.

Parameters:

ParameterTypeDescription
valuedoubledouble value