v0.9.5.1
Fixed an issue with incorrect or blank checkbox appearances.
In a previous commit, iText's generateAppearance
field was set to true for all fields except checkboxes in order to enable custom checkboxes to show correctly. However, this had unintended consequences for some developers where checkboxes with the default appearance were completely blank.
In order to work correctly with both custom checkboxes (such as square, circle, diamond, or other) and default checkboxes, developers can now set generate_appearance
themselves to whatever suits their type of PDF file.
Breaking Changes
- When using
set_fields
, you now must include braces{}
when passing a hash of key/value pairs. generate_appearance
is no longer set totrue
by default. You may now need to manually set it totrue
orfalse
if your form fields are not displaying correctly. See the documentation forset_field
andset_fields
methods, as well as the Troubleshooting Issues section for more information.