-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow arbitrary ON values for CheckBoxes
We previously insisted that the ON-values for CheckBoxes are defined as "Yes" in the PDF (the published recommended value). This fix introduces lifts this restriction and supports arbitrary values as ON for check boxes. So a check box turns to OFF if setting its field value to `False` or "Off". It is set to ON if the field value is set to any of 'True`, "Yes" or the respective value coded in the PDF. When checking a check box's value, the return values invariably are either "Off" or the ON-value in the PDF. Which value this is, can be checked via method `on_state()`.
- Loading branch information
Showing
3 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters