Skip to main content
Print a PDF file’s document information: its metadata, page count, page size, encryption and PDF version. Mirage implements poppler’s pdfinfo fields, messages and exit codes with its own PDF reader.

Setup

pdfinfo has no account config. It reads PDF files through existing mounts.
For YAML registration, see the CLI overview.

SKILL.md

The SKILL.md an agent reads with pdfinfo installed.
Available commandsThese commands are registered with this shell; --help after a command or subcommand shows its usage.pdfinfo

Supported commands

Run pdfinfo --help for the supported flags and operands. This list is generated from Mirage’s registered command tree.

Usage

The block lists Title, Subject, Keywords, Author, Creator, Producer, CreationDate and ModDate where the document sets them, then Custom Metadata, Metadata Stream, Tagged, UserProperties, Suspects, Form, JavaScript, Pages, Encrypted, the page size and rotation, File size, Optimized and PDF version. Dates print in the session’s TZ, UTC when it is unset. -l lists the size and rotation of pages -f to -l instead of the first page’s; -opw, -upw and -q work as in pdftotext.

Behavior

Differences from poppler

  • -box, -meta, -custom, -js, -struct, -struct-text, -isodates, -rawdates, -dests, -url, -enc, -listenc and -v are not supported.
  • A PDF read from standard input reports a file size of 0 bytes, as poppler does.

License

See compatibility and licenses.