diff options
author | Jay Berkenbilt <ejb@ql.org> | 2024-01-09 17:41:18 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2024-01-10 22:44:17 +0100 |
commit | 34f013c1be56abac1104812938eb0af568df99e1 (patch) | |
tree | d3778a78539b58013b36ede9260e5a5efc86d093 /examples | |
parent | 20a134826c6f33fab81b0cdb9ba2d75fb03d1b59 (diff) | |
download | qpdf-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')
-rw-r--r-- | examples/qpdf-job.cc | 4 |
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 |