read_pdf_structure
Extract complete PDF structure including page dimensions, text elements with coordinates, font details, and colors. Use to analyze layout before editing.
Instructions
Extract the complete structural content of a PDF document.
Returns detailed information about each page including:
Page dimensions (width, height)
All text elements with their:
Exact text content
Bounding box coordinates (x0, y0, x1, y1)
Origin point for text insertion
Font name and size
Color value
Use this tool FIRST to understand the document layout before making any modifications. The output helps identify exact text to target for replacements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Absolute path to the PDF file to analyze. Must be a valid, accessible PDF file. | |
| password | No | Optional password if the PDF is encrypted. | |
| max_file_size | No | Maximum allowed input file size in bytes (default: 100 MB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |