Debian Codegraph @

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

raw
1 pdftopng(1) General Commands Manual pdftopng(1)
2
3
4
5 NAME
6 pdftopng - Portable Document Format (PDF) to Portable Network Graphics
7 (PNG) converter (version 4.06)
8
9 SYNOPSIS
10 pdftopng [options] PDF-file PNG-root
11
12 DESCRIPTION
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
22 CONFIGURATION FILE
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
29 OPTIONS
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 -cfg config-file
80 Read config-file in place of ~/.xpdfrc or the system-wide config
81 file.
82
83 -v Print copyright and version information.
84
85 -h Print usage information. (-help and --help are equivalent.)
86
87 EXIT CODES
88 The Xpdf tools use the following exit codes:
89
90 0 No error.
91
92 1 Error opening a PDF file.
93
94 2 Error opening an output file.
95
96 3 Error related to PDF permissions.
97
98 98 Out of memory.
99
100 99 Other error.
101
102 AUTHOR
103 The pdftopng software and documentation are copyright 1996-2025 Glyph &
104 Cog, LLC.
105
106 SEE ALSO
107 xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdf-
108 fonts(1), pdfdetach(1), pdftoppm(1), pdfimages(1), xpdfrc(5)
109 http://www.xpdfreader.com/
110
111
112
113 14 Nov 2025 pdftopng(1)