Debian Codegraph @

libs/xpdf/xpdf-src/doc/pdfimages.cat

raw
1 pdfimages(1) General Commands Manual pdfimages(1)
2
3
4
5 NAME
6 pdfimages - Portable Document Format (PDF) image extractor (version
7 4.06)
8
9 SYNOPSIS
10 pdfimages [options] PDF-file image-root
11
12 DESCRIPTION
13 Pdfimages saves images from a Portable Document Format (PDF) file as
14 Portable Pixmap (PPM), Portable Graymap (PGM), Portable Bitmap (PBM),
15 or JPEG files.
16
17 Pdfimages reads the PDF file, scans one or more pages, PDF-file, and
18 writes one PPM, PGM, PBM, or JPEG file for each image, image-root-
19 nnnn.xxx, where nnnn is the image number and xxx is the image type
20 (.ppm, .pgm, .pbm, .jpg).
21
22 NB: pdfimages extracts the raw image data from the PDF file, without
23 performing any additional transforms. Any rotation, clipping, color
24 inversion, etc. done by the PDF content stream is ignored.
25
26 CONFIGURATION FILE
27 Pdfimages reads a configuration file at startup. It first tries to
28 find the user's private config file, ~/.xpdfrc. If that doesn't exist,
29 it looks for a system-wide config file, typically /etc/xpdfrc (but this
30 location can be changed when pdfimages is built). See the xpdfrc(5)
31 man page for details.
32
33 OPTIONS
34 Many of the following options can be set with configuration file com-
35 mands. These are listed in square brackets with the description of the
36 corresponding command line option.
37
38 -f number
39 Specifies the first page to scan.
40
41 -l number
42 Specifies the last page to scan.
43
44 -j Normally, all images are written as PBM (for monochrome images),
45 PGM (for grayscale images), or PPM (for color images) files.
46 With this option, images in DCT format are saved as JPEG files.
47 All non-DCT images are saved in PBM/PGM/PPM format as usual.
48 (Inline images are always saved in PBM/PGM/PPM format.)
49
50 -J Write JPX / JPEG 2000 images as JPEG 2000 files (similar to
51 "-j", but for JPEG 2000).
52
53 -raw Write all images in PDF-native formats. Most of the formats are
54 not standard image formats, so this option is primarily useful
55 as input to a tool that generates PDF files. (Inline images are
56 always saved in PBM/PGM/PPM format.)
57
58 -u Write only one copy of each unique image. If the same image is
59 used multiple times, possibly across multiple pages, pdfimages
60 will only write one image file. "Uniqueness" is determined by
61 looking for reuse of image objects withiin the PDF file; if mul-
62 tiiple copies of an image are embedded, pdfimages will treat
63 them as separate, unique images.
64
65 -list Write a one-line summary to stdout for each image. The summary
66 provides the image file name, the page number, the image width
67 and height, the horizontal and vertical resolution (DPI) as
68 drawn, the color space type, and the number of bits per compo-
69 nent (BPC).
70
71 -listonly
72 Write a one-line summary to stdout for each image (similar to
73 "-list"), but do not generate any image files. If this option is
74 used, the "image-root" argument must not be provided.
75
76 -opw password
77 Specify the owner password for the PDF file. Providing this
78 will bypass all security restrictions.
79
80 -upw password
81 Specify the user password for the PDF file.
82
83 -verbose
84 Print a status message (to stdout) before processing each page.
85 [config file: printStatusInfo]
86
87 -q Don't print any messages or errors. [config file: errQuiet]
88
89 -cfg config-file
90 Read config-file in place of ~/.xpdfrc or the system-wide config
91 file.
92
93 -v Print copyright and version information.
94
95 -h Print usage information. (-help and --help are equivalent.)
96
97 EXIT CODES
98 The Xpdf tools use the following exit codes:
99
100 0 No error.
101
102 1 Error opening a PDF file.
103
104 2 Error opening an output file.
105
106 3 Error related to PDF permissions.
107
108 98 Out of memory.
109
110 99 Other error.
111
112 AUTHOR
113 The pdfimages software and documentation are copyright 1998-2025 Glyph
114 & Cog, LLC.
115
116 SEE ALSO
117 xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdf-
118 fonts(1), pdfdetach(1), pdftoppm(1), pdftopng(1), xpdfrc(5)
119 http://www.xpdfreader.com/
120
121
122
123 14 Nov 2025 pdfimages(1)