PDFFonts

PDFFonts is a useful tool to view information about the fonts in a PDF file. Typically, you need to bother with this only if you are having problems with submitting a PDF online or printing it.

This tool ships along with Poppler. To install it:

$ sudo apt install poppler-utils

Usage is straightforward. It is illustrated here with a sample PDF file:

$ pdffonts foo.pdf 
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
MMFXPR+NimbusSanL-Bold               Type 1            Custom           yes yes no      25  0
KPMIUD+NimbusRomNo9L-ReguItal        Type 1            Custom           yes yes no      31  0
Arial,Bold                           TrueType          WinAnsi          no  no  no      77  0
Times New Roman,Bold                 TrueType          WinAnsi          no  no  no      78  0
ABCDEE+Calibri                       TrueType          WinAnsi          yes yes no      79  0
NHFWQZ+CMMI10                        Type 1            Builtin          yes yes no     160  0
COBEQK+CMMI7                         Type 1            Builtin          yes yes no     166  0
FOCRQR+CMR12                         Type 1            Custom           yes yes no     175  0
UJTTFG+CMR8                          Type 1            Builtin          yes yes no     266  0
DejaVuSans                           Type 3            Custom           yes no  no     283  0
SBITTL+CMMI8                         Type 1            Builtin          yes yes no     331  0
Cmr10                                Type 3            Custom           yes no  no     475  0
DejaVuSans                           Type 3            Custom           yes no  no     958  0

It displays various attributes of the font:

  • Name of the font
  • Type of the font (Type 1, Type 3 or TrueType)
  • The encoding (Builtin, WinAnsi or Custom)
  • Whether the font is embedded in the PDF
  • ID of the object in the PDF which uses this font

Tried with: Poppler-Utils 0.24.5 and Ubuntu 14.04

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s