When a property is not directly accessible through the object's getters, it
can usually still be found by going to the "guts" of the object and
checking the COS Dictionary associated with it. A quick research revealed
that this property is found by accessing the "MaxLen" property (which maybe
should be added as one of the constants of the COSName object).
So you can use it like so (field1 is a PDTextbox object):
field1.getDictionary().getInt("MaxLen");
This will return -1 if the Maximum Length property is not set.
On Tue, Nov 19, 2013 at 9:56 AM, Akshay Rawat <[email protected]> wrote:
> I'm working with an AcroForm which has a text field (PDTextBox) with a max
> length. How do I use PDFBox to detect the max length of this field.
>
> Thanks for any help.