org.apache.pdfbox.pdmodel.interactive.form
Class PDTextbox
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.form.PDField
org.apache.pdfbox.pdmodel.interactive.form.PDVariableText
org.apache.pdfbox.pdmodel.interactive.form.PDTextbox
- All Implemented Interfaces:
- COSObjectable
public class PDTextbox
- extends PDVariableText
A class for handling the PDF field as a textbox.
- Author:
- sug
|
Method Summary |
int |
getMaxLen()
Returns the maximum number of characters of the text field. |
void |
setMaxLen(int maxLen)
Sets the maximum number of characters of the text field. |
| Methods inherited from class org.apache.pdfbox.pdmodel.interactive.form.PDVariableText |
doNotScroll, doNotSpellCheck, getDefaultAppearance, getQ, getValue, isFileSelect, isMultiline, isPassword, isRichText, setComb, setDoNotScroll, setDoNotSpellCheck, setFileSelect, setMultiline, setPassword, setQ, setRichText, setValue, shouldComb |
| Methods inherited from class org.apache.pdfbox.pdmodel.interactive.form.PDField |
findFieldType, findKid, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getKids, getParent, getPartialName, getWidget, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, setFieldFlags, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired, toString |
PDTextbox
public PDTextbox(PDAcroForm theAcroForm)
- Parameters:
theAcroForm - The acroform.- See Also:
PDField.PDField(PDAcroForm,COSDictionary)
PDTextbox
public PDTextbox(PDAcroForm theAcroForm,
COSDictionary field)
- Parameters:
theAcroForm - The acroForm for this field.field - The field's dictionary.- See Also:
PDField.PDField(PDAcroForm,COSDictionary)
getMaxLen
public int getMaxLen()
- Returns the maximum number of characters of the text field.
- Returns:
- the maximum number of characters, returns -1 if the value isn't present
setMaxLen
public void setMaxLen(int maxLen)
- Sets the maximum number of characters of the text field.
- Parameters:
maxLen - the maximum number of characters
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.