Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


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.


Use the program as shown in the examples below.

  • pdfmult sample.pdf

    writes 2 copies of sample.pdf to sample_2.pdf

  • pdfmult -n 4 sample.pdf

    writes 4 copies of sample.pdf to sample_4.pdf

  • pdfmult sample.pdf -o outfile.pdf

    writes 2 copies of sample.pdf to outfile.pdf

  • pdfmult sample.pdf -p 3

    processes the first 3 pages of sample.pdf

  • pdfmult sample.pdf -o - | lpr

    sends output via stdout to print command


Use gem install pdfmult to install from

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.


As of now, pdfmult has only been tested on a Linux system.

  • pdfmult is written in Ruby, so Ruby must be installed on your system.
  • pdfmult uses pdflatex with the pdfpages package, so both have to be installed on the system. (If pdfmult cannot find the pdflatex command on your system you might want to use the --latex option.)
  • pdfmult tries 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.


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:


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+), see There is NO WARRANTY, to the extent permitted by law.


put multiple copies of a PDF page on one page



No releases published


No packages published
You can’t perform that action at this time.