aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFWriter.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-12-25 15:49:38 +0100
committerJay Berkenbilt <ejb@ql.org>2020-12-28 18:58:19 +0100
commit09027344b9a6265a597da7c3c92e0fdd3ccb71fb (patch)
tree0253f59f5408ea596856bc0b2cbf419e2fb9f996 /include/qpdf/QPDFWriter.hh
parent4cbe2abcc04ba91e4c26d0647187a08797098667 (diff)
downloadqpdf-09027344b9a6265a597da7c3c92e0fdd3ccb71fb.tar.zst
Refactor: separate code that determines whether to filter a stream
Diffstat (limited to 'include/qpdf/QPDFWriter.hh')
-rw-r--r--include/qpdf/QPDFWriter.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index c372a83a..83ab932c 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -529,6 +529,9 @@ class QPDFWriter
void writeTrailer(trailer_e which, int size,
bool xref_stream, qpdf_offset_t prev,
int linearization_pass);
+ bool willFilterStream(QPDFObjectHandle stream,
+ bool& compress_stream, bool& is_metadata,
+ PointerHolder<Buffer>* stream_data);
void unparseObject(QPDFObjectHandle object, int level, int flags,
// for stream dictionaries
size_t stream_length = 0, bool compress = false);