diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-03-04 12:59:12 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-03-04 13:05:14 +0100 |
commit | 666f7943931bed6318e9ffeeeb696bad4d813222 (patch) | |
tree | 762b475a2b60d58f5aac732f1bd627e02a5a34a6 /manual/qpdf-manual.xml | |
parent | e577dfc87e3c3dcba1ea501db91659e4c96e313b (diff) | |
download | qpdf-666f7943931bed6318e9ffeeeb696bad4d813222.tar.zst |
Support "r" in page ranges (fixes #155)
Diffstat (limited to 'manual/qpdf-manual.xml')
-rw-r--r-- | manual/qpdf-manual.xml | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 7f9404c6..6003cabe 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -818,13 +818,15 @@ make </para> <para> The page range is a set of numbers separated by commas, ranges of - numbers separated dashes, or combinations of those. The character - “z” represents the last page. Pages can appear in any - order. Ranges can appear with a high number followed by a low - number, which causes the pages to appear in reverse. Repeating a - number will cause an error, but you can use the workaround - discussed above should you really want to include the same page - twice. + numbers separated dashes, or combinations of those. The character + “z” represents the last page. A number preceded by an + “r” indicates to count from the end, so + “r3-r1” would be the last three pages of the document. + Pages can appear in any order. Ranges can appear with a high + number followed by a low number, which causes the pages to appear + in reverse. Repeating a number will cause an error, but you can + use the workaround discussed above should you really want to + include the same page twice. </para> <para> Example page ranges: @@ -840,6 +842,17 @@ make <literal>z-1</literal>: all pages in the document in reverse </para> </listitem> + <listitem> + <para> + <literal>r3-r1</literal>: the last three pages of the document + </para> + </listitem> + <listitem> + <para> + <literal>r1-r3</literal>: the last three pages of the document + in reverse order + </para> + </listitem> </itemizedlist> </para> <para> |