Files
cheatsheet-tldr/tldr/pdf-parser
2025-12-20 00:20:53 +00:00

22 lines
597 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pdf-parser
> Identify fundamental elements of a PDF file without rendering it.
> More information: <https://blog.didierstevens.com/programs/pdf-tools/>.
- 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}}`