diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-12-24 13:12:32 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-12-24 13:36:07 +0100 |
commit | 4ca185fd96dfd3c7a8d89d3afd8093a26acf178b (patch) | |
tree | a50f15d2e151cd9f5b18bae2dc5405f650795186 /libqpdf/QPDFAcroFormDocumentHelper.cc | |
parent | 2f37633b923e0294acd894454a95d2a9ee1d36a9 (diff) | |
download | qpdf-4ca185fd96dfd3c7a8d89d3afd8093a26acf178b.tar.zst |
Remove --disable-signatures; incorporate into --remove-restrictions
Rather than adding yet another flag that is almost never useful on its
own, just have --remove-restrictions disable digital signatures. The
operations are still separate in the API.
Diffstat (limited to 'libqpdf/QPDFAcroFormDocumentHelper.cc')
-rw-r--r-- | libqpdf/QPDFAcroFormDocumentHelper.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc index 5fdd20ba..fb096e5e 100644 --- a/libqpdf/QPDFAcroFormDocumentHelper.cc +++ b/libqpdf/QPDFAcroFormDocumentHelper.cc @@ -418,6 +418,7 @@ QPDFAcroFormDocumentHelper::generateAppearancesIfNeeded() void QPDFAcroFormDocumentHelper::disableDigitalSignatures() { + qpdf.removeSecurityRestrictions(); std::set<QPDFObjGen> to_remove; auto fields = getFormFields(); for (auto& f: fields) { |