Commit 198856a82570dfaf9857281d2f5acc521ab7022b

Authored by Jay Berkenbilt
1 parent 8ab52fa5

Improve pclm parameter settings

Showing 1 changed file with 3 additions and 1 deletions
libqpdf/QPDFWriter.cc
... ... @@ -2307,7 +2307,8 @@ QPDFWriter::write()
2307 2307  
2308 2308 if (this->pclm)
2309 2309 {
2310   - setStreamDataMode(qpdf_s_preserve);
  2310 + this->stream_decode_level = qpdf_dl_none;
  2311 + this->compress_streams = false;
2311 2312 this->encrypted = false;
2312 2313 }
2313 2314  
... ... @@ -2334,6 +2335,7 @@ QPDFWriter::write()
2334 2335 }
2335 2336 else if (this->normalize_content ||
2336 2337 this->stream_decode_level ||
  2338 + this->pclm ||
2337 2339 this->qdf_mode)
2338 2340 {
2339 2341 // Encryption makes looking at contents pretty useless. If
... ...