FormWeb
Inheritance: java.lang.Object, com.aspose.pdf.facades.Facade com.aspose.pdf.facades.SaveableFacade com.aspose.pdf.facades.FormWeb, com.aspose.pdf.facades.Facade, com.aspose.pdf.facades.SaveableFacade com.aspose.pdf.facades.FormWeb, com.aspose.pdf.facades.SaveableFacade, com.aspose.pdf.facades.FormWeb
All Implemented Interfaces: com.aspose.ms.System.IDisposable, IFacade, IForm, ISaveableFacade, Closeable, AutoCloseable
public final class FormWeb extends SaveableFacade implements IForm
Representing Acro form Interface.
Constructors
| Constructor | Description |
|---|---|
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
| FormWeb | Construtcor of FormWeb without parameters. FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName(“file.pdf”); |
Methods
| Method | Description |
|---|---|
| bindPdf | Initializes the facade. |
| bindPdf | Initializes the facade. |
| close | Closes all opened resources used by this document. |
| dispose | Deprecated. |
| exportFdf | Exports the content of the fields of the pdf into the fdf stream. |
| exportXfdf | Exports the content of the fields of the pdf into the xml stream. |
| exportXml | Exports the content of the fields of the pdf into the xml stream. |
| extractXfaData | Extracts XFA data packet |
| fillBarcodeField | Fill a barcode field according to its fully qualified field name. |
| fillField | Fills the check box field with a boolean value. |
| fillField | Fills the radio box field with a valid index value according to a fully qualified field name. |
| fillField | Fills the field with a valid value according to a fully qualified field name. |
| fillField | Fill a field with multiple selections.Note: only for AcroForm List Box Field. |
| fillField | Fills field with specified value. |
| fillFields | Fills the text box fields with a text values and save the document. |
| fillImageField | Overloads function of FillImageField. |
| fillImageField | Pastes an image onto the existing button field as its appearance according to its fully qualified field name. |
| flattenAllFields | Flattens all the fields. |
| flattenField | Flattens a specified field with the fully qualified field name. |
| getAttachmentName | Gets name of attachment when result of operation is stored into HttpResponse objects as attachment. |
| getButtonOptionCurrentValue | Returns the current value for radio button option fields. |
| getButtonOptionValues | Gets the radio button option fields and related values based on the field name. |
| getButtonOptionValuesInternal | Gets the radio button option fields and related values based on the field name. |
| getContentDisposition | Getshow content will be stored when result of operation is stored into HttpResponse object. |
| getDestFileName | Deprecated. |
| getDestStream | Deprecated. |
| getField | Gets the field’s value according to its field name. |
| getFieldFacade | Returns FrofmFieldFacade object containing all appearance attributes. |
| getFieldFlag | Returns flags of the field. |
| getFieldLimit | Get the limitation of text field. |
| getFieldNames | Gets list of field names on the form. |
| getFieldType | Returns type of field. |
| getFormSubmitButtonNames | Gets all form submit button names. |
| getFullFieldName | Gets the full field name according to its short field name. |
| getImportResult | Result of last import operation. |
| getResponse | Gets or sets Response object where result of operation will be stored. |
| getRichText | Get a Rich Text field’s value, including the formattinf information of every character. |
| getSaveOptions | Gets or sets save options when result is stored as HttpResponse. |
| getSrcFileName | Deprecated. |
| getSrcStream | Gets source stream. |
| getSubmitFlags | Returns the submit button’s submission flags |
| importFdf | Imports the content of the fields from the fdf file and put them into the new pdf. |
| importXfdf | Imports the content of the fields from the xfdf(xml) file and put them into the new pdf. |
| importXml | Imports the content of the fields from the xml file and put them into the new pdf. |
| importXml | Imports the content of the fields from the xml file and put them into the new pdf. |
| importXml | Imports the content of the fields from the xml file and put them into the new pdf. |
| isRequiredField | Determines whether field is required or not. |
| renameField | Renames a field. |
| 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(); |
| 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(); |
| 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(); |
| setAttachmentName | Sets name of attachment when result of operation is stored into HttpResponse objects as attachment. |
| setContentDisposition | Sets how content will be stored when result of operation is stored into HttpResponse object. |
| setConvertTo | Sets PDF file format. |
| setDestFileName | Deprecated. |
| setDestStream | Deprecated. |
| setResponse | Gets or sets Response object where result of operation will be stored. |
| setSaveOptions | Gets or sets save options when result is stored as HttpResponse. |
| setSrcFileName | Deprecated. |
| setSrcStream | Gets source stream. |
| setXfaData | Replaces XFA data with specified data packet. |
FormWeb
public FormWeb()
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); FormWeb
Construtcor of FormWeb without parameters.
FormWeb FormWeb = new com.aspose.pdf.facades.FormWeb(); FormWeb.setSrcFileName("file.pdf"); bindPdf
Initializes the facade.
bindPdf
Initializes the facade.
close
public void close()
Closes all opened resources used by this document.
dispose
@Deprecated public void dispose()
Deprecated.
exportFdf
Exports the content of the fields of the pdf into the fdf stream.
exportXfdf
Exports the content of the fields of the pdf into the xml stream.
exportXml
Exports the content of the fields of the pdf into the xml stream.
extractXfaData
Extracts XFA data packet
fillBarcodeField
Fill a barcode field according to its fully qualified field name.
fillField
Fills the check box field with a boolean value.
fillField
Fills the radio box field with a valid index value according to a fully qualified field name.
fillField
Fills the field with a valid value according to a fully qualified field name.
fillField
Fill a field with multiple selections.Note: only for AcroForm List Box Field.
fillField
Fills field with specified value.
fillFields
Fills the text box fields with a text values and save the document.
fillImageField
Overloads function of FillImageField.
fillImageField
Pastes an image onto the existing button field as its appearance according to its fully qualified field name.
flattenAllFields
public void flattenAllFields()
Flattens all the fields.
flattenField
Flattens a specified field with the fully qualified field name.
getAttachmentName
public String getAttachmentName()
Gets name of attachment when result of operation is stored into HttpResponse objects as attachment.
Returns: string object
getButtonOptionCurrentValue
Returns the current value for radio button option fields.
getButtonOptionValues
Gets the radio button option fields and related values based on the field name.
getButtonOptionValuesInternal
Gets the radio button option fields and related values based on the field name.
getContentDisposition
public ContentDisposition getContentDisposition()
Getshow content will be stored when result of operation is stored into HttpResponse object.
Returns: ContentDisposition element
getDestFileName
@Deprecated public String getDestFileName()
Deprecated.
Returns: String object
getDestStream
@Deprecated public OutputStream getDestStream()
Deprecated.
Returns: OutputStream object
getField
Gets the field’s value according to its field name.
getFieldFacade
Returns FrofmFieldFacade object containing all appearance attributes.
getFieldFlag
Returns flags of the field.
getFieldLimit
Get the limitation of text field.
getFieldNames
public String [] getFieldNames()
Gets list of field names on the form.
Returns: String[] object
getFieldType
Returns type of field.
getFormSubmitButtonNames
public String [] getFormSubmitButtonNames()
Gets all form submit button names.
Returns: String[] object
getFullFieldName
Gets the full field name according to its short field name.
getImportResult
public com.aspose.pdf.facades.AForm.FormImportResult[] getImportResult()
Result of last import operation.
Returns: FormImportResult[] array
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
Gets or sets Response object where result of operation will be stored.
Returns: HttpServletResponse object
getRichText
Get a Rich Text field’s value, including the formattinf information of every character.
getSaveOptions
public SaveOptions getSaveOptions()
Gets or sets save options when result is stored as HttpResponse.
Returns: SaveOptions object
getSrcFileName
@Deprecated public String getSrcFileName()
Deprecated.
Returns: String object
getSrcStream
public InputStream getSrcStream()
Gets source stream.
Returns: InputStream object
getSubmitFlags
Returns the submit button’s submission flags
importFdf
Imports the content of the fields from the fdf file and put them into the new pdf.
importXfdf
Imports the content of the fields from the xfdf(xml) file and put them into the new pdf.
importXml
Imports the content of the fields from the xml file and put them into the new pdf.
importXml
Imports the content of the fields from the xml file and put them into the new pdf.
importXml
Imports the content of the fields from the xml file and put them into the new pdf.
isRequiredField
Determines whether field is required or not.
renameField
Renames a field.
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(); 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(); 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(); setAttachmentName
Sets name of attachment when result of operation is stored into HttpResponse objects as attachment.
setContentDisposition
Sets how content will be stored when result of operation is stored into HttpResponse object.
setConvertTo
Sets PDF file format.
setDestFileName
Deprecated.
setDestStream
Deprecated.
setResponse
Gets or sets Response object where result of operation will be stored.
setSaveOptions
Gets or sets save options when result is stored as HttpResponse.
setSrcFileName
Deprecated.
setSrcStream
Gets source stream.
setXfaData
Replaces XFA data with specified data packet.