{
    "mode": "man",
    "parameter": "pdfinfo",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pdfinfo/1/json",
    "generated": "2026-06-15T14:39:02Z",
    "synopsis": "pdfinfo [options] [PDF-file]",
    "sections": {
        "NAME": {
            "content": "pdfinfo - Portable Document Format (PDF) document information extractor (version 3.03)\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pdfinfo [options] [PDF-file]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Pdfinfo  prints  the  contents  of the ´Info' dictionary (plus some other useful information)\nfrom a Portable Document Format (PDF) file.\n\nIf PDF-file is ´-', it reads the PDF file from stdin.\n\nThe ´Info' dictionary contains the following values:\n\ntitle\nsubject\nkeywords\nauthor\ncreator\nproducer\ncreation date\nmodification date\n\nIn addition, the following information is printed:\n\ncustom metadata (yes/no)\nmetadata stream (yes/no)\ntagged (yes/no)\nuserproperties (yes/no)\nsuspects (yes/no)\nform (AcroForm / XFA / none)\njavascript (yes/no)\npage count\nencrypted flag (yes/no)\nprint and copy permissions (if encrypted)\npage size\nfile size\nlinearized (yes/no)\nPDF version\nmetadata (only if requested)\n\nThe options -listenc, -meta, -js, -struct, and -struct-text only print the requested informa‐\ntion.  The  'Info'  dictionary  and  related data listed above is not printed. At most one of\nthese five options may be used.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-f",
                    "content": "Specifies the first page to examine.  If multiple pages are requested using  the  \"-f\"\nand \"-l\" options, the size of each requested page (and, optionally, the bounding boxes\nfor each requested page) are printed.  Otherwise, only page one is examined.\n",
                    "flag": "-f"
                },
                {
                    "name": "-l",
                    "content": "Specifies the last page to examine.\n",
                    "flag": "-l"
                },
                {
                    "name": "-box",
                    "content": ""
                },
                {
                    "name": "-meta",
                    "content": "Catalog object.)\n"
                },
                {
                    "name": "-custom",
                    "content": "Prints custom and standard metadata.\n"
                },
                {
                    "name": "-js",
                    "content": ""
                },
                {
                    "name": "-struct",
                    "content": "Prints the logical document structure of a Tagged-PDF file.\n"
                },
                {
                    "name": "-struct-text",
                    "content": "Print  the  textual  content  along  with the document structure of a Tagged-PDF file.\nNote that extracting text this  way  might  be  slow  for  big  PDF  files.   (Implies\n-struct.)\n"
                },
                {
                    "name": "-url",
                    "content": "rently, this is limited to Annotations. Note: only URLs referenced by the PDF  objects\nsuch  as  Link  Annotations  are  listed.  pdfinfo does not attempt to extract strings\nmatching http://... from the text content.\n"
                },
                {
                    "name": "-isodates",
                    "content": "Prints dates in ISO-8601 format (including the time zone).\n"
                },
                {
                    "name": "-rawdates",
                    "content": "Prints the raw (undecoded) date strings, directly from the PDF file.\n"
                },
                {
                    "name": "-dests",
                    "content": "\"-l\", only destinations in the page range are listed.\n"
                },
                {
                    "name": "-enc",
                    "content": "Sets the encoding to use for text output. This defaults to \"UTF-8\".\n"
                },
                {
                    "name": "-listenc",
                    "content": "Lits the available encodings\n"
                },
                {
                    "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 pdfinfo software and documentation are copyright 1996-2011 Glyph & Cog, LLC.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pdfdetach(1),   pdffonts(1),   pdfimages(1),   pdftocairo(1),   pdftohtml(1),    pdftoppm(1),\npdftops(1), pdftotext(1) pdfseparate(1), pdfsig(1), pdfunite(1)\n\n\n\n15 August 2011                                 pdfinfo(1)",
            "subsections": []
        }
    },
    "summary": "pdfinfo - Portable Document Format (PDF) document information extractor (version 3.03)",
    "flags": [
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": "Specifies the first page to examine. If multiple pages are requested using the \"-f\" and \"-l\" options, the size of each requested page (and, optionally, the bounding boxes for each requested page) are printed. Otherwise, only page one is examined."
        },
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": "Specifies the last page to examine."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Catalog object.)"
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Prints custom and standard metadata."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Prints the logical document structure of a Tagged-PDF file."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print the textual content along with the document structure of a Tagged-PDF file. Note that extracting text this way might be slow for big PDF files. (Implies -struct.)"
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "rently, this is limited to Annotations. Note: only URLs referenced by the PDF objects such as Link Annotations are listed. pdfinfo does not attempt to extract strings matching http://... from the text content."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Prints dates in ISO-8601 format (including the time zone)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Prints the raw (undecoded) date strings, directly from the PDF file."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "\"-l\", only destinations in the page range are listed."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Sets the encoding to use for text output. This defaults to \"UTF-8\"."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Lits the available encodings"
        },
        {
            "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": "pdffonts",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdffonts/1/json"
        },
        {
            "name": "pdfimages",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pdfimages/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 information viewer.",
        "examples": [
            {
                "description": "Print PDF file information",
                "command": "pdfinfo {{path/to/file.pdf}}"
            },
            {
                "description": "Specify user password for PDF file to bypass security restrictions",
                "command": "pdfinfo -upw {{password}} {{path/to/file.pdf}}"
            },
            {
                "description": "Specify owner password for PDF file to bypass security restrictions",
                "command": "pdfinfo -opw {{password}} {{path/to/file.pdf}}"
            }
        ]
    }
}