From df33c368b472b6e2c2f011fc111c637b3dfca720 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 12 Aug 2017 11:49:04 -0400 Subject: Change --single-pages to --split-pages This is in preparation for implementing page groups. --- manual/qpdf-manual.xml | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'manual') diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 06504d33..3f3415c8 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -350,57 +350,61 @@ make - + - Write each page to a separate output file. Output file names - are generated as follows: + Write each group of pages to a separate + output file. If is not specified, create + single pages. Output file names are generated as follows: If the string %d appears in the output - file name, it is replaced with a zero-padded page number - starting from 1. + file name, it is replaced with a range of zero-padded page + numbers starting from 1. Otherwise, if the output file name ends in .pdf (case insensitive), a zero-padded - page number, preceded by a dash, is inserted before the - file extension. + page range, preceded by a dash, is inserted before the file + extension. Otherwise, the file name is appended with a zero-padded - page number preceded by a dash. + page range preceded by a dash. + Page ranges are a single number in the case of single-page + groups or two numbers separated by a dash otherwise. For example, if infile.pdf has 12 pages - qpdf infile.pdf %d-out would generate - files 01-out through + qpdf --split-pages infile.pdf %d-out + would generate files 01-out through 12-out - qpdf infile.pdf outfile.pdf - --single-pages would generate files - outfile-01.pdf through - outfile-12.pdf + qpdf --split-pages=2 infile.pdf + outfile.pdf would generate files + outfile-01-02.pdf through + outfile-11-12.pdf - qpdf infile.pdf something.else would generate - files something.else-01 through + qpdf --split-pages infile.pdf + something.else would generate files + something.else-01 through something.else-12 @@ -413,7 +417,7 @@ make the output into it. If you require the global data, you will have to run qpdf with the option once for each file. Using - is much faster if you don't + is much faster if you don't require the global data. -- cgit v1.2.3-54-g00ecf