Blame SOURCES/pdftopdf-nocrypt.patch

5fc268
diff --git a/filter/pdftopdf/qpdf_pdftopdf_processor.cc b/filter/pdftopdf/qpdf_pdftopdf_processor.cc
5fc268
index 73e4f06..0752a99 100644
5fc268
--- a/filter/pdftopdf/qpdf_pdftopdf_processor.cc
5fc268
+++ b/filter/pdftopdf/qpdf_pdftopdf_processor.cc
5fc268
@@ -623,6 +623,7 @@ void QPDF_PDFTOPDF_Processor::emitFile(FILE *f,ArgOwnership take) // {{{
5fc268
   if (!extraheader.empty()) {
5fc268
     out.setExtraHeaderText(extraheader);
5fc268
   }
5fc268
+  out.setPreserveEncryption(false);
5fc268
   out.write();
5fc268
 }
5fc268
 // }}}
5fc268
@@ -642,6 +643,7 @@ void QPDF_PDFTOPDF_Processor::emitFilename(const char *name) // {{{
5fc268
   if (!extraheader.empty()) {
5fc268
     out.setExtraHeaderText(extraheader);
5fc268
   }
5fc268
+  out.setPreserveEncryption(false);
5fc268
   out.write();
5fc268
 }
5fc268
 // }}}