aboutsummaryrefslogtreecommitdiffstats
path: root/manual/qpdf-manual.xml
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-12 15:21:52 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-12 15:59:03 +0100
commit53d8e916b75b983c18d4611e91d6e74cb51a49ec (patch)
treea8bc4527d05bae7d232b9e67948db77d49bef9f4 /manual/qpdf-manual.xml
parent5f128b9a270347d401b6c1e94b43d418f7cbffef (diff)
downloadqpdf-53d8e916b75b983c18d4611e91d6e74cb51a49ec.tar.zst
Interpret . in --pages as a shortcut for the primary file
Diffstat (limited to 'manual/qpdf-manual.xml')
-rw-r--r--manual/qpdf-manual.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml
index d30e8ea4..f7c528b7 100644
--- a/manual/qpdf-manual.xml
+++ b/manual/qpdf-manual.xml
@@ -956,6 +956,11 @@ make
selection flags.
</para>
<para>
+ Starting with qpf 8.4, the special input file name
+ &ldquo;<filename>.</filename>&rdquo; can be used shortcut for the
+ primary input filename.
+ </para>
+ <para>
For each file that pages should be taken from, specify the file, a
password needed to open the file (if any), and a page range. The
password needs to be given only once per file. If any of the
@@ -1075,7 +1080,7 @@ make
<filename>infile.pdf</filename> while preserving all metadata
associated with that file, you could use
- <programlisting><command>qpdf</command> <option>infile.pdf --pages infile.pdf 1-5 -- outfile.pdf</option>
+ <programlisting><command>qpdf</command> <option>infile.pdf --pages . 1-5 -- outfile.pdf</option>
</programlisting>
If you wanted pages 1 through 5 from
<filename>infile.pdf</filename> but you wanted the rest of the
@@ -1087,7 +1092,7 @@ make
<filename>file1.pdf</filename> and pages 11&ndash;15 from
<filename>file2.pdf</filename> in reverse, you would run
- <programlisting><command>qpdf</command> <option>file1.pdf --pages file1.pdf 1-5 file2.pdf 15-11 -- outfile.pdf</option>
+ <programlisting><command>qpdf</command> <option>file1.pdf --pages file1.pdf 1-5 . 15-11 -- outfile.pdf</option>
</programlisting>
If, for some reason, you wanted to take the first page of an
encrypted file called <filename>encrypted.pdf</filename> with