2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-23 15:18:33 +00:00

Improve pclm parameter settings

This commit is contained in:
Jay Berkenbilt 2017-08-21 20:56:36 -04:00
parent 8ab52fa558
commit 198856a825

View File

@ -2307,7 +2307,8 @@ QPDFWriter::write()
if (this->pclm) if (this->pclm)
{ {
setStreamDataMode(qpdf_s_preserve); this->stream_decode_level = qpdf_dl_none;
this->compress_streams = false;
this->encrypted = false; this->encrypted = false;
} }
@ -2334,6 +2335,7 @@ QPDFWriter::write()
} }
else if (this->normalize_content || else if (this->normalize_content ||
this->stream_decode_level || this->stream_decode_level ||
this->pclm ||
this->qdf_mode) this->qdf_mode)
{ {
// Encryption makes looking at contents pretty useless. If // Encryption makes looking at contents pretty useless. If