Hi,
I have just started using iText and if I missed an obvious place to find the
answer to this question, please point me in a direction.
I am searching for a method of clearing the FF_READ_ONLY flag from a form
field. I have searched a bit and tried the following but always get the
following exception:
Exception in thread "main" java.lang.RuntimeException: This AcroFields instance
is read-only.
The error first occurred when I tried to fill in the form with the following:
form.setField("Field_1", "TestText");
I then placed tried the following and received the same exception on the
setFieldProperty line:
form.setFieldProperty("Field_1", "clrfflags", PdfFormField.FF_READ_ONLY, null);
form.setField("Field_1", "TestText");
Thanks in advance for any help,
Sterling
“E-mail correspondence to and from this address may be subject to the North
Carolina Public Records Law and may be disclosed to third parties by an
authorized City or Law Enforcement official.”
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/