Hello,
I have a windows application that fills the fields
in a pdf form. I am trying to reinact some of the
features using field_merge.java. I could write values
to the fields in a Pdf using field_merge.
This is the code I am using for that
reader = new PdfReader(inPdf);
stamp = new PdfStamper(reader, new
FileOutputStream("fileName"));
stamp.setFormFlattening(false);
AcroFields form = stamp.getAcroFields();
Iterator mapIt = map.keySet().iterator();
while (mapIt.hasNext()) {
String key = (String)mapIt.next();
String value = (String)map.get(key);
form.setField(key,value);
}
stamp.close();
How can I make the fields which has vlaues as read
only? I have tried READ_ONLY attribute in BaseField.
It did not work. May be beacuse of wrong usage.
Thanks
Krishna
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions