PDF info
pdf_infoInspect a local PDF to report its page count, file size, first-page dimensions in points, and password protection without modifying the file.
Instructions
Reads a PDF and reports its page count, file size, first page size in points, and whether it is password-protected. Changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a PDF file, or one starting with ~/. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | Yes | Null when the file is encrypted in a way that hides its page list | |
| encrypted | Yes | ||
| first_page | Yes | ||
| file_size_bytes | Yes |