Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the quadding of a variable text field by default on creation
The quadding /Q of a field has a default value, so it seems that it is not necessary to explicitly set the field to its default value of 0. There are (at least) two reasons why it still makes sense to set it explicitly: * In certain circumstances [1] the default value for an unset /Q might be taken from somewhere else. * When HexaPDF generates an appearance, it retrieves the value of the quadding via field.text_alignment which automatically sets /Q to its default value if it is not set. In case of adding a field to a PDF but *not* filling it (so no explicit /Q value), then signing the PDF, then filling in the field and again signing it, the initial signature will be invalided by the now explicitly set /Q. [1]: #89 (comment)
- Loading branch information