That's a bug. MaxLen should only be applied to the information that goes into the /V key and not to the appearance. Next week I'll have a new release with this fix and others.
Best Regards, Paulo Soares ----- Original Message ----- From: "Haroon Rafique" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 19:10 Subject: [iText-questions] AcroField with formatting and MaxLen > Hi, > > First time poster here. I have read the archives and have been looking at > the example source code on itext.sf.net as well, but haven't found > anything similar to what I am experiencing. Please be gentle, in case I > missed something obvious. > > I have a PDF with form fields that came from a third party. The security > options for the PDF disallows "Authoring Comments and Form Fields". I have > Adobe Acrobat 5.0.5. In any case, in one of the fields you are supposed to > fill in some dollar amounts. The maximum characters that you can type in > it is 6. I confirmed that MaxLen was 6 when I ran ListFields (program > found in examples at itexts.sf.net) on the pdf file. Using Adobe Reader > 6.0 (works the same with 5.x), I can enter 123456 in the field. When I hit > tab, the field automatically changes to $123,456.00. I'm presuming that > this happens because the field is of Number Format with Currency symbol > and Decimal places set to 2. > > Here's my iText related question. I use PdfReader to read the file and > PdfStamper to fill the fields with values. In order to be consistent with > the Adobe Acrobat Reader behavior I was trying to fill in the values > preformatted e.g, as $987,654.00. Unfortunately, (presumably since MaxLen > is set to 6), using setField(), only the first 6 characters show up. > That is, $987,6 which is a problem. > > So, my choices are to not format and display without dollar symbols and > commas > OR > anyone else have any ideas? Could the MaxLen be modified programmatically > and then filled in? > > Should I ask the 3rd party to fix the PDF? Be aware, however, that the 3rd > party is of the government variety. > > Thanks in advance, > -- > Haroon Rafique > <[EMAIL PROTECTED]> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
