Linux tips: How to check which font is used in PDF
Q: I want to know what fonts are used in the PDF file or what fonts are embedded. Is there a tool in Linux that can check which font is used in the PDF document?
To check whether the PDF file contains or uses any font, you can use the command line tool pdffonts, which is a PDF Font analysis tool. Pdffonts is a part of the Poppler PDF toolkit.
Install the PDF tool set to Linux
To install Poppler to Debian, Ubuntu or Linux Mint:
- $ Sudo apt-get install poppler-utils
To install a PDF tool set to Fedora, CentOS or RHEL:
- $ Sudo yum install poppler-utils
Check PDF Font
Pdffonts can list all fonts used in PDF documents. The basic usage of pdffonts is as follows.
- $ Pdffonts dockers
The pdffonts tool displays various information about each used font, such as the font name/type, or whether the font is embedded.
If a PDF document contains multiple pages, you can use the "-f" (homepage) and "-l" (last page) options to limit the font scan page range. For example, if you want to find out which font is used on 5-10 pages of a document, run the following command:
- $ Pdffonts-f 5-l 10 dockers
Download, install, and configure Ubuntu 14.04
Ubuntu 14.04 system:
Ubuntu 14.04 text tutorial on hard drive installation in Windows 7
This article permanently updates the link address: