To check what fonts are included or used in a PDF file, you can use a command-line utility called pdffonts, which is a PDF font analyzer tool. pdffonts is a part of Poppler PDF utilities package.
Install PDF Utilities on Linux
To install Poppler on Debian, Ubuntu or Linux Mint:
To install PDF Utilities on Fedora, CentOS or RHEL:
Check PDF Fonts
pdffonts can list all the fonts used in a PDF document. The basic usage of pdffonts is as follows.
The pdffonts tool shows various information about each font used, such as font name/type, or whether or not a font is embedded, etc.
In case of a multi-page PDF document, you can limit font scanning for a range of pages with "-f" (first page), and "-l" (last page) options. For example, if you want to find out which fonts are used in pages 5-10 of a document, run this:
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!