Blame SOURCES/pdftopdf-nocrypt.patch

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