pdffonts(1)

πŸ“¦
version 26.10.0 Β· 2 versions
  • 26.10.0 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 4.06 Β· nixpkgs unstable
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so pdffonts(1) is part of the General Commands Manual πŸ’… and its whole job is being a Portable Document Format (PDF) font analyzer, version 3.03 πŸŽ€

🧚 SYNOPSIS 🧚

pdffonts [options] [PDF-file]

πŸ’– DESCRIPTION πŸ’–

okay bestie, pdffonts lists every font used in a Portable Document Format (PDF) file, plus a bunch of info about each one πŸ¦‹

if PDF-file is ´-', it reads the PDF from stdin instead 🫢

here's what you get for each font:

  • name β€” the font name exactly as it appears in the PDF, subset prefix and all if it has one ✨
  • type β€” the font type (more on those below) 🌸
  • encoding β€” the font encoding πŸ’œ
  • emb β€” "yes" if the font is embedded in the PDF πŸ”₯
  • sub β€” "yes" if the font is a subset πŸ“
  • uni β€” "yes" if there's an explicit "ToUnicode" map in the PDF. ngl, no ToUnicode map doesn't automatically mean the text can't be converted to Unicode, so don't panic πŸ™ˆ
  • object ID β€” the font dictionary object ID, as a number and a generation 🌈

PDF files can hold these font types:

  • Type 1
  • Type 1C β€” aka Compact Font Format (CFF) πŸ‘‘
  • Type 3
  • TrueType
  • CID Type 0 β€” 16-bit font with no specified type πŸ¦‹
  • CID Type 0C β€” 16-bit PostScript CFF font ⭐
  • CID TrueType β€” 16-bit TrueType font πŸ’…

πŸŽ€ OPTIONS πŸŽ€

  • -f number β€” picks the first page to analyze 🌸
  • -l number β€” picks the last page to analyze 🌸
  • -subst β€” lists the substitute fonts that poppler will use for fonts that aren't embedded ✨
  • -opw password β€” sets the owner password for the PDF. heads up, giving this bypasses all security restrictions, so it's giving main character energy but also a little risky πŸ”₯
  • -upw password β€” sets the user password for the PDF πŸ”
  • -v β€” prints copyright and version info πŸ’œ
  • -h β€” prints usage info. -help and --help do the exact same thing 🫢

🚦 EXIT CODES 🚦

the Xpdf tools use these exit codes:

  • 0 β€” no error, we're literally good πŸ’–
  • 1 β€” couldn't open a PDF file πŸ™ˆ
  • 2 β€” couldn't open an output file πŸ™ˆ
  • 3 β€” error related to PDF permissions πŸ”’
  • 99 β€” some other error πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

the pdffonts software and documentation are copyright 1996–2011 Glyph & Cog, LLC. iconic history, no cap ✨

🌈 SEE ALSO 🌈

okay bestie, check out these friends too:


bye bestie 🫢 that's the pdffonts(1) tea, last updated 15 August 2011 πŸ’–βœ¨

πŸ“¦ where this page comes from