LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pdfjam

manipulates PDF pages using LaTeX and pdfpages

TLDR

Combine PDFs
$ pdfjam [file1.pdf] [file2.pdf] -o [output.pdf]
copy
Select pages
$ pdfjam [input.pdf] [1,3,5-7] -o [output.pdf]
copy
Rotate pages
$ pdfjam --angle [90] [input.pdf] -o [output.pdf]
copy
Two pages per sheet
$ pdfjam --nup 2x1 [input.pdf] -o [output.pdf]
copy
Scale pages
$ pdfjam --scale [0.8] [input.pdf] -o [output.pdf]
copy
Set paper size
$ pdfjam --paper [a4paper] [input.pdf] -o [output.pdf]
copy
Landscape orientation
$ pdfjam --landscape [input.pdf] -o [output.pdf]
copy

SYNOPSIS

pdfjam [options] files [page-ranges] [--outfile file]

DESCRIPTION

pdfjam manipulates PDF pages using LaTeX and pdfpages. It combines, rearranges, and transforms PDF documents.Page selection uses ranges like 1-5 or lists like 1,3,5. Negative numbers count from the end.N-up printing places multiple pages on one sheet. Common layouts are 2x1, 2x2, and 3x3.Rotation handles landscape documents or corrects orientation. Any angle is supported.Scaling adjusts page size. Combined with paper size, this enables fitting to different formats.Output defaults to modified input name. Suffix option adds to original filename.

PARAMETERS

-o, --outfile FILE

Output filename.
--nup COLxROW
Pages per sheet.
--angle DEGREES
Rotation angle.
--scale FACTOR
Scale factor.
--paper SIZE
Paper size.
--landscape
Landscape orientation.
--frame true|false
Frame around pages.
--delta X Y
Offset adjustment.
--offset X Y
Page offset.
--suffix STRING
Output filename suffix.

INSTALL

sudo pacman -S texlive-binextra
copy
sudo apk add texlive-binextra
copy

CAVEATS

Requires TeX Live or similar LaTeX distribution. Complex PDFs may not process correctly. Some PDF features may be lost.

HISTORY

pdfjam was created by David Firth as a shell wrapper around the LaTeX pdfpages package. It provides convenient command-line access to PDF manipulation.

SEE ALSO

pdfunite(1), pdftk(1), pdfpages(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid