I am using iText to analyse a pdf form and allow a user to change fieldnames and else of existing fields. I am able to display the possible values for a checkbox by calling getAppearanceStates(fieldname) on AcroFields. But I can't find a way to change the appearance state.
Has anyone ever done this or knows how to do it ?
For Example: I have a checkbox Field with name "checkbox"and the appearance states are "yes". I want it to be "on".
acroFields.setField("checkbox", "on", "on")
has no influence and setting the property doesn't seem to be correct either.
setField()or am I misinterpreting the question? - Bruno Lowagie