← 返回命令列表

Linux command

pdffonts 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List fonts in PDF

pdffonts [document.pdf]

List fonts with page range

pdffonts -f [1] -l [10] [document.pdf]

Substitute font names

pdffonts -subst [document.pdf]

List from specific page

pdffonts -f [5] [document.pdf]

说明

pdffonts lists fonts used in PDF documents. It shows font names, types, and embedding status. Embedded fonts are included in the PDF, ensuring consistent display regardless of installed fonts. Non-embedded fonts rely on system fonts, which may cause appearance differences. Subset fonts contain only characters used in the document, reducing file size. Full fonts include all glyphs. Font types include Type 1 (PostScript), TrueType, CID fonts (for Asian languages), and Type 3 (bitmap/user-defined). Unicode mapping indicates whether text can be reliably extracted or searched. Missing Unicode mapping affects copy/paste and accessibility. Page range options examine specific sections without processing the entire document.

参数

-f _PAGE_
First page to examine.
-l _PAGE_
Last page to examine.
-subst
Show font substitutions.
-opw _PASSWORD_
Owner password.
-upw _PASSWORD_
User password.
-v
Print version.
-h
Print help.

FAQ

What is the pdffonts command used for?

pdffonts lists fonts used in PDF documents. It shows font names, types, and embedding status. Embedded fonts are included in the PDF, ensuring consistent display regardless of installed fonts. Non-embedded fonts rely on system fonts, which may cause appearance differences. Subset fonts contain only characters used in the document, reducing file size. Full fonts include all glyphs. Font types include Type 1 (PostScript), TrueType, CID fonts (for Asian languages), and Type 3 (bitmap/user-defined). Unicode mapping indicates whether text can be reliably extracted or searched. Missing Unicode mapping affects copy/paste and accessibility. Page range options examine specific sections without processing the entire document.

How do I run a basic pdffonts example?

Run `pdffonts [document.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _PAGE_ do in pdffonts?

First page to examine.