Debian Codegraph @

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

raw
1 .\" Copyright 1999-2025 Glyph & Cog, LLC
2 .TH pdffonts 1 "14 Nov 2025"
3 .SH NAME
4 pdffonts \- Portable Document Format (PDF) font analyzer (version
5 4.06)
6 .SH SYNOPSIS
7 .B pdffonts
8 [options]
9 .RI [ PDF-file ]
10 .SH DESCRIPTION
11 .B Pdffonts
12 lists the fonts used in a Portable Document Format (PDF) file along
13 with various information for each font.
14 .PP
15 The following information is listed for each font:
16 .TP
17 .B name
18 the font name, exactly as given in the PDF file (potentially including
19 a subset prefix)
20 .TP
21 .B type
22 the font type -- see below for details
23 .TP
24 .B emb
25 "yes" if the font is embedded in the PDF file
26 .TP
27 .B sub
28 "yes" if the font is a subset
29 .TP
30 .B uni
31 "yes" if there is an explicit "ToUnicode" map in the PDF file (the
32 absence of a ToUnicode map doesn't necessarily mean that the text
33 can't be converted to Unicode)
34 .TP
35 .B prob
36 "X" if this font is likely to be problematic when converting text to
37 Unicode
38 .TP
39 .B object ID
40 the font dictionary object ID (number and generation)
41 .TP
42 .B location
43 the font location (see the
44 .B \-loc
45 and
46 .B \-locPS
47 options).
48 .PP
49 PDF files can contain the following types of fonts:
50 .PP
51 .RS
52 Type 1
53 .RE
54 .RS
55 Type 1C -- aka Compact Font Format (CFF)
56 .RE
57 .RS
58 Type 1C (OT) -- OpenType with 8-bit CFF data
59 .RE
60 .RS
61 Type 3
62 .RE
63 .RS
64 TrueType
65 .RE
66 .RS
67 TrueType (OT) -- OpenType with 8-bit TrueType data
68 .RE
69 .RS
70 CID Type 0 -- 16-bit font with no specified type
71 .RE
72 .RS
73 CID Type 0C -- 16-bit PostScript CFF font
74 .RE
75 .RS
76 CID Type 0C (OT) -- OpenType with CID CFF data
77 .RE
78 .RS
79 CID TrueType -- 16-bit TrueType font
80 .RE
81 .RS
82 CID TrueType (OT) -- OpenType with CID TrueType data
83 .RE
84 .SH CONFIGURATION FILE
85 Pdffonts reads a configuration file at startup. It first tries to
86 find the user's private config file, ~/.xpdfrc. If that doesn't
87 exist, it looks for a system-wide config file, typically /etc/xpdfrc
88 (but this location can be changed when pdffonts is built). See the
89 .BR xpdfrc (5)
90 man page for details.
91 .SH OPTIONS
92 Many of the following options can be set with configuration file
93 commands. These are listed in square brackets with the description of
94 the corresponding command line option.
95 .TP
96 .BI \-f " number"
97 Specifies the first page to analyze.
98 .TP
99 .B \-loc
100 Shows additional information on the location of the font that will be
101 used when the PDF file is rasterized (with xpdf, pdftoppm, etc.).
102 .TP
103 .B \-locPS
104 Shows additional information on the location of the font that will be
105 used when the PDF file is converted to PostScript (with pdftops).
106 .TP
107 .BI \-l " number"
108 Specifies the last page to analyze.
109 .TP
110 .BI \-opw " password"
111 Specify the owner password for the PDF file. Providing this will
112 bypass all security restrictions.
113 .TP
114 .BI \-upw " password"
115 Specify the user password for the PDF file.
116 .TP
117 .BI \-cfg " config-file"
118 Read
119 .I config-file
120 in place of ~/.xpdfrc or the system-wide config file.
121 .TP
122 .B \-v
123 Print copyright and version information.
124 .TP
125 .B \-h
126 Print usage information.
127 .RB ( \-help
128 and
129 .B \-\-help
130 are equivalent.)
131 .SH EXIT CODES
132 The Xpdf tools use the following exit codes:
133 .TP
134 0
135 No error.
136 .TP
137 1
138 Error opening a PDF file.
139 .TP
140 2
141 Error opening an output file.
142 .TP
143 3
144 Error related to PDF permissions.
145 .TP
146 98
147 Out of memory.
148 .TP
149 99
150 Other error.
151 .SH AUTHOR
152 The pdffonts software and documentation are copyright 1996-2025 Glyph
153 & Cog, LLC.
154 .SH "SEE ALSO"
155 .BR xpdf (1),
156 .BR pdftops (1),
157 .BR pdftotext (1),
158 .BR pdftohtml (1),
159 .BR pdfinfo (1),
160 .BR pdfdetach (1),
161 .BR pdftoppm (1),
162 .BR pdftopng (1),
163 .BR pdfimages (1),
164 .BR xpdfrc (5)
165 .br
166 .B http://www.xpdfreader.com/