From 5e0ba126871c57a8a688b36614f2b8d78c2675b3 Mon Sep 17 00:00:00 2001 From: Masamichi Hosoda Date: Thu, 26 Sep 2019 23:36:14 +0900 Subject: Fix /Contents value representation in a signature dictionary Table 8.93 "Entries in a signature dictionary" in PDF 1.5 reference describes that the value of Contents entry is a hexadecimal string representation when ByteRange is specified. This commit makes QPDF always uses hexadecimal strings representation instead of literal strings for it. --- include/qpdf/QPDFWriter.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index c3818ae4..edea3c15 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -470,6 +470,7 @@ class QPDFWriter static int const f_stream = 1 << 0; static int const f_filtered = 1 << 1; static int const f_in_ostream = 1 << 2; + static int const f_hex_string = 1 << 3; enum trailer_e { t_normal, t_lin_first, t_lin_second }; -- cgit v1.2.3-54-g00ecf