From ddc6cf0cf6c11bb50f9f576bf547df3674142c97 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 19 Aug 2017 14:40:33 -0400 Subject: 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. --- include/qpdf/QPDFWriter.hh | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'include') 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; -- cgit v1.2.3-54-g00ecf