Read PDF metadata
pdf_metadataRead a PDF's page count, dimensions, rotation, document info and form fields before splitting, rotating or filling it. Read-only; never modifies the file.
Instructions
Read a PDF's document info: page_count, per-page width/height (points) and rotation, title, author, subject, keywords, creator, producer, creation_date, modification_date (ISO 8601, null when absent), whether it was encrypted, and has_form / form_field_count. Call this to learn a document's size and shape before splitting, rotating or filling. Read-only: the PDF is fetched or read but never modified.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pdf_path": "<pdf_path>"
},
"name": "pdf_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | Password to open the input, only needed for a user-password PDF (owner-locked files with an empty user password open without it). | |
| pdf_path | Yes | PDF source: a path to a .pdf file inside the allowed directories (PDFOPS_ROOT, default the working directory), an https:// URL, or a data:application/pdf;base64,… URI. Use a URL or data URI when this server runs remotely (Smithery, hosted gateways) where local paths do not exist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| title | Yes | ||
| author | Yes | ||
| creator | Yes | ||
| subject | Yes | ||
| has_form | Yes | ||
| keywords | Yes | ||
| producer | Yes | ||
| encrypted | Yes | ||
| page_count | Yes | ||
| creation_date | Yes | ||
| form_field_count | Yes | ||
| modification_date | Yes | ||
| form_field_count_capped | No | True when the form-field count stopped at the 2,000 cap, so the real number may be higher |