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

ConstructorDescription
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

MethodDescription
addFieldAdd field of specified type to the form.
addFieldAdd field of specified type to the form.
addFieldScriptAdd JavaScript for a PushButton field.
addListItemAdds new item to the list box.
addListItemAdd a new item with Export value to the existing list box field, only for AcroForm combo box field.
addSubmitBtnAdd submit button on the form.
closeCloses all resources used by this document.
copyInnerFieldCopies an existing field to the same position in specified page number.
copyInnerFieldCopies an existing field to a new position specified by both page number and ordinates.
copyOuterFieldCopies an existing field from one PDF document to another document with original page number and ordinates.
copyOuterFieldCopies an existing field from one PDF document to another document with specified page number and original ordinates.
copyOuterFieldCopies an existing field from one PDF document to another document with specified page number and ordinates.
decorateFieldChanges visual attributes of all fields in the PDF document.
decorateFieldChanges visual attributes of all fields with the specified field type.
decorateFieldChanges visual attributes of the specified field.
delListItemDelete item from the list field.
disposeDeprecated.
getAttachmentNameGets name of attachment when result of operation is stored into HttpResponse objects as attachment.
getContentDispositionGets how content will be stored when result of operation is stored into HttpResponse object.
getDestFileNameDeprecated.
getDestStreamGets destination stream.
getExportItemsGets options for combo box with export values.
getFacadeGets visual attributes of the field.
getFieldAppearanceGet field flags.
getItemsReturns item array
getRadioButtonItemSizeGets or sets size of radio button item size (when new radio button field is added).
getRadioGapGet the member to record the gap between two neighboring radio buttons in pixels,default is 50.
getRadioHorizGet the flag to indicate whether the radios are arranged horizontally or vertically, default value is true.
getResponseGets Response object where result of operation will be stored.
getSaveOptionsGets save options when result is stored as HttpResponse.
getSrcFileNameDeprecated.
getSrcStreamGets source stream.
getSubmitFlagGet the submit button’s submission flags
moveFieldSet new position of field.
removeFieldRemove field from the form.
removeFieldActionRemove submit action of the field.
renameFieldChange name of the field.
resetFacadeReset all visual attributes to empty value.
resetInnerFacadeReset all visual attributes of inner facade to empty value.
saveSaves changes into destination file.
setAttachmentNameSets name of attachment when result of operation is stored into HttpResponse objects as attachment.
setContentDispositionSets how content will be stored when result of operation is stored into HttpResponse object.
setConvertToSets PdfFormat PDF file format.
setDestFileNameDeprecated.
setDestStreamSets destination stream.
setExportItemsSets options for combo box with export values.
setFacadeSets visual attributes of the field.
setFieldAlignmentSet the alignment style of a text field.
setFieldAlignmentVSet the vertical alignment style of a text field.
setFieldAppearanceSet field flags
setFieldAttributeSet attributes of field.
setFieldCombNumberSets 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).
setFieldLimitSets maximum character count of the text field.
setFieldScriptSet JavaScript for a PushButton field.
setItemsSets items which will be added to newly created list box or combo box.
setRadioButtonItemSizeGets or sets size of radio button item size (when new radio button field is added).
setRadioGapSet the member to record the gap between two neighboring radio buttons in pixels,default is 50.
setRadioHorizSet the flag to indicate whether the radios are arranged horizontally or vertically, default value is true.
setResponseSets Response object where result of operation will be stored.
setSaveOptionsSets save options when result is stored as HttpResponse.
setSrcFileNameDeprecated.
setSrcStreamSets source stream.
setSubmitFlagSet submit flag of submit button.
setSubmitFlagSet the submit button’s submission flags
setSubmitUrlSets URL of the button.
single2MultipleChange 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:

ParameterTypeDescription
valuedouble 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:

ParameterTypeDescription
valuefloat 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:

ParameterTypeDescription
valueboolean 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.