aboutsummaryrefslogtreecommitdiffstats
path: root/manual/qpdf.1
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-01-01 16:14:01 +0100
committerJay Berkenbilt <ejb@ql.org>2024-01-01 16:48:14 +0100
commit070ee710eb0aaf6ddc845735c6ea0c28d3b7e5a1 (patch)
treeefe7e487fed4f341960792c6357bac6dd927afa1 /manual/qpdf.1
parent708ea4ef43c2f7d6a88f215f1b932c5118aceafb (diff)
downloadqpdf-070ee710eb0aaf6ddc845735c6ea0c28d3b7e5a1.tar.zst
Support excluding values from numeric ranges (fixes #564, #790)
Diffstat (limited to 'manual/qpdf.1')
-rw-r--r--manual/qpdf.120
1 files changed, 15 insertions, 5 deletions
diff --git a/manual/qpdf.1 b/manual/qpdf.1
index 6a859c8a..d758dca3 100644
--- a/manual/qpdf.1
+++ b/manual/qpdf.1
@@ -377,16 +377,26 @@ value, even if the file uses features that may not be available
in that version.
.SH PAGE-RANGES (page range syntax)
A full description of the page range syntax, with examples, can be
-found in the manual. Summary:
+found in the manual. In summary, a range is a comma-separated list
+of groups. A group is a number or a range of numbers separated by a
+dash. A group may be prepended by x to exclude its members from the
+previous group. A number may be one of
.IP \[bu]
-a,b,c pages a, b, and c
+<n> where <n> represents a number is the <n>th page
.IP \[bu]
-a-b pages a through b inclusive; if a > b, this counts down
+r<n> is the <n>th page from the end
.IP \[bu]
-r<n> where <n> represents a number is the <n>th page from the end
+z the last page, same as r1
+
+.IP \[bu]
+a,b,c pages a, b, and c
+.IP \[bu]
+a-b pages a through b inclusive; if a > b, this counts down
+.IP \[bu]
+a-b,xc pages a through b except page c
.IP \[bu]
-z the last page, same as r1
+a-b,xc-d pages a through b except pages c through d
You can append :even or :odd to select every other page from the
resulting set of pages, where :odd starts with the first page and