TextExtractionOptions

遗产: java.lang.Object, com.aspose.pdf.TextOptions

public final class TextExtractionOptions extends TextOptions

表示文本提取选项

构造函数

构造函数描述
TextExtractionOptions(int formattingMode)为指定的文本格式化模式初始化 TextExtractionOptions 对象的新实例。

方法

方法描述
equals(Object arg0)
getClass()
getFormattingMode()获取格式化模式。
getScaleFactor()获取在纯模式下提取期间将应用于缩放字体大小的因子。
hashCode()
notify()
notifyAll()
setFormattingMode(int value)设置格式化模式。
setScaleFactor(double value)设置在纯模式下提取期间将应用于缩放字体大小的因子。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

TextExtractionOptions(int formattingMode)

public TextExtractionOptions(int formattingMode)

为指定的文本格式化模式初始化 TextExtractionOptions 对象的新实例。

参数:

范围类型描述
formattingModeint文本格式化模式值。

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getFormattingMode()

public int getFormattingMode()

获取格式化模式。

退货: int - TextFormattingMode 值

getScaleFactor()

public double getScaleFactor()

获取在纯模式下提取期间将应用于缩放字体大小的因子。设置较小的值会导致提取的文本中出现更多空格。默认值为 1 - 无缩放;将值设置为零允许算法自动选择缩放比例。

退货: 双倍价值

hashCode()

public native int hashCode()

退货: 整数

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setFormattingMode(int value)

public void setFormattingMode(int value)

设置格式化模式。

参数:

范围类型描述
valueintTextFormattingMode 值

setScaleFactor(double value)

public void setScaleFactor(double value)

设置在纯模式下提取期间将应用于缩放字体大小的因子。设置较小的值会导致提取文本中有更多空格(从 1 到 10)。默认值为 1 - 无缩放;将值设置为零允许算法自动选择缩放比例。

参数:

范围类型描述
valuedouble双倍价值

toString()

public String toString()

退货: java.lang.字符串

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int