pdfformwidget-ag凯发旗舰厅



com.spire.pdf.widget
class pdfformwidget

java.lang.object
  extended by com.spire.pdf.fields.pdfform
      extended by com.spire.pdf.widget.pdfformwidget
all implemented interfaces:
ipdfwrapper

public class pdfformwidget
extends pdfform

represents loaded form.


constructor summary
pdfformwidget( crosstable)
           
pdfformwidget( formdictionary,  crosstable)
           
 
method summary
 void exportdata(java.io.inputstream stream, dataformat dataformat, java.lang.string formname)
          export the form data to a file.
 void exportdata(java.lang.string filename, dataformat dataformat, java.lang.string formname)
          export the form data to a file.
 com.spire.ms.system.drawing.image[] extractinnersignatureasimages()
          extract images from signature
 java.awt.image[] extractsignatureasimages()
          extract images from signature
 pdfformfieldwidgetcollection getfieldswidget()
          gets the field collection.
 boolean getneedappearances()
          gets a value indicating whether need appearances.
 boolean getreadonly()
          gets a value indicating whether the form is read only.
 xfaform getxfaform()
          gets xfa data of the form.
 void highlightfields(boolean highlight)
          sets/resets the form field highlight option.
 void importdata(java.lang.string filename, dataformat dataformat)
          imports the data.
 [] importdata(java.lang.string filename, dataformat dataformat, boolean errorflag)
          imports the data.
 [] importdatafdf(java.io.inputstream stream, boolean continueimportonerror)
          import form data from fdf file.
 void importdataxfdf(java.lang.string filename)
          imports xfdf data
 boolean onlyhexinstring(java.lang.string test)
          called when [hex in string].
 boolean setfieldvalueforxfaform(pdffield field, java.lang.string value)
           
 void setneedappearances(boolean value)
          sets a value indicating whether need appearances.
 void setreadonly(boolean value)
          sets a value indicating whether the form is read only.
 
methods inherited from class com.spire.pdf.fields.pdfform
getfields, isflatten, isflatten
 
constructor detail

pdfformwidget

public pdfformwidget( formdictionary,
                      crosstable)

pdfformwidget

public pdfformwidget( crosstable)
method detail

extractsignatureasimages

public java.awt.image[] extractsignatureasimages()
extract images from signature
returns:
extract images from signature

getfieldswidget

public pdfformfieldwidgetcollection getfieldswidget()
gets the field collection.

getreadonly

public boolean getreadonly()
gets a value indicating whether the form is read only.
overrides:
getreadonly in class pdfform

setreadonly

public void setreadonly(boolean value)
sets a value indicating whether the form is read only.
overrides:
setreadonly in class pdfform

getxfaform

public xfaform getxfaform()
gets xfa data of the form.

getneedappearances

public boolean getneedappearances()
gets a value indicating whether need appearances.
overrides:
getneedappearances in class pdfform

setneedappearances

public void setneedappearances(boolean value)
sets a value indicating whether need appearances.
overrides:
setneedappearances in class pdfform

setfieldvalueforxfaform

public boolean setfieldvalueforxfaform(pdffield field,
                                       java.lang.string value)

exportdata

public void exportdata(java.lang.string filename,
                       dataformat dataformat,
                       java.lang.string formname)
export the form data to a file.
parameters:
filename - name of the document which is need to export.
dataformat - the format of exported data.
formname - the name of the pdf file the data is exported from.

exportdata

public void exportdata(java.io.inputstream stream,
                       dataformat dataformat,
                       java.lang.string formname)
export the form data to a file.
parameters:
stream - the stream where form data will be exported.
dataformat - the format of exported data
formname - the name of the pdf file the data is exported from

importdata

public void importdata(java.lang.string filename,
                       dataformat dataformat)
imports the data.
parameters:
filename - name of the file.
dataformat - the data format.

importdata

public [] importdata(java.lang.string filename,
                                              dataformat dataformat,
                                              boolean errorflag)
imports the data.
parameters:
filename - name of the file.
dataformat - the data format.
errorflag - if it is error flag, set to true.
returns:

importdatafdf

public [] importdatafdf(java.io.inputstream stream,
                                                 boolean continueimportonerror)
import form data from fdf file.
parameters:
stream - the fdf file stream
continueimportonerror - false if the import should stop on the first field that generates an error, or true if the import should ignore the error and continue with the next field.
returns:
document form fields filled with data which are imported from fdf.

highlightfields

public void highlightfields(boolean highlight)
sets/resets the form field highlight option.

onlyhexinstring

public boolean onlyhexinstring(java.lang.string test)
called when [hex in string].
parameters:
test - the test.
returns:
is match hex string

importdataxfdf

public void importdataxfdf(java.lang.string filename)
imports xfdf data
parameters:
filename -

extractinnersignatureasimages

public com.spire.ms.system.drawing.image[] extractinnersignatureasimages()
extract images from signature
returns:


网站地图