Differences between revisions 6 and 7
Revision 6 as of 2022-05-26 17:52:17
Size: 1527
Comment:
Revision 7 as of 2023-04-08 17:24:32
Size: 1919
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
A set of PDF manipulation scripts are distributed as the `poppler-utils` package. The scripts are all based on the xpdf project and codebase. '''Poppler Utilities''' are a set of PDF manipulation scripts. The scripts are all based on the xpdf project and codebase.
Line 14: Line 14:

Most [[Linux]] distributions offer a `poppler-utils` package.
Line 81: Line 83:
----



== See also ==

[[https://man.archlinux.org/man/extra/poppler/pdfimages.1.en|pdfimages(1)]]

[[https://man.archlinux.org/man/extra/poppler/pdfseparate.1.en|pdfseparate(1)]]

[[https://man.archlinux.org/man/extra/poppler/pdftoppm.1.en|pdftoppm(1)]]

[[https://man.archlinux.org/man/extra/poppler/pdfunite.1.en|pdfunite(1)]]

Poppler Utils

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)