Debian Codegraph @

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

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