Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C03A910A49 for ; Tue, 19 Nov 2013 13:04:24 +0000 (UTC) Received: (qmail 43306 invoked by uid 500); 19 Nov 2013 13:04:24 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 43136 invoked by uid 500); 19 Nov 2013 13:04:23 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 43125 invoked by uid 99); 19 Nov 2013 13:04:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 13:04:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.192.176] (HELO mail-pd0-f176.google.com) (209.85.192.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 13:04:16 +0000 Received: by mail-pd0-f176.google.com with SMTP id w10so5905689pde.21 for ; Tue, 19 Nov 2013 05:03:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type; bh=mrUoBQw9RxT6FDuAErqNSQDuALUKigLXv5b6evJvb0M=; b=aNADosk9JT/52Dq7PhSFhBOjZih5eDPkbD3mPaeG/wLaFx+O5TqOzsKhHhRJJ7CUJX Vd7wIhY13NMeLm/ITHy1TCe2tcyEx5WRjUuIilbDuRoIemnemZm4OwgQwPEcBicWcUkD 2aKTkbjdWjavvgT2P1y9vEh2V5ETACpYTZUisNYhsN1t5Z2b4aCUXi/cKYADqiinNyFY F4NhboTcJgH/Vn/D7O/M0HlXsE4dsJaoQsJwywjNgGI+5O5KPNDitUUqreHS+igHeff0 EbAECekEi3FKjlEB/rxlDnrqJ0OGIjVhtlPsWuQAO95AL1nuHbrkWYYy6DE4waU6EMkX hBIQ== X-Gm-Message-State: ALoCoQkZAo0Ab2nwuDtYXCJU0L7Tbglmkg8UvtxKJfjb+3jY5Mzjwgxb+jhf/Zod0G9hWQSAkxqP X-Received: by 10.66.141.144 with SMTP id ro16mr1027665pab.173.1384866205274; Tue, 19 Nov 2013 05:03:25 -0800 (PST) Received: from valhalla.local ([122.179.53.235]) by mx.google.com with ESMTPSA id xs1sm34503875pac.7.2013.11.19.05.03.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 05:03:24 -0800 (PST) Date: Tue, 19 Nov 2013 18:33:18 +0530 From: Akshay Rawat To: Gilad Denneboom , users@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: Re: PDFBox: How to detect the max length of a PDTextBox X-Mailer: Airmail (211) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="528b6196_19495cff_130" X-Virus-Checked: Checked by ClamAV on apache.org --528b6196_19495cff_130 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you. Now I know how this works. Akshay Rawat =C2=A0=7C =C2=A0Mobile/Whatsapp: +91 9538780000 =C2=A0=7C =C2= =A0Skype: akshayrawat On 19 November 2013 at 4:39:53 PM, Gilad Denneboom (gilad.denneboom=40gma= il.com) wrote: When a property is not directly accessible through the object's getters, = it =20 can usually still be found by going to the =22guts=22 of the object and =20 checking the COS Dictionary associated with it. A quick research revealed= =20 that this property is found by accessing the =22MaxLen=22 property (which= maybe =20 should be added as one of the constants of the COSName object). =20 So you can use it like so (field1 is a PDTextbox object): =20 field1.getDictionary().getInt(=22MaxLen=22); =20 This will return -1 if the Maximum Length property is not set. =20 On Tue, Nov 19, 2013 at 9:56 AM, Akshay Rawat wrot= e: =20 > I'm working with an Acro=46orm which has a text field (PDTextBox) with = a max =20 > length. How do I use PD=46Box to detect the max length of this field. =20 > =20 > Thanks for any help. =20 --528b6196_19495cff_130--