1pdftoppm(1)                 General Commands Manual                pdftoppm(1)
2
3
4

NAME

6       pdftoppm - Portable Document Format (PDF) to Portable Pixmap (PPM) con‐
7       verter (version 3.03)
8

SYNOPSIS

10       pdftoppm [options] PDF-file PPM-root
11

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-number.ppm, where number is the page number.
20

OPTIONS

22       -f number
23              Specifies the first page to convert.
24
25       -l number
26              Specifies the last page to convert.
27
28       -o     Generates only the odd numbered pages.
29
30       -e     Generates only the even numbered pages.
31
32       -singlefile
33              Writes only the first page and does not add digits.
34
35       -r number
36              Specifies the X and Y resolution, in DPI.  The  default  is  150
37              DPI.
38
39       -rx number
40              Specifies the X resolution, in DPI.  The default is 150 DPI.
41
42       -ry number
43              Specifies the Y resolution, in DPI.  The default is 150 DPI.
44
45       -scale-to number
46              Scales  the  long  side of each page (width for landscape pages,
47              height for portrait pages) to fit in scale-to pixels.  The  size
48              of  the short side will be determined by the aspect ratio of the
49              page.
50
51       -scale-to-x number
52              Scales each page horizontally to fit in  scale-to-x  pixels.  If
53              scale-to-y  is  set  to -1, the vertical size will determined by
54              the aspect ratio of the page.
55
56       -scale-to-y number
57              Scales each page vertically to  fit  in  scale-to-y  pixels.  If
58              scale-to-x  is set to -1, the horizontal size will determined by
59              the aspect ratio of the page.
60
61       -scale-dimension-before-rotation
62              Swaps horizontal and vertical size for a rotated (landscape) pdf
63              before scaling instead of after.
64
65       -x number
66              Specifies the x-coordinate of the crop area top left corner
67
68       -y number
69              Specifies the y-coordinate of the crop area top left corner
70
71       -W number
72              Specifies the width of crop area in pixels (default is 0)
73
74       -H number
75              Specifies the height of crop area in pixels (default is 0)
76
77       -sz number
78              Specifies the size of crop square in pixels (sets W and H)
79
80       -cropbox
81              Uses  the  crop  box  rather  than media box when generating the
82              files
83
84       -hide-annotations
85              Do not show annotations
86
87       -mono  Generate a monochrome PBM file (instead of a color PPM file).
88
89       -gray  Generate a grayscale PGM file (instead of a color PPM file).
90
91       -png   Generates a PNG file instead a PPM file.
92
93       -jpeg  Generates a JPEG file instead a PPM file.
94
95       -jpegopt jpeg-options
96              When used with -jpeg, takes a list of  options  to  control  the
97              jpeg compression. See JPEG OPTIONS for the available options.
98
99       -tiff  Generates a TIFF file instead a PPM file.
100
101       -tiffcompression none | packbits | jpeg | lzw | deflate
102              Specifies the TIFF compression type.  This defaults to "none".
103
104       -freetype yes | no
105              Enable  or  disable  FreeType  (a TrueType / Type 1 font raster‐
106              izer).  This defaults to "yes".
107
108       -thinlinemode none | solid | shape
109              Specifies the thin line mode. This defaults to "none".
110
111       "solid":
112              adjust lines with a width less than one pixel to pixel  boundary
113              and paint it with a width of one pixel.
114
115       "shape":
116              adjust  lines with a width less than one pixel to pixel boundary
117              and paint it with a width of one pixel but with a shape in  pro‐
118              portion to its width.
119
120       -aa yes | no
121              Enable or disable font anti-aliasing.  This defaults to "yes".
122
123       -aaVector yes | no
124              Enable or disable vector anti-aliasing.  This defaults to "yes".
125
126       -opw password
127              Specify  the  owner  password  for the PDF file.  Providing this
128              will bypass all security restrictions.
129
130       -upw password
131              Specify the user password for the PDF file.
132
133       -q     Don't print any messages or errors.
134
135       -sep char
136              Specify single character separator between name and page number,
137              default - .
138
139       -forcenum
140              Force page number even if there is only one page.
141
142       -v     Print copyright and version information.
143
144       -h     Print usage information.  (-help and --help are equivalent.)
145

EXIT CODES

147       The Xpdf tools use the following exit codes:
148
149       0      No error.
150
151       1      Error opening a PDF file.
152
153       2      Error opening an output file.
154
155       3      Error related to PDF permissions.
156
157       99     Other error.
158

JPEG OPTIONS

160       When  JPEG output is specified, the -jpegopt option can be used to con‐
161       trol the JPEG compression parameters.  It takes a string  of  the  form
162       "<opt>=<val>[,<opt>=<val>]". Currently the available options are:
163
164       quality
165              Selects  the  JPEG  quality  value. The value must be an integer
166              between 0 and 100.
167
168       progressive
169              Select progressive JPEG output. The  possible  values  are  "y",
170              "n",  indicating  progressive  (yes)  or  non-progressive  (no),
171              respectively.
172
173       optimize
174              Sets whether to compute optimal Huffman coding  tables  for  the
175              JPEG  output,  which will create smaller files but make an extra
176              pass over the data. The value must be "y" or "n", with "y"  per‐
177              forming  optimization,  otherwise the default Huffman tables are
178              used.
179

AUTHOR

181       The pdftoppm software and documentation are copyright 1996-2011 Glyph &
182       Cog, LLC.
183

SEE ALSO

185       pdfdetach(1),  pdffonts(1),  pdfimages(1),  pdfinfo(1),  pdftocairo(1),
186       pdftohtml(1), pdftops(1), pdftotext(1) pdfseparate(1), pdfsig(1), pdfu‐
187       nite(1)
188
189
190
191                                15 August 2011                     pdftoppm(1)
Impressum