commands.sh

pdf-parser

all

Identify fundamental elements of a PDF file without rendering it.

More info →

Options (3)

-a, --statsboolean

Display statistics for a PDF file

Example: pdf-parser {{[-a|--stats]}} {{path/to/file.pdf}}
-t, --typeboolean

Display objects of a specific type (`/Font`, `/URI`, ...) in a PDF file

Example: pdf-parser {{[-t|--type]}} {{/object_type}} {{path/to/file.pdf}}
-s, --searchboolean

Search for strings in indirect objects

Example: pdf-parser {{[-s|--search]}} {{search_string}} {{path/to/file.pdf}}

Examples (3)

Display statistics for a PDF file

pdf-parser [-a|--stats] path/to/file.pdf

Display objects of a specific type (`/Font`, `/URI`, ...) in a PDF file

pdf-parser [-t|--type] /object_type path/to/file.pdf

Search for strings in indirect objects

pdf-parser [-s|--search] search_string path/to/file.pdf
made by @shridhargupta | data from tldr-pages