diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-02-26 20:47:52 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-03-03 23:05:19 +0100 |
commit | fa2516df712aa59eb414933a912d30bb6fa1606e (patch) | |
tree | 776307a8d4e513e0a8bcd6fdb586a1b8b722fcd1 /ChangeLog | |
parent | 5207c3da713f242506aeb4889b97ced362b13bdf (diff) | |
download | qpdf-fa2516df712aa59eb414933a912d30bb6fa1606e.tar.zst |
Fix behavior for finding /Q, /DA, and /DR for form fields
If not found in the field hierarchy, /Q and /DA are supposed to be
looked up in the document-level form dictionary. /DR is supposed to
only come from the document dictionary.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,16 @@ +2021-02-26 Jay Berkenbilt <ejb@ql.org> + + * Bug fix: QPDFFormFieldObjectHelper was mis-handling /DA, /Q, and + /DR in ways that usually didn't matter but were still wrong. /DA + and /Q were being found in the field hierarchy, but if not found, + the default values in the /AcroForm dictionary were not being + used. /DR was being treated as an inherited field in the field + dictionary, which is wrong. It is actually supposed to come from + the /AcroForm dictionary. We were getting away with this since + many popular form writers seem to copy it to the field as well, + even though the spec makes no mention of doing this. To support + this, QPDFFormFieldObjectHelper::getDefaultResources was added. + 2021-02-25 Jay Berkenbilt <ejb@ql.org> * Update StreamDataProvider examples to use copyStream() when they |