It can be done. Get the fields with AcroFields.getFields(). Set Item.widgets with the key PdfName.FF and value PdfNumber(PdfFormField.FF_READ_ONLY).
Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] > [SMTP:[EMAIL PROTECTED] > Sent: Thursday, October 16, 2003 2:29 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Form field readonly > > Hi, > > I'm working on an application where existing Pdf form fields will be > pre-populated, using iText. > The original Pdf file has been created with Adobe Acrobat. > I used a PdfStamper to achieve. > Finally I wanted to add a few control in my Pdf document and make that all > pre-populated fields (and only those) are ReadOnly. > Of course, I could give this property initially with Acrobat but the same > document is also used in antother context, and can unfortunately not be > changed. > > Help would be appreciated, > Regards > > -------------------------------------------------------------------- > mail2web - Check your email from the web at > http://mail2web.com/ . > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions