Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

PDFFonts

📅 2015-Mar-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

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:

Tried with: Poppler-Utils 0.24.5 and Ubuntu 14.04