tags:

views:

136

answers:

1

Is there any way we can specify the max number of chars a TextField can take in the PDF form created using iText?

+1  A: 

According to the docs, the createTextField method takes a maximum length.

http://api.itextpdf.com/com/itextpdf/text/pdf/PdfFormField.html#createTextField%28com.itextpdf.text.pdf.PdfWriter,%20boolean,%20boolean,%20int)

Jonathan Feinberg
Sadly, the SO URL parser is broken. I cannot seem to link directly to the method in question, but it's there.
Jonathan Feinberg
Thanks, got it!
srini.venigalla