From 49825e5cb67e589060de435f59203fa2f29b0476 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 5 Aug 2017 10:01:34 -0400 Subject: Add --split-pages option (fixes #30) --- manual/qpdf-manual.xml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) (limited to 'manual/qpdf-manual.xml') diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 830231b2..5f1a90e2 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -354,6 +354,75 @@ make + + + + + Write each page to a separate output file. 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. + + + + + 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. + + + + + Otherwise, the file name is appended with a zero-padded + page number preceded by a dash. + + + + + + For example, if infile.pdf has 12 pages + + + + qpdf 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 infile.pdf something.else would generate + files something.else-01 through + something.else-12 + + + + + + Note that outlines, threads, and other global features of the + original PDF file are not preserved. For each page of output, + this option creates an empty PDF and copies a single page from + 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 + require the global data. + + + -- cgit v1.2.3-54-g00ecf