summaryrefslogtreecommitdiff
path: root/poppler/Form.cc
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/Form.cc')
-rw-r--r--poppler/Form.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/poppler/Form.cc b/poppler/Form.cc
index b5a41c53..67657a9a 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -732,6 +732,9 @@ bool FormWidgetSignature::signDocumentWithAppearance(const std::string &saveFile
ffs->setCustomAppearanceLeftContent(signatureTextLeft);
ffs->setCustomAppearanceLeftFontSize(leftFontSize);
+ // say that there a now signatures and that we should append only
+ doc->getCatalog()->getAcroForm()->dictSet("SigFlags", Object(3));
+
const bool success = signDocument(saveFilename, certNickname, password, reason, location, ownerPassword, userPassword);
// Now bring back the annotation appearance back to what it was