public class PdfFormField extends PdfAnnotation
PdfAnnotation.PdfImportedLink
Modifier and Type | Field and Description |
---|---|
static int |
FF_COMB |
static int |
FF_COMBO |
static int |
FF_DONOTSCROLL |
static int |
FF_DONOTSPELLCHECK |
static int |
FF_EDIT |
static int |
FF_FILESELECT |
static int |
FF_MULTILINE |
static int |
FF_MULTISELECT |
static int |
FF_NO_EXPORT |
static int |
FF_NO_TOGGLE_TO_OFF |
static int |
FF_PASSWORD |
static int |
FF_PUSHBUTTON |
static int |
FF_RADIO |
static int |
FF_RADIOSINUNISON |
static int |
FF_READ_ONLY |
static int |
FF_REQUIRED |
static int |
FF_RICHTEXT
Allows text fields to support rich text.
|
static PdfName |
IF_SCALE_ALWAYS |
static PdfName |
IF_SCALE_ANAMORPHIC |
static PdfName |
IF_SCALE_BIGGER |
static PdfName |
IF_SCALE_NEVER |
static PdfName |
IF_SCALE_PROPORTIONAL |
static PdfName |
IF_SCALE_SMALLER |
protected ArrayList<PdfFormField> |
kids |
static int |
MK_CAPTION_ABOVE |
static int |
MK_CAPTION_BELOW |
static int |
MK_CAPTION_LEFT |
static int |
MK_CAPTION_OVERLAID |
static int |
MK_CAPTION_RIGHT |
static int |
MK_NO_CAPTION |
static int |
MK_NO_ICON |
static boolean |
MULTILINE |
protected PdfFormField |
parent
Holds value of property parent.
|
static boolean |
PASSWORD |
static boolean |
PLAINTEXT |
static int |
Q_CENTER |
static int |
Q_LEFT |
static int |
Q_RIGHT |
static boolean |
SINGLELINE |
AA_BLUR, AA_DOWN, AA_ENTER, AA_EXIT, AA_FOCUS, AA_JS_CHANGE, AA_JS_FORMAT, AA_JS_KEY, AA_JS_OTHER_CHANGE, AA_UP, accessibleAttributes, annotation, APPEARANCE_DOWN, APPEARANCE_NORMAL, APPEARANCE_ROLLOVER, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_LOCKEDCONTENTS, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINT, FLAGS_READONLY, FLAGS_TOGGLENOVIEW, form, HIGHLIGHT_INVERT, HIGHLIGHT_NONE, HIGHLIGHT_OUTLINE, HIGHLIGHT_PUSH, HIGHLIGHT_TOGGLE, MARKUP_HIGHLIGHT, MARKUP_SQUIGGLY, MARKUP_STRIKEOUT, MARKUP_UNDERLINE, reference, role, templates, used, writer
Modifier | Constructor and Description |
---|---|
protected |
PdfFormField(PdfWriter writer)
Creates new PdfFormField
|
|
PdfFormField(PdfWriter writer, float llx, float lly, float urx, float ury, PdfAction action)
Constructs a new PdfAnnotation of subtype link (Action).
|
Modifier and Type | Method and Description |
---|---|
void |
addKid(PdfFormField field) |
protected static PdfFormField |
createButton(PdfWriter writer, int flags) |
static PdfFormField |
createCheckBox(PdfWriter writer) |
protected static PdfFormField |
createChoice(PdfWriter writer, int flags, PdfArray options, int topIndex) |
static PdfFormField |
createCombo(PdfWriter writer, boolean edit, String[][] options, int topIndex) |
static PdfFormField |
createCombo(PdfWriter writer, boolean edit, String[] options, int topIndex) |
static PdfFormField |
createEmpty(PdfWriter writer) |
static PdfFormField |
createList(PdfWriter writer, String[][] options, int topIndex) |
static PdfFormField |
createList(PdfWriter writer, String[] options, int topIndex) |
static PdfFormField |
createPushButton(PdfWriter writer) |
static PdfFormField |
createRadioButton(PdfWriter writer, boolean noToggleToOff) |
static PdfFormField |
createSignature(PdfWriter writer) |
static PdfFormField |
createTextField(PdfWriter writer, boolean multiline, boolean password, int maxLen) |
ArrayList<PdfFormField> |
getKids() |
PdfFormField |
getParent()
Getter for property parent.
|
protected static PdfArray |
processOptions(String[] options) |
protected static PdfArray |
processOptions(String[][] options) |
void |
setButton(int flags) |
void |
setDefaultValueAsName(String s) |
void |
setDefaultValueAsString(String s) |
int |
setFieldFlags(int flags)
ORs together the given flags with the current /Ff value.
|
void |
setFieldName(String s) |
void |
setMappingName(String s)
The mapping name is the name this field uses when submitting form data.
|
void |
setQuadding(int v)
Sets text alginment for this field
|
void |
setRichValue(String rv)
Sets the rich value for this field.
|
void |
setUsed()
Setter for property used.
|
void |
setUserName(String s)
The "user name" is the text shown as a tool.
|
void |
setValue(PdfSignature sig) |
void |
setValueAsName(String s) |
void |
setValueAsString(String s) |
void |
setWidget(Rectangle rect, PdfName highlight) |
static PdfAnnotation |
shallowDuplicate(PdfAnnotation annot) |
applyCTM, createFileAttachment, createFileAttachment, createFreeText, createInk, createLine, createLink, createLink, createLink, createLink, createMarkup, createPolygonPolyline, createPopup, createScreen, createSquareCircle, createStamp, createText, getAccessibleAttribute, getAccessibleAttributes, getId, getIndirectReference, getMKColor, getPlaceInPage, getRole, getTemplates, isAnnotation, isForm, isInline, isUsed, setAccessibleAttribute, setAction, setAdditionalActions, setAppearance, setAppearance, setAppearanceState, setBorder, setBorderStyle, setColor, setDefaultAppearanceString, setFlags, setHighlighting, setId, setLayer, setMKAlternateCaption, setMKAlternateIcon, setMKBackgroundColor, setMKBorderColor, setMKIconFit, setMKNormalCaption, setMKNormalIcon, setMKRolloverCaption, setMKRolloverIcon, setMKRotation, setMKTextPosition, setName, setPage, setPage, setPlaceInPage, setPopup, setRole, setRotate, setTitle, toPdf
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toString
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
public static final int FF_READ_ONLY
public static final int FF_REQUIRED
public static final int FF_NO_EXPORT
public static final int FF_NO_TOGGLE_TO_OFF
public static final int FF_RADIO
public static final int FF_PUSHBUTTON
public static final int FF_MULTILINE
public static final int FF_PASSWORD
public static final int FF_COMBO
public static final int FF_EDIT
public static final int FF_FILESELECT
public static final int FF_MULTISELECT
public static final int FF_DONOTSPELLCHECK
public static final int FF_DONOTSCROLL
public static final int FF_COMB
public static final int FF_RADIOSINUNISON
public static final int FF_RICHTEXT
public static final int Q_LEFT
public static final int Q_CENTER
public static final int Q_RIGHT
public static final int MK_NO_ICON
public static final int MK_NO_CAPTION
public static final int MK_CAPTION_BELOW
public static final int MK_CAPTION_ABOVE
public static final int MK_CAPTION_RIGHT
public static final int MK_CAPTION_LEFT
public static final int MK_CAPTION_OVERLAID
public static final PdfName IF_SCALE_ALWAYS
public static final PdfName IF_SCALE_BIGGER
public static final PdfName IF_SCALE_SMALLER
public static final PdfName IF_SCALE_NEVER
public static final PdfName IF_SCALE_ANAMORPHIC
public static final PdfName IF_SCALE_PROPORTIONAL
public static final boolean MULTILINE
public static final boolean SINGLELINE
public static final boolean PLAINTEXT
public static final boolean PASSWORD
protected PdfFormField parent
protected ArrayList<PdfFormField> kids
public PdfFormField(PdfWriter writer, float llx, float lly, float urx, float ury, PdfAction action)
PdfAnnotation
of subtype link (Action).
protected PdfFormField(PdfWriter writer)
public static PdfFormField createEmpty(PdfWriter writer)
public void setButton(int flags)
protected static PdfFormField createButton(PdfWriter writer, int flags)
public static PdfFormField createPushButton(PdfWriter writer)
public static PdfFormField createCheckBox(PdfWriter writer)
public static PdfFormField createRadioButton(PdfWriter writer, boolean noToggleToOff)
public static PdfFormField createTextField(PdfWriter writer, boolean multiline, boolean password, int maxLen)
protected static PdfFormField createChoice(PdfWriter writer, int flags, PdfArray options, int topIndex)
public static PdfFormField createList(PdfWriter writer, String[] options, int topIndex)
public static PdfFormField createList(PdfWriter writer, String[][] options, int topIndex)
public static PdfFormField createCombo(PdfWriter writer, boolean edit, String[] options, int topIndex)
public static PdfFormField createCombo(PdfWriter writer, boolean edit, String[][] options, int topIndex)
public static PdfFormField createSignature(PdfWriter writer)
public PdfFormField getParent()
public void addKid(PdfFormField field)
public ArrayList<PdfFormField> getKids()
public int setFieldFlags(int flags)
flags
- flags to be added.
public void setValueAsString(String s)
public void setValueAsName(String s)
public void setValue(PdfSignature sig)
public void setRichValue(String rv)
rv
- HTML markup for the rich value of this field
public void setDefaultValueAsString(String s)
public void setDefaultValueAsName(String s)
public void setFieldName(String s)
public void setUserName(String s)
s
- user name.
public void setMappingName(String s)
s
-
public void setQuadding(int v)
v
- one of the Q_* contstants
public void setUsed()
PdfAnnotation
setUsed
in class PdfAnnotation
public static PdfAnnotation shallowDuplicate(PdfAnnotation annot)
Copyright © 1998–2019. All rights reserved.