DocumentFactory
内容
[
隐藏
]遗产: java.lang.Object, com.aspose.pdf.IVentureLicenseTarget
public class DocumentFactory extends IVentureLicenseTarget
允许创建/加载不同类型文档的类。
构造函数
构造函数 | 描述 |
---|---|
DocumentFactory() |
方法
DocumentFactory()
public DocumentFactory()
createDocument()
public Document createDocument()
创建空文档。
退货: Document - 创建的文档。
createDocument(InputStream input)
public Document createDocument(InputStream input)
从流中加载文档。
参数:
范围 | 类型 | 描述 |
---|---|---|
input | java.io.InputStream | 输入流。 |
退货: Document - 创建的文档。
createDocument(InputStream input, LoadOptions options)
public Document createDocument(InputStream input, LoadOptions options)
创建文档。
参数:
范围 | 类型 | 描述 |
---|---|---|
input | java.io.InputStream | 输入流。 |
options | LoadOptions | 文档加载选项。 |
退货: Document - 文档对象
createDocument(InputStream input, String password)
public Document createDocument(InputStream input, String password)
从流中加载受密码保护的文档。
参数:
范围 | 类型 | 描述 |
---|---|---|
input | java.io.InputStream | 源码流。 |
password | java.lang.String | 用于访问文档的密码。 |
退货: Document - 创建的文档。
createDocument(String fileName)
public Document createDocument(String fileName)
从文件加载文档。
参数:
范围 | 类型 | 描述 |
---|---|---|
fileName | java.lang.String | PDF 文件的名称。 |
退货: Document - 创建的文档。
equals(Object arg0)
public boolean equals(Object arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | java.lang.Object |
退货: 布尔值
getClass()
public final native Class<?> getClass()
退货: java.lang.Class
hashCode()
public native int hashCode()
退货: 整数
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
退货: java.lang.字符串
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long | |
arg1 | int |