Poppler Utilities

Poppler Utilities are a set of PDF manipulation scripts. The scripts are all based on the xpdf project and codebase.

See also the close alternatives, pdfjam or psutils.


Installation

Most Linux distributions offer a poppler-utils package.


Usage

Joining Documents

To join PDF documents, try:

pdfunite INPUT1 [INPUT2 ..] OUTPUT

Note that all input files must be unencrypted.

Splitting Documents

To separate a PDF document into one for each page, try:

pdfseparate INPUT OUTPUT-PATTERN

Output files will be named as OUTPUT-PATTERN-001.pdf.

Extracting Images

To extract images from a PDF file, try:

pdfimages -png INPUT OUTPUT-PATTERN

Output files will be named as OUTPUT-PATTERN-001.png. Alternate formats available include:

Format

Option

JPEG

-j

JPEG2000

-jp2

TIFF

-tiff

JBIG2

-jbig2

CCITT

-ccitt

Converting to Images

To render each page of a PDF into an image, try:

pdftoppm -png INPUT OUTPUT-PATTERN

Format

Option

JPEG

-jpeg

CMYK JPEG

-jpegcmyk

TIFF

-tiff

Note that resolution is 150x150 by default. This can be set using -r N or -rx N -ry N.


See also

pdfimages(1)

pdfseparate(1)

pdftoppm(1)

pdfunite(1)


CategoryRicottone

PopplerUtilities (last edited 2023-04-08 17:25:59 by DominicRicottone)