pdf_get_metadata
Retrieve PDF metadata including page count, version, encryption status, page size, title, author, producer, and font names before using page tools.
Instructions
Document-level facts: page count, PDF version, encryption flag, first-page size, title/author/producer and the font names the pages reference.
Use this first to learn how many pages a document has before calling the page tools.
Returns the extractor's metadata dictionary unchanged (pages, version,
encrypted, page_w, page_h, title, author, producer, fonts).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the PDF: absolute, or relative to the server process working directory. Any readable regular file is accepted; the .pdf suffix is not required. | |
| password | No | Password for an encrypted PDF. Omit or pass null for unprotected documents. |