DocumentFactory

Наследование: java.lang.Object, com.aspose.pdf.IVentureLicenseTarget

public class DocumentFactory extends IVentureLicenseTarget

Класс, который позволяет создавать/загружать документы разных типов.

Конструкторы

КонструкторОписание
DocumentFactory()

Методы

МетодОписание
createDocument()Создать пустой документ.
createDocument(InputStream input)Загрузить документ из потока.
createDocument(InputStream input, LoadOptions options)Создать документ.
createDocument(InputStream input, String password)Загрузить защищенный паролем документ из потока.
createDocument(String fileName)Загрузить документ из файла.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

DocumentFactory()

public DocumentFactory()

createDocument()

public Document createDocument()

Создать пустой документ.

Возвращает: Document - Создан документ.

createDocument(InputStream input)

public Document createDocument(InputStream input)

Загрузить документ из потока.

Параметры:

ПараметрТипОписание
inputjava.io.InputStreamВходной поток.

Возвращает: Document - Создан документ.

createDocument(InputStream input, LoadOptions options)

public Document createDocument(InputStream input, LoadOptions options)

Создать документ.

Параметры:

ПараметрТипОписание
inputjava.io.InputStreamВходной поток.
optionsLoadOptionsВарианты загрузки документов.

Возвращает: Document - Объект документа

createDocument(InputStream input, String password)

public Document createDocument(InputStream input, String password)

Загрузить защищенный паролем документ из потока.

Параметры:

ПараметрТипОписание
inputjava.io.InputStreamИсходный поток.
passwordjava.lang.StringПароль для доступа к документу.

Возвращает: Document - Создан документ.

createDocument(String fileName)

public Document createDocument(String fileName)

Загрузить документ из файла.

Параметры:

ПараметрТипОписание
fileNamejava.lang.StringИмя файла PDF.

Возвращает: Document - Создан документ.

equals(Object arg0)

public boolean equals(Object arg0)

Параметры:

ПараметрТипОписание
arg0java.lang.Object

Возвращает: логический

getClass()

public final native Class<?> getClass()

Возвращает: java.lang.Класс

hashCode()

public native int hashCode()

Возвращает: инт

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Возвращает: java.lang.String

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