aboutsummaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-18 02:04:55 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-18 02:07:45 +0100
commitdfce581754142d37308313b6788598771f242039 (patch)
treeeef88e2ae3828402bcd5ad239ad7498495d67603 /manual
parenta773f4c71d411754317c16140debec55fad88e16 (diff)
downloadqpdf-dfce581754142d37308313b6788598771f242039.tar.zst
Add numeric argument to --collate
This takes pages from the file in groups of n with default = 1. This partially fixes the enhancement in issue #505 but doesn't implement the entire suggestion.
Diffstat (limited to 'manual')
-rw-r--r--manual/qpdf-manual.xml37
1 files changed, 34 insertions, 3 deletions
diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml
index 508e0ec9..144c4edf 100644
--- a/manual/qpdf-manual.xml
+++ b/manual/qpdf-manual.xml
@@ -1077,12 +1077,14 @@ make
</listitem>
</varlistentry>
<varlistentry>
- <term><option>--collate</option></term>
+ <term><option>--collate=<replaceable>n</replaceable></option></term>
<listitem>
<para>
When specified, collate rather than concatenate pages from
- files specified with <option>--pages</option>. See <xref
- linkend="ref.page-selection"/> for additional details.
+ files specified with <option>--pages</option>. With a numeric
+ argument, collate in groups of <replaceable>n</replaceable>.
+ The default is 1. See <xref linkend="ref.page-selection"/> for
+ additional details.
</para>
</listitem>
</varlistentry>
@@ -1647,6 +1649,27 @@ make
</itemizedlist>
</para>
<para>
+ Starting in qpdf version 10.2, you may specify a numeric argument
+ to <option>--collate</option>. With
+ <option>--collate=<replaceable>n</replaceable></option>, pull
+ groups of <replaceable>n</replaceable> pages from each file,
+ again, stopping when there are no more pages. For example, if you
+ ran <command>qpdf --collate=2 --empty --pages a.pdf 1-5 b.pdf 6-4
+ c.pdf r1 -- out.pdf</command>, you would get the following pages
+ in this order:
+ <itemizedlist>
+ <listitem><para>a.pdf page 1</para></listitem>
+ <listitem><para>a.pdf page 2</para></listitem>
+ <listitem><para>b.pdf page 6</para></listitem>
+ <listitem><para>b.pdf page 5</para></listitem>
+ <listitem><para>c.pdf last page</para></listitem>
+ <listitem><para>a.pdf page 3</para></listitem>
+ <listitem><para>a.pdf page 4</para></listitem>
+ <listitem><para>b.pdf page 4</para></listitem>
+ <listitem><para>a.pdf page 5</para></listitem>
+ </itemizedlist>
+ </para>
+ <para>
Starting in qpdf version 8.3, when you split and merge files, any
page labels (page numbers) are preserved in the final file. It is
expected that more document features will be preserved by
@@ -5144,6 +5167,14 @@ print "\n";
reference to the file spec object.
</para>
</listitem>
+ <listitem>
+ <para>
+ Add numeric option to <option>--collate</option>. If
+ <option>--collate=<replaceable>n</replaceable></option> is
+ given, take pages in groups of <replaceable>n</replaceable>
+ from the given files.
+ </para>
+ </listitem>
</itemizedlist>
</listitem>
<listitem>