XslFoLoadOptions

遗产: java.lang.Object, com.aspose.pdf.LoadOptions, com.aspose.pdf.XmlLoadOptions

public final class XslFoLoadOptions extends XmlLoadOptions

表示将 XSL-FO 文件加载/导入 pdf 文档的选项。

构造函数

构造函数描述
XslFoLoadOptions()创建没有 xsl 数据的 XslFoLoadOptions 对象。
XslFoLoadOptions(String xslFile)使用 xsl 数据创建 XslFoLoadOptions 对象。
XslFoLoadOptions(InputStream xslStream)使用 xsl 数据创建 XslFoLoadOptions 对象。

方法

方法描述
close()关闭实例
equals(Object arg0)
getBasePath()基本路径/url,从中搜索加载的 SVG 文件中引用的外部资源(如果有)的相对路径。
getClass()
getLoadFormat()表示 LoadOptions 描述的文件格式。
getParsingErrorsHandlingType()源 XSLFO 文档可能包含格式错误。
getWarningHandler()回调以处理生成的任何警告。
getXslStream()获取用于将 xml 转换为 pdf 文档的 xsl 数据。
hashCode()
notify()
notifyAll()
setBasePath(String value)
setParsingErrorsHandlingType(int parsingErrorsHandlingType)源 XSLFO 文档可能包含格式错误。
setWarningHandler(WarningCallback value)回调以处理生成的任何警告。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

XslFoLoadOptions()

public XslFoLoadOptions()

创建没有 xsl 数据的 XslFoLoadOptions 对象。

XslFoLoadOptions(String xslFile)

public XslFoLoadOptions(String xslFile)

使用 xsl 数据创建 XslFoLoadOptions 对象。

参数:

范围类型描述
xslFilejava.lang.StringXsl 文件将 XSL-FO 文档转换为 pdf 文档。

XslFoLoadOptions(InputStream xslStream)

public XslFoLoadOptions(InputStream xslStream)

使用 xsl 数据创建 XslFoLoadOptions 对象。

参数:

范围类型描述
xslStreamjava.io.InputStreamXsl 流将 XSL-FO 文档转换为 pdf 文档。

close()

public void close()

关闭实例

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

getBasePath()

public String getBasePath()

基本路径/url,从中搜索加载的 SVG 文件中引用的外部资源(如果有)的相对路径。

退货: java.lang.String - 字符串

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getLoadFormat()

public LoadFormat getLoadFormat()

表示 LoadOptions 描述的文件格式。

退货: LoadFormat - LoadFormat 元素

getParsingErrorsHandlingType()

public int getParsingErrorsHandlingType()

源 XSLFO 文档可能包含格式错误。此枚举列举了处理该错误的可能策略

退货: int - ParsingErrorsHandlingTypes 元素

getWarningHandler()

public WarningCallback getWarningHandler()

回调以处理生成的任何警告。 WarningHandler 返回指定 Continue 或 Abort 的 ReturnAction 枚举项。 Continue 是默认操作,Load 操作继续,但是用户也可以返回 Abort,在这种情况下 Load 操作应该停止。

退货: WarningCallback - IWarningCallback 值

getXslStream()

public InputStream getXslStream()

获取用于将 xml 转换为 pdf 文档的 xsl 数据。

退货: java.io.InputStream - 输入流

hashCode()

public native int hashCode()

退货: 整数

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setBasePath(String value)

public void setBasePath(String value)

参数:

范围类型描述
valuejava.lang.String

setParsingErrorsHandlingType(int parsingErrorsHandlingType)

public void setParsingErrorsHandlingType(int parsingErrorsHandlingType)

源 XSLFO 文档可能包含格式错误。此枚举列举了处理该错误的可能策略

参数:

范围类型描述
parsingErrorsHandlingTypeintParsingErrorsHandlingTypes 元素

setWarningHandler(WarningCallback value)

public void setWarningHandler(WarningCallback value)

回调以处理生成的任何警告。 WarningHandler 返回指定 Continue 或 Abort 的 ReturnAction 枚举项。 Continue 是默认操作,Load 操作继续,但是用户也可以返回 Abort,在这种情况下 Load 操作应该停止。

参数:

范围类型描述
valueWarningCallbackIWarningCallback 值

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