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.
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).
--latex option is used,
pdflatex is not run and
a LaTeX file is created instead of a PDF.
Use the program as shown in the examples below.
writes 2 copies of
pdfmult -n 4 sample.pdf
writes 4 copies of
pdfmult sample.pdf -o outfile.pdf
writes 2 copies of
pdfmult sample.pdf -p 3
processes the first 3 pages of
pdfmult sample.pdf -o - | lpr
sends output via stdout to print command
gem install pdfmult to install from RubyGems.org.
lib/pdfmult.rb under the name
pdfmult into your search path.
On a Linux system you can use
[sudo] rake install
pdfmult and its man page to
As of now,
pdfmult has only been tested on a Linux system.
pdfmultis written in Ruby, so Ruby must be installed on your system.
pdfpagespackage, so both have to be installed on the system. (If
pdfmultcannot find the
pdflatexcommand on your system you might want to use the
pdfmulttries to obtain the page count of PDF files with
pdfinfo. If it fails, by default only the first page of a PDF file will be processed.
pdfmult --help to display a brief help message.
If you installed
rake install you can read
its man page with
Report bugs on the
pdfmult home page: https://github.com/stomar/pdfmult/
Copyright © 2011-2017 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+),
There is NO WARRANTY, to the extent permitted by law.