DocumentWeb

Inheritance: java.lang.Object, com.aspose.pdf.IVentureLicenseTarget, com.aspose.pdf.ADocument

All Implemented Interfaces: com.aspose.pdf.IDocument

public final class DocumentWeb extends ADocument implements IDocument

Represents DocumentWeb class

Constructors

ConstructorDescription
DocumentWeb()Initializes empty DocumentWeb.
DocumentWeb(InputStream input)Initialize new DocumentWeb instance from the input stream.
DocumentWeb(InputStream input, String password)
DocumentWeb(InputStream input, LoadOptions options)Opens an existing DocumentWeb from a stream providing necessary converting to get pdf DocumentWeb.
DocumentWeb(String filename, LoadOptions options)
DocumentWeb(String filename)Just init DocumentWeb using filename .
DocumentWeb(String filename, String password)Initializes new instance of the DocumentWeb class for working with encrypted DocumentWeb.

Methods

MethodDescription
save(HttpServletResponse response, String outputFileName, int disposition, SaveOptions options)Saves the document to a response stream with a save options.

DocumentWeb()

public DocumentWeb()

Initializes empty DocumentWeb.

DocumentWeb(InputStream input)

public DocumentWeb(InputStream input)

Initialize new DocumentWeb instance from the input stream.

Parameters:

ParameterTypeDescription
inputjava.io.InputStreamStream with pdf DocumentWeb.

DocumentWeb(InputStream input, String password)

public DocumentWeb(InputStream input, String password)

Parameters:

ParameterTypeDescription
inputjava.io.InputStream
passwordjava.lang.String

DocumentWeb(InputStream input, LoadOptions options)

public DocumentWeb(InputStream input, LoadOptions options)

Opens an existing DocumentWeb from a stream providing necessary converting to get pdf DocumentWeb.

Parameters:

ParameterTypeDescription
inputjava.io.InputStreamInput stream to convert into pdf DocumentWeb.
optionsLoadOptionsRepresents properties for converting input into pdf DocumentWeb.

DocumentWeb(String filename, LoadOptions options)

public DocumentWeb(String filename, LoadOptions options)

Parameters:

ParameterTypeDescription
filenamejava.lang.String
optionsLoadOptions

DocumentWeb(String filename)

public DocumentWeb(String filename)

Just init DocumentWeb using filename . The same as DocumentWeb(Stream) .

Parameters:

ParameterTypeDescription
filenamejava.lang.StringThe name of the pdf DocumentWeb file.

DocumentWeb(String filename, String password)

public DocumentWeb(String filename, String password)

Initializes new instance of the DocumentWeb class for working with encrypted DocumentWeb.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringDocumentWeb file name.
passwordjava.lang.StringUser or owner password.

save(HttpServletResponse response, String outputFileName, int disposition, SaveOptions options)

public void save(HttpServletResponse response, String outputFileName, int disposition, SaveOptions options)

Saves the document to a response stream with a save options.

Parameters:

ParameterTypeDescription
responsejavax.servlet.http.HttpServletResponseEncapsulates HTTP-response information.
outputFileNamejava.lang.StringSimple file name, i.e. without path.
dispositionintRepresents a MIME protocol Content-Disposition header.
optionsSaveOptionsSave options.