-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we ignored widget field flags changes for all button types (in an effort to fight potential user errors). This however prevented "legal" flags modifications for these widget types. This fix now simply relies on correct valus provided by the user and puts the provided field flags value to the PDF. Also make sure we are keeping the right widget type. When setting field flags, we must ensure to re-check the field type and set those flag bits that PDF uses to differentiate between the three button types and the two choice type. Also removed unnecessary use of fitz.PDF_WIDGET_TYPE_COMBOBOX flag in tests/test_widgets.py:test_combobox().
- Loading branch information
1 parent
a4cfd1d
commit 5877f59
Showing
2 changed files
with
11 additions
and
12 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
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