aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFWriter.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-19 20:40:33 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-21 23:44:22 +0200
commitddc6cf0cf6c11bb50f9f576bf547df3674142c97 (patch)
tree315cb87cce6ab27648dfa8edc5e941f04bf5178b /include/qpdf/QPDFWriter.hh
parent9744414c66e3f85700ebc8b32d90f45ff97221bd (diff)
downloadqpdf-ddc6cf0cf6c11bb50f9f576bf547df3674142c97.tar.zst
Precheck streams by default
There is no need for a --precheck-streams option. We can do the precheck without imposing any penalty, only re-encoding the stream if it fails the first time.
Diffstat (limited to 'include/qpdf/QPDFWriter.hh')
-rw-r--r--include/qpdf/QPDFWriter.hh12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index c4bc7846..2f878492 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -200,17 +200,6 @@ class QPDFWriter
QPDF_DLL
void setQDFMode(bool);
- // Enable stream precheck mode. In this mode, all filterable
- // streams are checked by actually attempting to decode them
- // before filtering. This may add significant time to the process
- // of writing the data because all streams from the input must be
- // read twice, but it enables the raw stream data to be preserved
- // even in cases where qpdf would run into errors decoding the
- // stream after it determines that it should be able to do it.
- // Examples would include compressed data with errors in it.
- QPDF_DLL
- void setPrecheckStreams(bool);
-
// Preserve unreferenced objects. The default behavior is to
// discard any object that is not visited during a traversal of
// the object structure from the trailer.
@@ -495,7 +484,6 @@ class QPDFWriter
qpdf_stream_decode_level_e stream_decode_level;
bool stream_decode_level_set;
bool qdf_mode;
- bool precheck_streams;
bool preserve_unreferenced_objects;
bool newline_before_endstream;
bool static_id;