Roopa Bethi wrote:
> Hi
> I have some text fields ,select boxes radio buttons etc in my form.
> i am able to fill these with setfield method.
> 
> I also need to fill some information which is  read only . it should be
> displayed as static text not like text field read only and it needs to be
> filled  dynamically.

OK, I see from your next question that you've found a way to flatten the 
form partially. Another way would be to set the flags of the field to 
read only. This is done like this:
form.setFieldProperty(field, "setfflags", PdfFormField.FF_READ_ONLY, null);
Note that the latter solution can always be undone (using iText, using 
Acrobat,...), but end users only using Acrobat Reader probably won't 
know how to do this.
As for your question about the iText version where the flattening 
functionality was introduced, that's documented here:
http://www.1t3xt.com/about/history.php
But if you have to upgrade, you should always upgrade to the latest version.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to