pdfmult
pdfmult is a command line tool (written in Ruby) that
rearranges multiple copies of a PDF page (shrunken) on one page.
The paper size of the produced PDF file is A4,
the input file is also assumed to be in A4 format.
The input PDF file may consist of several pages.
If pdfmult succeeds in obtaining the page count it will rearrange all pages,
if not, only the first page is processed
(unless the page count was specified via command line option).
If the --latex option is used, pdflatex is not run and
a LaTeX file is created instead of a PDF.
Examples
Use the program as shown in the examples below.
-
pdfmult sample.pdfwrites 2 copies of
sample.pdftosample_2.pdf
-
pdfmult -n 4 sample.pdfwrites 4 copies of
sample.pdftosample_4.pdf
-
pdfmult sample.pdf -o outfile.pdfwrites 2 copies of
sample.pdftooutfile.pdf -
pdfmult sample.pdf -p 3processes the first 3 pages of
sample.pdf -
pdfmult sample.pdf -o - | lprsends output via stdout to print command
Installation
Use gem install pdfmult to install from RubyGems.org.
Or copy lib/pdfmult.rb under the name pdfmult into your search path.
On a Linux system you can use [sudo] rake install
to install pdfmult and its man page to /usr/local.
Requirements
As of now, pdfmult has only been tested on a Linux system.
-
pdfmultis written in Ruby, so Ruby must be installed on your system. -
pdfmultusespdflatexwith thepdfpagespackage, so both have to be installed on the system. (Ifpdfmultcannot find thepdflatexcommand on your system you might want to use the--latexoption.) -
pdfmulttries to obtain the page count of PDF files withpdfinfo. If it fails, by default only the first page of a PDF file will be processed.
Documentation
Use pdfmult --help to display a brief help message.
If you installed pdfmult using rake install you can read
its man page with man pdfmult.
Reporting bugs
Report bugs on the pdfmult home page: https://github.com/stomar/pdfmult/
License
Copyright © 2011-2024 Marcus Stollsteimer
pdfmult is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3 or later (GPLv3+),
see www.gnu.org/licenses/gpl.html.
There is NO WARRANTY, to the extent permitted by law.