From 666f7943931bed6318e9ffeeeb696bad4d813222 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 4 Mar 2018 06:59:12 -0500 Subject: Support "r" in page ranges (fixes #155) --- manual/qpdf-manual.xml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'manual') 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 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. Example page ranges: @@ -840,6 +842,17 @@ make z-1: all pages in the document in reverse + + + r3-r1: the last three pages of the document + + + + + r1-r3: the last three pages of the document + in reverse order + + -- cgit v1.2.3-54-g00ecf