summaryrefslogtreecommitdiff
path: root/source/helpers/pkcs7
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2018-07-04 14:53:38 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-07-05 15:32:35 +0200
commite717674eba31ed19ca1078652843a22f24a96180 (patch)
tree26af439d7205771893665c5bfd517db07cbe3684 /source/helpers/pkcs7
parent4cebff9641f7a1b6af7310f698e2af8481929386 (diff)
downloadmupdf-e717674eba31ed19ca1078652843a22f24a96180.tar.xz
Fix document signing adding unnecessary incremental updates
When a document is signed multiple times, an incremental update is needed for each, the multiple updates sometimes written to the file as a single saving operation. Within pdf_sign_signature it is the call to pdf_signature_set_value that marks the current section of the xref to which changes are recorded as "full", so that subsequent changes will trigger the creation of a new section. Within pdf_sign_signature we were creating the signature's appearance stream after the call to pdf_signature_set_value and hence triggering an extra unnecessary setction. This commit moves the pdf_signature_set_value to after the creation of the appearance stream, so that we need only as many new xref sections as there are signings.
Diffstat (limited to 'source/helpers/pkcs7')
0 files changed, 0 insertions, 0 deletions