pdfjam

Shell frontend for the LaTeX pdfpages package for mingling PDFs.

TLDR

Merge two (or more) PDFs

$ pdfjam [path/to/file1.pdf] [path/to/file2.pdf] --outfile [path/to/output_file.pdf]
copy

Merge the first page of each file together

$ pdfjam [files...] 1 --outfile [path/to/output_file.pdf]
copy

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]
copy

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]"
copy

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]}'
copy

Reverse the order of pages within each given file and concatenate them

$ pdfjam [files...] [last-1] --suffix [reversed]
copy

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

See https://github.com/DavidFirth/pdfjam

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.

Copied to clipboard
Raspberry