FormEditorWeb
Inheritance: java.lang.Object, com.aspose.pdf.facades.Facade com.aspose.pdf.facades.SaveableFacade com.aspose.pdf.facades.FormEditorWeb, com.aspose.pdf.facades.Facade, com.aspose.pdf.facades.SaveableFacade com.aspose.pdf.facades.FormEditorWeb, com.aspose.pdf.facades.SaveableFacade, com.aspose.pdf.facades.FormEditorWeb
All Implemented Interfaces: com.aspose.ms.System.IDisposable, IFacade, IFormEditor, ISaveableFacade, Closeable, AutoCloseable
public final class FormEditorWeb extends SaveableFacade implements IFormEditor
Class for editing forms (ading/deleting field etc)
Constructors
| Constructor | Description |
|---|---|
| FormEditorWeb | Constructor for FormEditorWeb. FormEditorWeb FormEditorWeb = new FormEditorWeb(); |
| FormEditorWeb | Constructor for FormEditorWeb. FormEditorWeb FormEditorWeb = new FormEditorWeb(); |
| FormEditorWeb | Constructor for FormEditorWeb. FormEditorWeb FormEditorWeb = new FormEditorWeb(); |
| FormEditorWeb | Constructor for FormEditorWeb. FormEditorWeb FormEditorWeb = new FormEditorWeb(); |
| FormEditorWeb | Constructor for FormEditorWeb. FormEditorWeb FormEditorWeb = new FormEditorWeb(); |
| FormEditorWeb | Constructor for FormEditorWeb. FormEditorWeb FormEditorWeb = new FormEditorWeb(); |
| FormEditorWeb | Constructor for FormEditorWeb. FormEditorWeb FormEditorWeb = new FormEditorWeb(); |
| FormEditorWeb | Constructor for FormEditorWeb. FormEditorWeb FormEditorWeb = new FormEditorWeb(); |
Methods
| Method | Description |
|---|---|
| addField | Add field of specified type to the form. |
| addField | Add field of specified type to the form. |
| addFieldScript | Add JavaScript for a PushButton field. |
| addListItem | Adds new item to the list box. |
| addListItem | Add a new item with Export value to the existing list box field, only for AcroForm combo box field. |
| addSubmitBtn | Add submit button on the form. |
| close | Closes all resources used by this document. |
| copyInnerField | Copies an existing field to the same position in specified page number. |
| copyInnerField | Copies an existing field to a new position specified by both page number and ordinates. |
| copyOuterField | Copies an existing field from one PDF document to another document with original page number and ordinates. |
| copyOuterField | Copies an existing field from one PDF document to another document with specified page number and original ordinates. |
| copyOuterField | Copies an existing field from one PDF document to another document with specified page number and ordinates. |
| decorateField | Changes visual attributes of all fields in the PDF document. |
| decorateField | Changes visual attributes of all fields with the specified field type. |
| decorateField | Changes visual attributes of the specified field. |
| delListItem | Delete item from the list field. |
| dispose | Deprecated. |
| getAttachmentName | Gets name of attachment when result of operation is stored into HttpResponse objects as attachment. |
| getContentDisposition | Gets how content will be stored when result of operation is stored into HttpResponse object. |
| getDestFileName | Deprecated. |
| getDestStream | Gets destination stream. |
| getExportItems | Gets options for combo box with export values. |
| getFacade | Gets visual attributes of the field. |
| getFieldAppearance | Get field flags. |
| getItems | Returns item array |
| getRadioButtonItemSize | Gets or sets size of radio button item size (when new radio button field is added). |
| getRadioGap | Get the member to record the gap between two neighboring radio buttons in pixels,default is 50. |
| getRadioHoriz | Get the flag to indicate whether the radios are arranged horizontally or vertically, default value is true. |
| getResponse | Gets Response object where result of operation will be stored. |
| getSaveOptions | Gets save options when result is stored as HttpResponse. |
| getSrcFileName | Deprecated. |
| getSrcStream | Gets source stream. |
| getSubmitFlag | Get the submit button’s submission flags |
| moveField | Set new position of field. |
| removeField | Remove field from the form. |
| removeFieldAction | Remove submit action of the field. |
| renameField | Change name of the field. |
| resetFacade | Reset all visual attributes to empty value. |
| resetInnerFacade | Reset all visual attributes of inner facade to empty value. |
| save | Saves changes into destination file. |
| 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 PdfFormat PDF file format. |
| setDestFileName | Deprecated. |
| setDestStream | Sets destination stream. |
| setExportItems | Sets options for combo box with export values. |
| setFacade | Sets visual attributes of the field. |
| setFieldAlignment | Set the alignment style of a text field. |
| setFieldAlignmentV | Set the vertical alignment style of a text field. |
| setFieldAppearance | Set field flags |
| setFieldAttribute | Set attributes of field. |
| setFieldCombNumber | Sets number of combs for a regular single-line text field (the field is automatically divided into as many equally spaced positions, or combs, as the value of combNumber parameter). |
| setFieldLimit | Sets maximum character count of the text field. |
| setFieldScript | Set JavaScript for a PushButton field. |
| setItems | Sets items which will be added to newly created list box or combo box. |
| setRadioButtonItemSize | Gets or sets size of radio button item size (when new radio button field is added). |
| setRadioGap | Set the member to record the gap between two neighboring radio buttons in pixels,default is 50. |
| setRadioHoriz | Set the flag to indicate whether the radios are arranged horizontally or vertically, default value is true. |
| setResponse | Sets Response object where result of operation will be stored. |
| setSaveOptions | Sets save options when result is stored as HttpResponse. |
| setSrcFileName | Deprecated. |
| setSrcStream | Sets source stream. |
| setSubmitFlag | Set submit flag of submit button. |
| setSubmitFlag | Set the submit button’s submission flags |
| setSubmitUrl | Sets URL of the button. |
| single2Multiple | Change a single-lined text field to a multiple-lined one. |
FormEditorWeb
public FormEditorWeb()
Constructor for FormEditorWeb.
FormEditorWeb FormEditorWeb = new FormEditorWeb();
FormEditorWeb
Constructor for FormEditorWeb.
FormEditorWeb FormEditorWeb = new FormEditorWeb();
FormEditorWeb
Constructor for FormEditorWeb.
FormEditorWeb FormEditorWeb = new FormEditorWeb();
FormEditorWeb
Constructor for FormEditorWeb.
FormEditorWeb FormEditorWeb = new FormEditorWeb();
FormEditorWeb
Constructor for FormEditorWeb.
FormEditorWeb FormEditorWeb = new FormEditorWeb();
FormEditorWeb
Constructor for FormEditorWeb.
FormEditorWeb FormEditorWeb = new FormEditorWeb();
FormEditorWeb
Constructor for FormEditorWeb.
FormEditorWeb FormEditorWeb = new FormEditorWeb();
FormEditorWeb
Constructor for FormEditorWeb.
FormEditorWeb FormEditorWeb = new FormEditorWeb();
addField
Add field of specified type to the form.
addField
Add field of specified type to the form.
addFieldScript
Add JavaScript for a PushButton field.
addListItem
Adds new item to the list box.
addListItem
Add a new item with Export value to the existing list box field, only for AcroForm combo box field.
addSubmitBtn
Add submit button on the form.
close
public void close()
Closes all resources used by this document.
copyInnerField
Copies an existing field to the same position in specified page number.
copyInnerField
Copies an existing field to a new position specified by both page number and ordinates.
copyOuterField
Copies an existing field from one PDF document to another document with original page number and ordinates.
copyOuterField
Copies an existing field from one PDF document to another document with specified page number and original ordinates.
copyOuterField
Copies an existing field from one PDF document to another document with specified page number and ordinates.
decorateField
public void decorateField()
Changes visual attributes of all fields in the PDF document.
decorateField
Changes visual attributes of all fields with the specified field type.
decorateField
Changes visual attributes of the specified field.
delListItem
Delete item from the list field.
dispose
@Deprecated public void dispose()
Deprecated.
getAttachmentName
public String getAttachmentName()
Gets name of attachment when result of operation is stored into HttpResponse objects as attachment.
Returns: String object
getContentDisposition
public ContentDisposition getContentDisposition()
Gets how content will be stored when result of operation is stored into HttpResponse object.
Returns: ContentDisposition element
getDestFileName
@Deprecated public String getDestFileName()
Deprecated.
Returns: string value
getDestStream
public OutputStream getDestStream()
Gets destination stream.
Returns: OutputStream object
getExportItems
public String [][] getExportItems()
Gets options for combo box with export values.
Returns: String[][] array
getFacade
public FormFieldFacade getFacade()
Gets visual attributes of the field.
Returns: FormFieldFacade object
getFieldAppearance
Get field flags.
getItems
public String [] getItems()
Returns item array
Returns: String[] object
getRadioButtonItemSize
public double getRadioButtonItemSize()
Gets or sets size of radio button item size (when new radio button field is added).
Returns: double value
getRadioGap
public float getRadioGap()
Get the member to record the gap between two neighboring radio buttons in pixels,default is 50.
Returns: float value
getRadioHoriz
public boolean getRadioHoriz()
Get the flag to indicate whether the radios are arranged horizontally or vertically, default value is true.
Returns: boolean value
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
Gets Response object where result of operation will be stored.
Returns: HttpServletResponse object
getSaveOptions
public SaveOptions getSaveOptions()
Gets save options when result is stored as HttpResponse.
Returns: SaveOptions object
getSrcFileName
@Deprecated public String getSrcFileName()
Deprecated.
Returns: string value
getSrcStream
public InputStream getSrcStream()
Gets source stream.
Returns: InputStream object
getSubmitFlag
public SubmitFormFlag getSubmitFlag()
Get the submit button’s submission flags
Returns: SubmitFormFlag element
moveField
Set new position of field.
removeField
Remove field from the form.
removeFieldAction
Remove submit action of the field.
renameField
Change name of the field.
resetFacade
public void resetFacade()
Reset all visual attributes to empty value.
resetInnerFacade
public void resetInnerFacade()
Reset all visual attributes of inner facade to empty value.
save
public void save()
Saves changes into destination file.
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 PdfFormat PDF file format.
setDestFileName
Deprecated.
setDestStream
Sets destination stream.
setExportItems
Sets options for combo box with export values.
setFacade
Sets visual attributes of the field.
setFieldAlignment
Set the alignment style of a text field.
setFieldAlignmentV
Set the vertical alignment style of a text field.
setFieldAppearance
Set field flags
setFieldAttribute
Set attributes of field.
setFieldCombNumber
Sets number of combs for a regular single-line text field (the field is automatically divided into as many equally spaced positions, or combs, as the value of combNumber parameter).
setFieldLimit
Sets maximum character count of the text field.
setFieldScript
Set JavaScript for a PushButton field.
setItems
Sets items which will be added to newly created list box or combo box.
setRadioButtonItemSize
public void setRadioButtonItemSize(double value)
Gets or sets size of radio button item size (when new radio button field is added).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setRadioGap
public void setRadioGap(float value)
Set the member to record the gap between two neighboring radio buttons in pixels,default is 50.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float value |
setRadioHoriz
public void setRadioHoriz(boolean value)
Set the flag to indicate whether the radios are arranged horizontally or vertically, default value is true.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setResponse
Sets Response object where result of operation will be stored.
setSaveOptions
Sets save options when result is stored as HttpResponse.
setSrcFileName
Deprecated.
setSrcStream
Sets source stream.
setSubmitFlag
Set submit flag of submit button.
setSubmitFlag
Set the submit button’s submission flags
setSubmitUrl
Sets URL of the button.
single2Multiple
Change a single-lined text field to a multiple-lined one.