From 34f013c1be56abac1104812938eb0af568df99e1 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 9 Jan 2024 11:41:18 -0500 Subject: Allow --file and --range with --pages Accept --file and --range as named parameters in additional to allowing positional arguments. This is in preparation for adding additional flags. --- include/qpdf/QPDFJob.hh | 2 ++ include/qpdf/auto_job_c_pages.hh | 3 +++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh index 4626c264..443fa75c 100644 --- a/include/qpdf/QPDFJob.hh +++ b/include/qpdf/QPDFJob.hh @@ -243,6 +243,8 @@ class QPDFJob public: QPDF_DLL Config* endPages(); + // From qpdf 11.9.0, you can call file(), range(), and password(). Each call to file() + // starts a new page spec. QPDF_DLL PagesConfig* pageSpec( std::string const& filename, std::string const& range, char const* password = nullptr); diff --git a/include/qpdf/auto_job_c_pages.hh b/include/qpdf/auto_job_c_pages.hh index b816d29d..75b0ae53 100644 --- a/include/qpdf/auto_job_c_pages.hh +++ b/include/qpdf/auto_job_c_pages.hh @@ -5,3 +5,6 @@ // // clang-format off // +QPDF_DLL PagesConfig* file(std::string const& parameter); +QPDF_DLL PagesConfig* range(std::string const& parameter); +QPDF_DLL PagesConfig* password(std::string const& parameter); -- cgit v1.2.3-54-g00ecf