Skip to main content
  1. Posts/

Find Which Font is Used in A PDF

·222 words·2 mins·
Table of Contents

Sometimes, we are interested in which font is used for the main text in a PDF. How do we find out?

Use Adobe Acrobat PDF reader
#

Open the PDF in Adobe Acrobat and go to File --> Properties, under the Fonts tab page, a list of fonts embedded in in the document are listed there.

However, there does not seem to be an option to view the font used by a specific text in the document.

You can check the fonts whose encoding is Custom and look them up on Google to see which one is what you want.

Use pdffonts
#

We can also use pdffonts from the poppler package. First, we need to install poppler, I won’t go into detail here, check this post for the details.

After that, we can run pdffonts to find the interested fonts. It helps to narrow to the page where the text occurs. For example, if we want to find font for page 2, run the following command:

# -f: start page
# -l: end page
pdffonts -f 2 -l 2 test.pdf

This will greatly narrow down the range of fonts. You can then quickly find which font the text uses.

References
#

Related

Converting PDF Pages to Images with Poppler
··565 words·3 mins
Converting Markdown to Beautiful PDF with Pandoc
··2799 words·14 mins
Character set, Encoding, Locale, Font and More...
··1743 words·9 mins