aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFWriter.hh
diff options
context:
space:
mode:
authorMasamichi Hosoda <trueroad@trueroad.jp>2019-10-18 12:41:53 +0200
committerJay Berkenbilt <ejb@ql.org>2019-10-22 22:20:21 +0200
commit5a842792b69550cf441d4598feb1daff2fa8c83f (patch)
tree5c0bb58f6028cf48aab01f421a79b68fd92688ed /include/qpdf/QPDFWriter.hh
parentcdc46d78f441526d566c9da195e79b900617bb13 (diff)
downloadqpdf-5a842792b69550cf441d4598feb1daff2fa8c83f.tar.zst
Parse Contents in signature dictionary without encryption
Various PDF digital signing tools do not encrypt /Contents value in signature dictionary. Adobe Acrobat Reader DC can handle a PDF with the /Contents value not encrypted. Write Contents in signature dictionary without encryption Tests ensure that string /Contents are not handled specially when not found in sig dicts.
Diffstat (limited to 'include/qpdf/QPDFWriter.hh')
-rw-r--r--include/qpdf/QPDFWriter.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index 06de6a56..f5cd2e06 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -481,6 +481,7 @@ class QPDFWriter
static int const f_filtered = 1 << 1;
static int const f_in_ostream = 1 << 2;
static int const f_hex_string = 1 << 3;
+ static int const f_no_encryption = 1 << 4;
enum trailer_e { t_normal, t_lin_first, t_lin_second };