pdfinfo: Find Out PDF File Information From A UNIX / Linux Shell Prompt

The pdfinfo command can be used in a UNIX / Linux shell prompt to display various information about a PDF file. Here are the steps to use pdfinfo:

  1. Open a terminal window and navigate to the directory containing the PDF file you want to inspect.
  2. Run the following command, replacing “filename.pdf” with the name of the PDF file you want to inspect:
    pdfinfo filename.pdf
  3. Press Enter to execute the command. The pdfinfo command will display a summary of information about the PDF file, including the following:
    • Title
    • Author
    • Creator
    • Producer
    • Creation date
    • Modification date
    • Page count
    • Page size
    • File size

    Here is an example output:

    Title: Example PDF Document
    Author: John Doe
    Creator: Microsoft Word 2013
    Producer: Microsoft Word 2013
    CreationDate: Mon May 17 14:36:44 2021
    ModDate: Mon May 17 14:36:44 2021
    Tagged: no
    UserProperties: no
    Suspects: no
    Form: none
    JavaScript: no
    Pages: 3
    Encrypted: no
    Page size: 612 x 792 pts (letter)
    File size: 47827 bytes
    Optimized: no
    PDF version: 1.5

That’s it! You can use the pdfinfo command to quickly obtain information about a PDF file from the command line.

Leave a Comment