pdfjam - Man Page
A shell script for manipulating PDF files
Examples (TL;DR)
- Merge two (or more) PDFs:
pdfjam path/to/file1.pdf path/to/file2.pdf --outfile path/to/output_file.pdf
- Merge the first page of each file together:
pdfjam files... 1 --outfile path/to/output_file.pdf
- Merge subranges from two PDFs:
pdfjam path/to/file1.pdf 3-5,1 path/to/file2.pdf 4-6 --outfile path/to/output_file.pdf
- Sign an A4 page (adjust delta to height for other formats) with a scanned signature by overlaying them:
pdfjam path/to/file.pdf path/to/signature --fitpaper true --outfile path/to/signed.pdf --nup "1x2" --delta "0 -842pt"
- Arrange the pages from the input file into a fancy 2x2 grid:
pdfjam path/to/file.pdf --nup 2x2 --suffix 4up --preamble '\usepackage{fancyhdr} \pagestyle{fancy}'
- Reverse the order of pages within each given file and concatenate them:
pdfjam files... last-1 --suffix reversed
Synopsis
pdfjam [OPTION [OPTION] ...] [SRC [PAGESPEC] [SRC [PAGESPEC]] ...]
Description
pdfjam provides a front end to most capabilities of the "pdfpages" package (by Andreas Matthias) of pdflatex. Detailed information can be found via "pdfjam --help", and also in the web page mentioned below .
A working installation of pdflatex, with the pdfpages package, is required.
The pdfjam script is distributed as (the main) part of the pdfjam package. The homepage of pdfjam is at https://github.com/DavidFirth/pdfjam .
Setup
Configuration Files
Configuration of the PDFjam utilities involves specifying the location of pdflatex, the location of temporary files, specification of default page size, etc. This is done in a block of lines near the top of the pdfjam script; settings made there are over-ridden by any that are found at a site-wide configuration file (at /etc/pdfjam.conf, /usr/share/etc/pdfjam.conf, /usr/local/share/pdfjam.conf, or /usr/local/etc/pdfjam.conf), which in turn are over-ridden by any that are found in a user-defaults file at ~/.pdfjam.conf.
Limitations and Bugs
pdfjam does not work with encrypted PDF files, and does not preserve hyperlinks.
Please report bugs! --- either at GitHub or by email, see https://github.com/DavidFirth/pdfjam .
License
pdfjam is distributed under the GNU public license.
Author
The pdfjam package is written and maintained by David Firth.