From 5a842792b69550cf441d4598feb1daff2fa8c83f Mon Sep 17 00:00:00 2001 From: Masamichi Hosoda Date: Fri, 18 Oct 2019 19:41:53 +0900 Subject: 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. --- include/qpdf/QPDFWriter.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'include/qpdf/QPDFWriter.hh') 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 }; -- cgit v1.2.3-54-g00ecf