Read a PDF's pages, properties and form
get_pdf_infoReads a PDF's page count, page sizes, password protection, document properties and form fields without changing it. Use it to get field names before filling forms or to check pages before redacting or splitting.
Instructions
Reads a PDF without changing it: the page count and the size of every page, whether it is password-protected, its document properties, and its form, with every field by its full name, label, type, value and the options it takes. Read it before fill_pdf_form, which takes the fields by these names, and before redact_pdf or split_pdf, which work on these pages. Pass exactly one PDF: source, a render or library file of the workspace; path, a file on this machine; or file_base64. Free on every plan; it creates no render, and an uploaded PDF is read and not kept.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_pdf_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path of a PDF on this machine, up to 100 MB; sent with the request and not kept | |
| source | No | A PDF of the workspace: the rnd_ id of a PDF render, or a PDF of the file library by name (such as terms.pdf) or fil_ id | |
| file_name | No | Name of the PDF given as file_base64 or path, e.g. contract.pdf; the results are named after it | |
| file_base64 | No | The PDF itself, base64 encoded, up to 20 MB; sent with the request and not kept |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | No | The form; null when the file needs a password to open | |
| pages | Yes | The size of every page, in points (72 an inch) and millimetres | |
| source | No | The render id or library file name the PDF came from | |
| metadata | Yes | Title, author, subject, producer and creator; null when unset | |
| encrypted | Yes | Whether the file is password-protected | |
| page_count | Yes |