| Modifier and Type | Field and Description |
|---|---|
protected PdfObject |
A |
protected PdfObject |
AA |
protected PdfObject |
AP |
protected String |
AS |
protected Rectangle |
BBox |
protected PdfObject |
Bl |
protected PdfObject |
BS |
protected int[] |
ByteRange |
protected float[] |
C |
protected PdfObject |
Cdict |
protected String |
Cert |
protected Object[] |
CO |
static int |
COMB_ID
25 form flag indexes for the field flags
|
static int |
COMBO_ID
18 form flag indexes for the field flags
|
static int |
COMMITONSELCHANGE_ID
27 form flag indexes for the field flags
|
protected String |
ContactInfo |
protected String |
Contents |
protected PdfObject |
D |
protected String |
DA |
static int |
DONOTSCROLL_ID
24 form flag indexes for the field flags
|
static int |
DONOTSPELLCHECK_ID
23 form flag indexes for the field flags
|
protected String |
DSString |
protected String |
Dstring |
protected String |
DV |
static int |
EDIT_ID
19 form flag indexes for the field flags
|
protected int |
F |
protected int |
Ff |
static int |
FILESELECT_ID
21 form flag indexes for the field flags
|
protected boolean[] |
flags |
protected int |
Flags |
protected String |
Fstring |
protected int |
FT |
protected String |
H |
protected float[] |
IC |
protected PdfObject |
IF |
protected Object[] |
InkList |
protected PdfObject |
IRT |
protected boolean |
isXFAObject |
protected String |
IT |
protected String |
JSString |
protected byte[][] |
Kids |
protected float[] |
L |
protected int |
MaxLen |
static int |
MULTILINE_ID
13 form flag indexes for the field flags
|
static int |
MULTISELECT_ID
22 form flag indexes for the field flags
|
protected String |
N |
protected String |
NM |
static int |
NOEXPORT_ID
3 form flag indexes for the field flags
|
static int |
NOTOGGLETOOFF_ID
15 form flag indexes for the field flags
|
protected PdfObject |
OC |
protected PdfObject |
Off |
protected PdfObject |
On |
protected Object[] |
Opt |
protected String[] |
OptString |
protected PdfObject |
P |
static int |
PASSWORD_ID
14 form flag indexes for the field flags
|
static int |
POPUP |
protected String |
Pstring |
static int |
PUSHBUTTON_ID
17 form flag indexes for the field flags
|
protected int |
Q |
protected float[] |
QuadPoints |
static int |
RADIO_ID
16 form flag indexes for the field flags
|
static int |
RADIOINUNISON_ID
26 form flag indexes for the field flags
|
protected byte[] |
rawAS |
protected byte[] |
rawCert |
protected byte[] |
rawContactInfo |
protected byte[] |
rawContents |
protected byte[] |
rawDA |
protected byte[] |
rawDS |
protected byte[] |
rawDstring |
protected byte[] |
rawDV |
protected byte[] |
rawFstring |
protected byte[] |
rawH |
protected byte[] |
rawIT |
protected byte[] |
rawJS |
protected byte[][] |
rawKids |
protected byte[] |
rawN |
protected byte[] |
rawNM |
protected byte[] |
rawPstring |
protected byte[] |
rawRC |
protected byte[] |
rawRT |
protected byte[] |
rawS |
protected byte[] |
rawSubj |
protected byte[] |
rawT |
protected byte[] |
rawTM |
protected byte[] |
rawTU |
protected byte[] |
rawURI |
protected byte[] |
rawV |
protected byte[] |
rawX |
protected String |
RC |
protected float[] |
RD |
static int |
READONLY_ID
1 form flag indexes for the field flags
|
protected float[] |
Rect |
protected Object[] |
Reference |
static int |
REQUIRED_ID
2 form flag indexes for the field flags
|
protected PdfObject |
RichMediaContent |
static int |
RICHTEXT_ID
26 form flag indexes for the field flags
|
protected String |
S |
protected int[] |
selectionIndices |
static int |
SORT_ID
20 form flag indexes for the field flags
|
protected String |
Subj |
protected String |
T |
protected int |
TI |
protected String |
TM |
protected String |
TU |
protected String |
URI |
protected float[] |
Vertices |
protected String |
Vstring |
protected int |
W |
Collection, colorspace, ColorSpace, DECODED, DecodeParms, Encoding, Function, generalType, hasStream, includeParent, isDataExternal, isFullyResolved, isSymbol, isZapfDingbats, maybeIndirect, pageNumber, Params, parentType, ref, Resources, Shading, SMask, stream, subtype, type, UNDECODED_DIRECT, UNDECODED_REF| Constructor and Description |
|---|
FormObject() |
FormObject(int type) |
FormObject(int ref,
int gen) |
FormObject(String ref) |
FormObject(String ref,
boolean flag) |
FormObject(String ref,
int parentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
buttonGetCaption()
oldJS
JS returns the normal caption associated to this button
|
String |
buttonGetCaption(int nFace)
oldJS
returns the caption associated with this button,
|
void |
buttonSetCaption(String cCaption)
oldJS
sets this buttons normal caption to cCaption
|
void |
buttonSetCaption(String cCaption,
int nFace)
oldJS
sets this buttons caption to cCaption, it sets the caption defined by nFace.
|
protected void |
commandFf(int flagValue)
read and setup the form flags for the Ff entry
field is the data to be used to setup the Ff flags
|
void |
copyInheritedValuesFromParent(FormObject parentObj)
overwrites all the values on this form with any values from the parent
|
boolean |
decompressStreamWhenRead() |
PdfObject |
duplicate() |
static Color |
generateColor(float[] toks)
takes a value, and turns it into the color it represents
e.g.
|
int |
getActionFlag()
get status found during decode
|
int |
getAlignment()
returns the alignment (Q)
|
BufferedImage |
getAPImage(int type,
int key)
Get AP image
Type should be PdfDictionary.On or PdfDictionary.Off
key should be PdfDictionary.N, PdfDictionary.D, PdfDictionary.R
|
boolean |
getBoolean(int id) |
Rectangle2D |
getBounding2DRectangleForTabbing()
This method should be called only in tabbing functionality
|
Rectangle |
getBoundingRectangle()
return the bounding rectangle for this object
|
boolean[] |
getCharacteristics() |
float |
getCurrentScaling() |
PdfObject |
getDictionary(int id) |
BufferedImage |
getDownOffImage() |
BufferedImage |
getDownOnImage() |
int |
getElemRotationDegree()
returns the complete form rotation degree with reserve
value
|
boolean[] |
getFieldFlags()
returns the flags array (Ff in PDF) (indexs are the number listed)
* all
1=readonly - if set there is no interaction 2=required - if set the field must have a value when submit-form-action occures 3=noexport - if set the field must not be exported by a submit-form-action Choice fields 18=combo - set its a combobox, else a list box 19=edit - defines a comboBox to be editable 20=sort - defines list to be sorted alphabetically 22=multiselect - if set more than one items can be selected, else only one 23=donotspellcheck - (only used on editable combobox) don't spell check 27=commitOnselchange - if set commit the action when selection changed, else commit when user exits field text fields 13=multiline - uses multipul lines else uses a single line 14=password - a password is intended 21=fileselect -text in field represents a file pathname to be submitted 23=donotspellcheck - don't spell check 24=donotscroll - once the field is full don't enter anymore text. |
Object |
getfillColor()
oldJS
returns the background color for the annotation objects
|
float[] |
getFloatArray(int id) |
String |
getFontName() |
float |
getFontSize()
Method to get the font size to be used in the form component
This is currently only implemented for text pop-up forms
|
int |
getFormType()
look at FormFactory.LIST etc for full list of types
|
Object |
getFormValue() |
Object |
getGUIComponent() |
String |
getHTMLElementId() |
int |
getInt(int id) |
int[] |
getIntArray(int id) |
String[] |
getItemsList() |
byte[][] |
getKeyArray(int id) |
String |
getLastValidValue()
used by JS to reset
|
String |
getLayerName() |
int[] |
getMatteBorderDetails()
Method returns matte border details of
Form (not all surrounding element)
|
PdfArrayIterator |
getMixedArray(int id) |
String |
getName(int id) |
int |
getNameAsConstant(int id) |
BufferedImage |
getNormalOffImage() |
BufferedImage |
getNormalOnImage() |
String |
getNormalOnState() |
Object[] |
getObjectArray(int id) |
static BufferedImage |
getOpaqueImage()
returns an Opaque BufferedImage for use when appearance Streams are null
|
PdfObject |
getParentPdfObj() |
String |
getParentRef()
gets the parent for this field
|
byte[][] |
getRawKids() |
BufferedImage |
getRolloverOffImage() |
BufferedImage |
getRolloverOnImage() |
int |
getRotationOriginX() |
int |
getRotationOriginY() |
int |
getSelectedIndex() |
String |
getSelectedItem() |
int[] |
getSelectionIndices() |
Color |
getTextColor() |
Font |
getTextFont() |
int |
getTextPosition() |
int |
getTextSize() |
String |
getTextStreamValue(int id) |
byte[] |
getTextStreamValueAsByte(int id) |
String |
getTextString() |
String |
getValue()
oldJS
returns the current value for this field,
if text field the text string,
if choice field the selected item
if button field the normal caption
|
Map<String,String> |
getValuesMap(boolean keyFirst) |
boolean |
hasDownImage()
returns true if has one or more down images set
|
boolean |
hasDownOff()
returns true if has down off image
|
boolean |
hasInvertDownIcon() |
boolean |
hasNoDownIcon() |
boolean |
hasNormalOff()
returns true if has normal of image
|
boolean |
hasOffsetDownIcon() |
boolean |
hasRolloverOff()
returns true if has rollover off image
|
boolean |
isAppearanceUsed() |
boolean |
isReadOnly() |
boolean |
isSelected() |
boolean |
isXFAObject()
returns true if this formObject represents an XFAObject
|
void |
overwriteWith(FormObject form)
copy all values from form to this FormObject
WARNING overrites current data, so shoudl be called before the rest of the form is setup.
|
void |
setActionFlag(int popup)
used internally to set status while parsing - should not be called
|
void |
setAppreancesUsed(boolean used) |
void |
setBackgroundColor(String nextField)
sets the background color for this form
|
void |
setBoolean(int id,
boolean value) |
void |
setBorderColor(String nextField)
sets the border color
|
void |
setBorderWidth(int width)
oldJs
added for backward compatibility or old adobe files.
|
void |
setCharactersitics(int pos,
boolean value) |
void |
setCurrentScaling(float scale)
Set the scaling for the formObject
this is only used for the locations of forms that can move
such as Text Popups
|
void |
setDictionary(int id,
PdfObject value) |
void |
setElemRotationDegree(int elemRotationDegree) |
void |
setFieldFlags(int pos,
boolean value) |
void |
setFieldName(String field)
sets the field name for this field (used by XFA)
|
void |
setfillColor(float[] newColor)
oldJS
sets our background color to the color specified
|
void |
setfillColor(Object newColor)
oldJS
sets the fillcolor, or background color using the string defined from javascript rhino parser
|
void |
setFlag(int pos,
boolean flag)
sets the flag pos to value of flag
|
void |
setFloatArray(int id,
float[] value) |
void |
setFontName(String font)
set the text font for this form
|
void |
setFormType(int widgetType) |
void |
setGUIComponent(Object guiComp,
int guiType) |
void |
setHTMLElementId(String htmlElementId) |
void |
setIntArray(int id,
int[] value) |
void |
setIntNumber(int id,
int value) |
protected void |
setInvertForDownIcon()
sets whether to invert the normal icon for the down icon
|
void |
setKeyArray(int id,
byte[][] value) |
void |
setLastValidValue(String value)
used by JS to reset
|
void |
setLineWidth(int lineWidth)
oldJs
defines the thickness of the border when stroking.
|
void |
setMatteBorderDetails(int[] matteDetails)
set matte border details
if it is specified in pdf or xfa
|
void |
setMixedArray(int id,
byte[][] value) |
void |
setName(int id,
byte[] value) |
protected void |
setNoDownIcon()
sets whether a down icon should be used
|
void |
setNormalCaption(String caption)
sets the normal caption for this form
|
void |
setNormalOnState(String state)
set the state which is defined as the On state for this form
usually different for each child so that the selected child can be found by the state |
void |
setObjectArray(int id,
Object[] objectValues) |
protected void |
setOffsetDownApp()
sets whether there should be a down looking icon
|
void |
setPageRotation(int rotation) |
void |
setParent(String parent)
sets the parent for this field
|
void |
setParent(String parent,
FormObject parentObj,
boolean copyValuesFromParent)
sets the parent string for this field and stores the parent PDFObject passed
in to be accessed locally and from getParent()
BEWARE :- this method will copy all relevent values from the parent is copyValuesFromParent is true
|
void |
setParentPdfObj(PdfObject parent) |
void |
setRawKids(byte[][] kidsInParent) |
void |
setRotationOriginX(int rotationOriginX) |
void |
setRotationOriginY(int rotationOriginY)
set the complete form rotation degree with reserve
value
|
void |
setSelected(boolean setSelected) |
void |
setSelectedIndex(int index)
update value if ComboBox
|
void |
setSelectedItem(String value)
update value if ComboBox
|
void |
setSelection(Object[] selectedValues,
String curValue,
int[] indices,
int index)
sets the selected item
only applicable to the choices fields
|
void |
setTextColor(float[] color)
sets the text color for this form
|
void |
setTextFont(Font font)
set the text font for this form
|
void |
setTextSize(int size)
sets the text size for this form
|
void |
setTextStreamValue(int id,
byte[] value) |
void |
setTextStreamValue(int id,
String value) |
void |
setTextValue(String text)
sets the text value
|
void |
setType(int type,
boolean isXFA)
sets the type this form specifies
|
void |
setUserSetOffset(Point offset)
Allows the user to set an offset for form components
This is mainly used for movable form components such as text popups
|
void |
setValue(String inVal)
oldJS
sets the value of this field dependent on which type of field it is
|
void |
setVisible(boolean isVisible) |
void |
updateValue(Object value,
boolean isSelected,
boolean sync)
allow us to update value (and sync to GUI version if exists
|
deepCopy, deepCopy, deepCopy, deepCopy, deepCopy, getBooleanArray, getByteArray, getCachedStreamFile, getCacheName, getClip, getConvertedData, getDecodedStream, getDoubleArray, getFloatNumber, getGeneralStringValue, getGeneralType, getID, getId, getKeyPairsIterator, getObjectRefAsString, getObjectRefGeneration, getObjectRefID, getObjectType, getPageNumber, getParameterConstant, getParentID, getPDFkeyInt, getRawName, getRawObjectType, getStatus, getStringArray, getStringKey, getStringValue, getStringValueAsByte, getUnresolvedData, hasStream, ignoreRecursion, ignoreRecursion, ignoreStream, ignoreStream, isCached, isCompressedStream, isDataExternal, isDataExternal, isFullyResolved, isInCompressedStream, maybeIndirect, maybeIndirect, moveCacheValues, setBooleanArray, setCache, setClip, setCompressedStream, setConstant, setConstant, setConvertedData, setDecodedStream, setDictionaryPairs, setDoubleArray, setFloatNumber, setFullyResolved, setGeneralStringValue, setID, setInCompressedStream, setInternalReference, setPageNumber, setRef, setRef, setStatus, setStream, setStreamMayBeCorrupt, setStringArray, setStringKey, setUnresolvedData, streamMayBeCorrupt, toStringpublic static final int READONLY_ID
public static final int REQUIRED_ID
public static final int NOEXPORT_ID
public static final int MULTILINE_ID
public static final int PASSWORD_ID
public static final int NOTOGGLETOOFF_ID
public static final int RADIO_ID
public static final int PUSHBUTTON_ID
public static final int COMBO_ID
public static final int EDIT_ID
public static final int SORT_ID
public static final int FILESELECT_ID
public static final int MULTISELECT_ID
public static final int DONOTSPELLCHECK_ID
public static final int DONOTSCROLL_ID
public static final int COMB_ID
public static final int RICHTEXT_ID
public static final int RADIOINUNISON_ID
public static final int COMMITONSELCHANGE_ID
protected String[] OptString
protected boolean isXFAObject
public static final int POPUP
protected Rectangle BBox
protected float[] C
protected float[] IC
protected float[] QuadPoints
protected float[] RD
protected float[] Rect
protected float[] L
protected float[] Vertices
protected boolean[] flags
protected int F
protected int Ff
protected int MaxLen
protected int W
protected int Q
protected int TI
protected PdfObject A
protected PdfObject AA
protected PdfObject AP
protected PdfObject Cdict
protected PdfObject BS
protected PdfObject D
protected PdfObject IF
protected PdfObject IRT
protected PdfObject RichMediaContent
protected int Flags
protected int[] ByteRange
protected int[] selectionIndices
protected byte[] rawAS
protected byte[] rawCert
protected byte[] rawContactInfo
protected byte[] rawContents
protected byte[] rawDstring
protected byte[] rawDA
protected byte[] rawDS
protected byte[] rawDV
protected byte[] rawFstring
protected byte[] rawJS
protected byte[] rawH
protected byte[] rawIT
protected byte[] rawN
protected byte[] rawNM
protected byte[] rawPstring
protected byte[] rawRC
protected byte[] rawRT
protected byte[] rawS
protected byte[] rawSubj
protected byte[] rawT
protected byte[] rawTM
protected byte[] rawTU
protected byte[] rawURI
protected byte[] rawV
protected byte[] rawX
protected int FT
protected String AS
protected String Cert
protected String ContactInfo
protected String Contents
protected String Dstring
protected String DA
protected String DSString
protected String DV
protected String Fstring
protected String JSString
protected String H
protected String IT
protected String N
protected String NM
protected String Pstring
protected String RC
protected String S
protected String Subj
protected String T
protected String TM
protected String TU
protected String URI
protected String Vstring
protected PdfObject Bl
protected PdfObject OC
protected PdfObject Off
protected PdfObject On
protected PdfObject P
protected Object[] CO
protected Object[] InkList
protected Object[] Opt
protected Object[] Reference
protected byte[][] Kids
protected byte[][] rawKids
public FormObject(String ref)
public FormObject(String ref, boolean flag)
public FormObject(int ref,
int gen)
public FormObject(int type)
public FormObject()
public FormObject(String ref, int parentType)
public void setHTMLElementId(String htmlElementId)
public String getHTMLElementId()
public boolean getBoolean(int id)
getBoolean in class PdfObjectpublic void setBoolean(int id,
boolean value)
setBoolean in class PdfObjectpublic void setActionFlag(int popup)
popup - public int getActionFlag()
public PdfObject getDictionary(int id)
getDictionary in class PdfObjectpublic void setIntNumber(int id,
int value)
setIntNumber in class PdfObjectpublic void setDictionary(int id,
PdfObject value)
setDictionary in class PdfObjectpublic int getNameAsConstant(int id)
getNameAsConstant in class PdfObjectpublic PdfArrayIterator getMixedArray(int id)
getMixedArray in class PdfObjectpublic byte[] getTextStreamValueAsByte(int id)
getTextStreamValueAsByte in class PdfObjectpublic int[] getIntArray(int id)
getIntArray in class PdfObjectpublic void setIntArray(int id,
int[] value)
setIntArray in class PdfObjectpublic void setMixedArray(int id,
byte[][] value)
setMixedArray in class PdfObjectpublic float[] getFloatArray(int id)
getFloatArray in class PdfObjectpublic void setFloatArray(int id,
float[] value)
setFloatArray in class PdfObjectpublic void setObjectArray(int id,
Object[] objectValues)
setObjectArray in class PdfObjectpublic Object[] getObjectArray(int id)
getObjectArray in class PdfObjectpublic void setTextStreamValue(int id,
byte[] value)
setTextStreamValue in class PdfObjectpublic void setTextStreamValue(int id,
String value)
setTextStreamValue in class PdfObjectpublic String getTextStreamValue(int id)
getTextStreamValue in class PdfObjectpublic byte[][] getKeyArray(int id)
getKeyArray in class PdfObjectpublic void setKeyArray(int id,
byte[][] value)
setKeyArray in class PdfObjectpublic boolean decompressStreamWhenRead()
decompressStreamWhenRead in class PdfObjectprotected void commandFf(int flagValue)
public static Color generateColor(float[] toks)
public boolean isXFAObject()
public void copyInheritedValuesFromParent(FormObject parentObj)
public int getAlignment()
public void setTextColor(float[] color)
public void setFontName(String font)
public void setTextFont(Font font)
public void setTextSize(int size)
public void setTextValue(String text)
public void setSelection(Object[] selectedValues, String curValue, int[] indices, int index)
public void setFieldName(String field)
public void setParent(String parent)
public void setParent(String parent, FormObject parentObj, boolean copyValuesFromParent)
public PdfObject getParentPdfObj()
public void setParentPdfObj(PdfObject parent)
public String getParentRef()
public Rectangle2D getBounding2DRectangleForTabbing()
public Rectangle getBoundingRectangle()
public void setType(int type,
boolean isXFA)
public void setFlag(int pos,
boolean flag)
public boolean[] getFieldFlags()
public void setFieldFlags(int pos,
boolean value)
public void setNormalOnState(String state)
public boolean isAppearanceUsed()
public void setAppreancesUsed(boolean used)
public void setBorderColor(String nextField)
public void setBackgroundColor(String nextField)
public void setNormalCaption(String caption)
protected void setOffsetDownApp()
protected void setNoDownIcon()
protected void setInvertForDownIcon()
public boolean hasNormalOff()
public boolean hasRolloverOff()
public boolean hasDownOff()
public boolean hasDownImage()
public void overwriteWith(FormObject form)
public boolean[] getCharacteristics()
public void setCharactersitics(int pos,
boolean value)
public int getTextSize()
public Map<String,String> getValuesMap(boolean keyFirst)
public String[] getItemsList()
public String getSelectedItem()
public int[] getSelectionIndices()
public String getTextString()
public int getTextPosition()
positioning of text relative to icon - (integer) 0=caption only 1=icon only 2=caption below icon 3=caption above icon 4=caption on right of icon 5=caption on left of icon 6=caption overlaid ontop of icon
public String getNormalOnState()
public BufferedImage getNormalOffImage()
public BufferedImage getNormalOnImage()
public BufferedImage getAPImage(int type, int key)
public boolean hasNoDownIcon()
public boolean hasOffsetDownIcon()
public boolean hasInvertDownIcon()
public BufferedImage getDownOffImage()
public BufferedImage getDownOnImage()
public BufferedImage getRolloverOffImage()
public BufferedImage getRolloverOnImage()
public Font getTextFont()
public String getFontName()
public Color getTextColor()
public String getLayerName()
public String getValue()
public void setValue(String inVal)
public void setLineWidth(int lineWidth)
public void setBorderWidth(int width)
public void setUserSetOffset(Point offset)
offset - : The offset from the components location from the pdfpublic void setCurrentScaling(float scale)
scale - : Current scaling to be usedpublic float getCurrentScaling()
public String buttonGetCaption()
public String buttonGetCaption(int nFace)
nFace - -
0 normal caption (default)
1 down caption
2 rollover captionpublic void buttonSetCaption(String cCaption)
public void buttonSetCaption(String cCaption, int nFace)
nFace - -
0 (default) normal caption
1 down caption
2 rollover captionpublic Object getfillColor()
public void setfillColor(float[] newColor)
public void setfillColor(Object newColor)
public void setFormType(int widgetType)
public int getFormType()
public static BufferedImage getOpaqueImage()
public void setGUIComponent(Object guiComp, int guiType)
public Object getGUIComponent()
public boolean isReadOnly()
public void updateValue(Object value, boolean isSelected, boolean sync)
public boolean isSelected()
public void setSelected(boolean setSelected)
public int getSelectedIndex()
public void setSelectedIndex(int index)
index - public void setSelectedItem(String value)
value - public float getFontSize()
public Object getFormValue()
public String getLastValidValue()
public void setLastValidValue(String value)
public void setPageRotation(int rotation)
public void setVisible(boolean isVisible)
public int getRotationOriginX()
public void setRotationOriginX(int rotationOriginX)
rotationOriginX - the rotationOriginX to setpublic int getRotationOriginY()
public void setRotationOriginY(int rotationOriginY)
rotationOriginY - the rotationOriginY to setpublic int getElemRotationDegree()
public void setElemRotationDegree(int elemRotationDegree)
elemRotationDegree - the elemRotationDegree to setpublic void setMatteBorderDetails(int[] matteDetails)
matteDetails - public int[] getMatteBorderDetails()
public void setRawKids(byte[][] kidsInParent)
public byte[][] getRawKids()
Copyright © 2017. All rights reserved.