aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf
diff options
context:
space:
mode:
Diffstat (limited to 'qpdf')
-rw-r--r--qpdf/qpdf.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc
index 49271c68..783548ef 100644
--- a/qpdf/qpdf.cc
+++ b/qpdf/qpdf.cc
@@ -7,6 +7,7 @@
#include <qpdf/QUtil.hh>
#include <qpdf/QTC.hh>
+#include <qpdf/ClosedFileInputSource.hh>
#include <qpdf/Pl_StdioFile.hh>
#include <qpdf/Pl_Discard.hh>
#include <qpdf/PointerHolder.hh>
@@ -2083,8 +2084,9 @@ static void handle_page_specs(QPDF& pdf, Options& o,
QTC::TC("qpdf", "qpdf pages encryption password");
password = o.encryption_file_password;
}
- qpdf->processFile(
- page_spec.filename.c_str(), password);
+ qpdf->processInputSource(
+ new ClosedFileInputSource(
+ page_spec.filename.c_str()), password);
page_spec_qpdfs[page_spec.filename] = qpdf;
}