Size: 1301
Comment:
|
Size: 1527
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
See also the close alternatives, [[LaTeX/Pdfjam|pdfjam]] or [[PostScriptUtilities|psutils]]. |
|
Line 11: | Line 13: |
== PDF Manipulation == | == Installation == ---- == Usage == === Joining Documents === |
Line 21: | Line 33: |
=== Splitting Documents === |
|
Line 29: | Line 45: |
---- | |
Line 32: | Line 47: |
== PDF into Image == |
=== Extracting Images === |
Line 50: | Line 64: |
=== Converting to Images === |
|
Line 62: | Line 80: |
Poppler Utils
A set of PDF manipulation scripts are distributed as the poppler-utils package. The scripts are all based on the xpdf project and codebase.
See also the close alternatives, pdfjam or psutils.
Contents
Installation
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.