New for iText Core 7.1.11 is a change to how form fields are handled, specifically when /TI value is present, and when using SetValue for a choice form field.
- Prior to 7.1.11, calling a setValue method on the choice field set the value incorrectly. It does not modify the I dictionary of the field.
- For the choice field, the I dictionary exists but is not filled in resulting in incorrect setting.
- After the fix, you will notice that the values are properly set for the choice field.
Below is some sample code to test the issue with iText 7.1.11 and previous versions: