aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2023-12-20 17:08:36 +0100
committerJay Berkenbilt <ejb@ql.org>2023-12-20 21:46:20 +0100
commitd61612a2e54d266d8fc4f55042080b780984272e (patch)
treeebefee30abcf242c70d55fb4b0c5841416bec7a9 /include
parentc5f622a09e6a68d87d3591346d872cf828cf82c7 (diff)
downloadqpdf-d61612a2e54d266d8fc4f55042080b780984272e.tar.zst
Bug fix: don't compress hint streams when --compress-streams=n
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index ffe07559..392a153a 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -745,9 +745,10 @@ class QPDF
std::map<int, int> const& obj_renumber,
std::shared_ptr<Buffer>& hint_stream,
int& S,
- int& O)
+ int& O,
+ bool compressed)
{
- return qpdf.generateHintStream(xref, lengths, obj_renumber, hint_stream, S, O);
+ return qpdf.generateHintStream(xref, lengths, obj_renumber, hint_stream, S, O, compressed);
}
static void
@@ -1094,7 +1095,8 @@ class QPDF
std::map<int, int> const& obj_renumber,
std::shared_ptr<Buffer>& hint_stream,
int& S,
- int& O);
+ int& O,
+ bool compressed);
// Map object to object stream that contains it
void getObjectStreamData(std::map<int, int>&);