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