From c4478e5249f935abe852b11275ffe48c29d8f997 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 9 Nov 2019 11:54:16 -0500 Subject: Allow odd/even modifiers in numeric range (fixes #364) --- manual/qpdf-manual.xml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'manual/qpdf-manual.xml') diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 58d21435..c332bedc 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -1391,9 +1391,12 @@ make 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. + appear in reverse. Numbers may be repeated in a page range. A page + range may be optionally appended with :even or + :odd to indicate only the even or odd pages in + the given range. Note that even and odd refer to the positions + within the specified, range, not whether the original number is + even or odd. Example page ranges: @@ -1420,6 +1423,18 @@ make in reverse order + + + 1-20:even: even pages from 2 to 20 + + + + + 5,7-9,12:odd: pages 5, 8, and, 12, which are + the pages in odd positions from among the original range, which + represents pages 5, 7, 8, 9, and 12. + + @@ -4663,6 +4678,13 @@ print "\n"; . + + + Allow :even or :odd to + be appended to numeric ranges for specification of the even + or odd pages from among the pages specified in the range. + + -- cgit v1.2.3-54-g00ecf