inspect_pdf_fonts
Search for text in a PDF and retrieve its font name, size, and coordinates to ensure replacements match the document style.
Instructions
Search for specific text terms and report their font properties.
Use this tool to understand the exact font styling of text you want to replace. This ensures replacements will match the surrounding document style as closely as possible.
The tool searches through all pages and returns matches with:
Page number where the term was found
The search term that matched
Surrounding context (first 100 characters)
Font name (e.g., "Helvetica-Bold", "Times-Roman")
Font size in points
Origin coordinates for precise positioning
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Absolute path to the PDF file to inspect. | |
| terms | Yes | List of text strings to search for (1-50 terms). Each term is searched as a substring. | |
| 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 |