Debian Codegraph @

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

raw
1 pdftoppm(1) General Commands Manual pdftoppm(1)
2
3
4
5 NAME
6 pdftoppm - Portable Document Format (PDF) to Portable Pixmap (PPM) con-
7 verter (version 4.06)
8
9 SYNOPSIS
10 pdftoppm [options] PDF-file PPM-root
11
12 DESCRIPTION
13 Pdftoppm converts Portable Document Format (PDF) files to color image
14 files in Portable Pixmap (PPM) format, grayscale image files in Porta-
15 ble Graymap (PGM) format, or monochrome image files in Portable Bitmap
16 (PBM) format.
17
18 Pdftoppm reads the PDF file, PDF-file, and writes one PPM file for each
19 page, PPM-root-nnnnnn.ppm, where nnnnnn is the page number. If PPM-
20 root is '-', the image is sent to stdout (this is probably only useful
21 when converting a single page).
22
23 CONFIGURATION FILE
24 Pdftoppm reads a configuration file at startup. It first tries to find
25 the user's private config file, ~/.xpdfrc. If that doesn't exist, it
26 looks for a system-wide config file, typically /etc/xpdfrc (but this
27 location can be changed when pdftoppm is built). See the xpdfrc(5) man
28 page for details.
29
30 OPTIONS
31 Many of the following options can be set with configuration file com-
32 mands. These are listed in square brackets with the description of the
33 corresponding command line option.
34
35 -f number
36 Specifies the first page to convert.
37
38 -l number
39 Specifies the last page to convert.
40
41 -r number
42 Specifies the resolution, in DPI. The default is 150 DPI.
43
44 -mono Generate a monochrome PBM file (instead of an RGB PPM file).
45
46 -gray Generate a grayscale PGM file (instead of an RGB PPM file).
47
48 -cmyk Generate a CMYK PAM file (instead of an RGB PPM file).
49
50 -rot angle
51 Rotate pages by 0 (the default), 90, 180, or 270 degrees.
52
53 -freetype yes | no
54 Enable or disable FreeType (a TrueType / Type 1 font raster-
55 izer). This defaults to "yes". [config file: enableFreeType]
56
57 -aa yes | no
58 Enable or disable font anti-aliasing. This defaults to "yes".
59 [config file: antialias]
60
61 -aaVector yes | no
62 Enable or disable vector anti-aliasing. This defaults to "yes".
63 [config file: vectorAntialias]
64
65 -opw password
66 Specify the owner password for the PDF file. Providing this
67 will bypass all security restrictions.
68
69 -upw password
70 Specify the user password for the PDF file.
71
72 -verbose
73 Print a status message (to stdout) before processing each page.
74 [config file: printStatusInfo]
75
76 -q Don't print any messages or errors. [config file: errQuiet]
77
78 -cfg config-file
79 Read config-file in place of ~/.xpdfrc or the system-wide config
80 file.
81
82 -v Print copyright and version information.
83
84 -h Print usage information. (-help and --help are equivalent.)
85
86 EXIT CODES
87 The Xpdf tools use the following exit codes:
88
89 0 No error.
90
91 1 Error opening a PDF file.
92
93 2 Error opening an output file.
94
95 3 Error related to PDF permissions.
96
97 98 Out of memory.
98
99 99 Other error.
100
101 AUTHOR
102 The pdftoppm software and documentation are copyright 1996-2025 Glyph &
103 Cog, LLC.
104
105 SEE ALSO
106 xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdf-
107 fonts(1), pdfdetach(1), pdftopng(1), pdfimages(1), xpdfrc(5)
108 http://www.xpdfreader.com/
109
110
111
112 14 Nov 2025 pdftoppm(1)