FormWeb

Inheritance: java.lang.Object, com.aspose.pdf.facades.IVentureLicenseTarget, com.aspose.pdf.facades.Facade, com.aspose.pdf.facades.SaveableFacade, com.aspose.pdf.facades.AForm

All Implemented Interfaces: com.aspose.pdf.facades.IForm

public final class FormWeb extends AForm implements IForm

Representing Acro form Interface.

Constructors

ConstructorDescription
FormWeb()Construtcor of FormWeb without parameters.
FormWeb(IDocument document)Initializes new FormWeb object on base of the document .
FormWeb(IDocument document, OutputStream destStream)Initializes new FormWeb object on base of the document .
FormWeb(IDocument document, String destFileName)Initializes new FormWeb object on base of the document .
FormWeb(InputStream srcStream)Constructor for FormWeb.
FormWeb(InputStream inputStream, HttpServletResponse response)Creates FormWeb which will save result into HttpResponse object.
FormWeb(InputStream srcStream, OutputStream destStream)Constructor of FormWeb with two stream parameters.
FormWeb(InputStream srcStream, String destFileName)Constructor of FormWeb
FormWeb(String srcFileName)Constructor of FormWeb.
FormWeb(String inputFile, HttpServletResponse response)Creates FormWeb which will save result into HttpResponse object.
FormWeb(String srcFileName, OutputStream destStream)Constructor of FormWeb.
FormWeb(String srcFileName, String destFileName)Constructor of FormWeb class.

Methods

MethodDescription
getResponse()Gets or sets Response object where result of operation will be stored.
setResponse(HttpServletResponse value)Gets or sets Response object where result of operation will be stored.
save()Saves the value of the filled fields and close the opened Pdf document.

FormWeb()

public FormWeb()

Construtcor of FormWeb without parameters.


FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb();
 FormWeb.setSrcFileName("file.pdf");

FormWeb(IDocument document)

public FormWeb(IDocument document)

Initializes new FormWeb object on base of the document .

Parameters:

ParameterTypeDescription
documentIDocumentPdf document.

FormWeb(IDocument document, OutputStream destStream)

public FormWeb(IDocument document, OutputStream destStream)

Initializes new FormWeb object on base of the document .

Parameters:

ParameterTypeDescription
documentIDocumentPdf document.
destStreamjava.io.OutputStreamDestination stream.

FormWeb(IDocument document, String destFileName)

public FormWeb(IDocument document, String destFileName)

Initializes new FormWeb object on base of the document .

Parameters:

ParameterTypeDescription
documentIDocumentPdf document.
destFileNamejava.lang.StringPath of the destination file.

FormWeb(InputStream srcStream)

public FormWeb(InputStream srcStream)

Constructor for FormWeb.


FormWeb FormWeb = new FormWeb(new FileInputStream("PdfFormWeb.pdf"));

Parameters:

ParameterTypeDescription
srcStreamjava.io.InputStreamsource stream.

FormWeb(InputStream inputStream, HttpServletResponse response)

public FormWeb(InputStream inputStream, HttpServletResponse response)

Creates FormWeb which will save result into HttpResponse object.

Parameters:

ParameterTypeDescription
inputStreamjava.io.InputStreamStream containing source document.
responsejavax.servlet.http.HttpServletResponseHttpResponse object where result will be saved.

FormWeb(InputStream srcStream, OutputStream destStream)

public FormWeb(InputStream srcStream, OutputStream destStream)

Constructor of FormWeb with two stream parameters. Specify same source and destination stream for incremental update.


FormWeb FormWeb = new FormWeb(new FileInputStream("InFile.pdf"), new FileOutputStream("OutFile.pdf"));

Parameters:

ParameterTypeDescription
srcStreamjava.io.InputStreamSource stream.
destStreamjava.io.OutputStreamDestination stream.

FormWeb(InputStream srcStream, String destFileName)

public FormWeb(InputStream srcStream, String destFileName)

Constructor of FormWeb


FormWeb FormWeb = new FormWeb(new FileInputStream("PdfFormWeb.pdf"), "PdfFormWeb_Updated.pdf");

Parameters:

ParameterTypeDescription
srcStreamjava.io.InputStreamSource stream.
destFileNamejava.lang.StringDestination file path.

FormWeb(String srcFileName)

public FormWeb(String srcFileName)

Constructor of FormWeb.


FormWeb FormWeb = new FormWeb("PdfFormWeb.pdf");

Parameters:

ParameterTypeDescription
srcFileNamejava.lang.StringSource file path.

FormWeb(String inputFile, HttpServletResponse response)

public FormWeb(String inputFile, HttpServletResponse response)

Creates FormWeb which will save result into HttpResponse object.

Parameters:

ParameterTypeDescription
inputFilejava.lang.StringName of input file.
responsejavax.servlet.http.HttpServletResponseHttpResponse object where result will be stored.

FormWeb(String srcFileName, OutputStream destStream)

public FormWeb(String srcFileName, OutputStream destStream)

Constructor of FormWeb.


FormWeb FormWeb = new FormWeb("PdfFormWeb.pdf", "PdfFormWeb_Updated.pdf");

Parameters:

ParameterTypeDescription
srcFileNamejava.lang.StringSource file path.
destStreamjava.io.OutputStreamDestination file path.

FormWeb(String srcFileName, String destFileName)

public FormWeb(String srcFileName, String destFileName)

Constructor of FormWeb class. Specify same source file name and destination file name to perFormWeb incremental update.


FormWeb FormWeb = new FormWeb("PdfFormWeb.pdf", "PdfFormWeb_Updated.pdf");

Parameters:

ParameterTypeDescription
srcFileNamejava.lang.StringPath of the source file.
destFileNamejava.lang.StringPath of the destination file.

getResponse()

public HttpServletResponse getResponse()

Gets or sets Response object where result of operation will be stored.

Returns: javax.servlet.http.HttpServletResponse - HttpServletResponse object

setResponse(HttpServletResponse value)

public void setResponse(HttpServletResponse value)

Gets or sets Response object where result of operation will be stored.

Parameters:

ParameterTypeDescription
valuejavax.servlet.http.HttpServletResponseHttpServletResponse object

save()

public void save()

Saves the value of the filled fields and close the opened Pdf document.


Form form = new Form("PdfForm.pdf", "PdfForm_Changed.pdf");
 form.fillField("textField", "new value");
 form.save();