aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qpdf-job.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-01-09 17:41:18 +0100
committerJay Berkenbilt <ejb@ql.org>2024-01-10 22:44:17 +0100
commit34f013c1be56abac1104812938eb0af568df99e1 (patch)
treed3778a78539b58013b36ede9260e5a5efc86d093 /examples/qpdf-job.cc
parent20a134826c6f33fab81b0cdb9ba2d75fb03d1b59 (diff)
downloadqpdf-34f013c1be56abac1104812938eb0af568df99e1.tar.zst
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.
Diffstat (limited to 'examples/qpdf-job.cc')
-rw-r--r--examples/qpdf-job.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/qpdf-job.cc b/examples/qpdf-job.cc
index 3e6e99bd..c2952ee5 100644
--- a/examples/qpdf-job.cc
+++ b/examples/qpdf-job.cc
@@ -40,7 +40,9 @@ main(int argc, char* argv[])
->inputFile("in.pdf")
->outputFile("out1.pdf")
->pages()
- ->pageSpec(".", "1")
+ // Prior to qpdf 11.9.0, call ->pageSpec(file, range, password)
+ ->file(".")
+ ->range("1")
->endPages()
->linearize()
->staticId() // for testing only