pdf_analyze_fonts
Analyze fonts in a PDF to retrieve per-font usage statistics, including character counts, pages, size ranges, and colors, helping identify prominent text without extracting entire pages.
Instructions
Per-font usage statistics: character count, pages, size range and colours.
Omit both bounds to analyse the whole document. Returns {'fonts': [...]}
sorted by charCount descending; each entry has fontname, pages,
charCount, sizeMin, sizeMax and colors. Use it to find which
text is prominent without extracting whole pages.
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. | |
| end_page | No | Last page to analyse (1-based, inclusive). Defaults to the last page. | |
| password | No | Password for an encrypted PDF. Omit or pass null for unprotected documents. | |
| start_page | No | First page to analyse (1-based, inclusive). Defaults to page 1. |