Skip to content

v0.9.5.1

Compare
Choose a tag to compare
@vkononov vkononov released this 19 Nov 22:03
· 13 commits to master since this release
e49c73d

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 to true by default. You may now need to manually set it to true or false if your form fields are not displaying correctly. See the documentation for set_field and set_fields methods, as well as the Troubleshooting Issues section for more information.