{
    "mode": "man",
    "parameter": "pdffonts",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pdffonts/1/json",
    "generated": "2026-06-17T11:04:35Z",
    "synopsis": "pdffonts [options] [PDF-file]",
    "sections": {
        "NAME": {
            "content": "pdffonts - Portable Document Format (PDF) font analyzer (version 3.03)\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pdffonts [options] [PDF-file]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Pdffonts lists the fonts used in a Portable Document Format (PDF) file along with various in‐\nformation for each font.\n\nIf PDF-file is ´-', it reads the PDF file from stdin.\n\nThe following information is listed for each font:\n\nname   the font name, exactly as given in the PDF file (potentially including a  subset  pre‐\nfix)\n\ntype   the font type – see below for details\n",
            "subsections": [
                {
                    "name": "encoding",
                    "content": "the font encoding\n\nemb    \"yes\" if the font is embedded in the PDF file\n\nsub    \"yes\" if the font is a subset\n\nuni    \"yes\" if there is an explicit \"ToUnicode\" map in the PDF file (the absence of a ToUni‐\ncode map doesn't necessarily mean that the text can't be converted to Unicode)\n"
                },
                {
                    "name": "object ID",
                    "content": "the font dictionary object ID (number and generation)\n\nPDF files can contain the following types of fonts:\n\nType 1\nType 1C – aka Compact Font Format (CFF)\nType 3\nTrueType\nCID Type 0 – 16-bit font with no specified type\nCID Type 0C – 16-bit PostScript CFF font\nCID TrueType – 16-bit TrueType font\n"
                }
            ]
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-f",
                    "content": "Specifies the first page to analyze.\n",
                    "flag": "-f"
                },
                {
                    "name": "-l",
                    "content": "Specifies the last page to analyze.\n",
                    "flag": "-l"
                },
                {
                    "name": "-subst",
                    "content": ""
                },
                {
                    "name": "-opw",
                    "content": "Specify the owner password for the PDF file.  Providing this will bypass all  security\nrestrictions.\n"
                },
                {
                    "name": "-upw",
                    "content": "Specify the user password for the PDF file.\n"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-h -help --help",
                    "content": "",
                    "flag": "-h",
                    "long": "--help"
                }
            ]
        },
        "EXIT CODES": {
            "content": "The Xpdf tools use the following exit codes:\n\n0      No error.\n\n1      Error opening a PDF file.\n\n2      Error opening an output file.\n\n3      Error related to PDF permissions.\n\n99     Other error.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "The pdffonts software and documentation are copyright 1996–2011 Glyph & Cog, LLC.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pdfdetach(1), pdfimages(1), pdfinfo(1), pdftocairo(1), pdftohtml(1), pdftoppm(1), pdftops(1),\npdftotext(1), pdfseparate(1), pdfsig(1), pdfunite(1)\n\n\n\n15 August 2011                                pdffonts(1)",
            "subsections": []
        }
    },
    "summary": "pdffonts - Portable Document Format (PDF) font analyzer (version 3.03)",
    "flags": [
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": "Specifies the first page to analyze."
        },
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": "Specifies the last page to analyze."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specify the owner password for the PDF file. Providing this will bypass all security restrictions."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specify the user password for the PDF file."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": ""
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pdfdetach",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdfdetach/1/json"
        },
        {
            "name": "pdfimages",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdfimages/1/json"
        },
        {
            "name": "pdfinfo",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdfinfo/1/json"
        },
        {
            "name": "pdftocairo",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdftocairo/1/json"
        },
        {
            "name": "pdftohtml",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdftohtml/1/json"
        },
        {
            "name": "pdftoppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdftoppm/1/json"
        },
        {
            "name": "pdftops",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdftops/1/json"
        },
        {
            "name": "pdftotext",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdftotext/1/json"
        },
        {
            "name": "pdfseparate",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdfseparate/1/json"
        },
        {
            "name": "pdfsig",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdfsig/1/json"
        },
        {
            "name": "pdfunite",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdfunite/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Portable Document Format (PDF) file fonts information viewer.",
        "examples": [
            {
                "description": "Print PDF file fonts information",
                "command": "pdffonts {{path/to/file.pdf}}"
            },
            {
                "description": "Specify user password for PDF file to bypass security restrictions",
                "command": "pdffonts -upw {{password}} {{path/to/file.pdf}}"
            },
            {
                "description": "Specify owner password for PDF file to bypass security restrictions",
                "command": "pdffonts -opw {{password}} {{path/to/file.pdf}}"
            },
            {
                "description": "Print additional information on location of the font that will be used when the PDF file is rasterized",
                "command": "pdffonts -loc {{path/to/file.pdf}}"
            },
            {
                "description": "Print additional information on location of the font that will be used when the PDF file is converted to PostScript",
                "command": "pdffonts -locPS {{path/to/file.pdf}}"
            }
        ]
    }
}