check_pdf_layout
Analyze PDF typography and layout: per-character font metrics, spacing, margins, collisions, and font substitution flags. Identifies formatting anomalies in generated documents.
Instructions
Per-character font/size/coordinates, computed baseline spacing, margin/indent consistency, font inventory, declared-vs-embedded font substitution detection, and intra-line horizontal collision flags (tab-stop-overflow signature). Facts and anomaly flags only — never a verdict on correctness (see the server's global instructions).
Accepts the document either as a filesystem path OR as inline
content_base64 (with filename required alongside it) — for
a .pdf that only exists in the conversation rather than saved
to disk. Exactly one of the two input forms must be given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| filename | No | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| flags | Yes | ||
| format | Yes | ||
| margins | Yes | ||
| line_count | Yes | ||
| page_count | Yes | ||
| font_inventory | Yes |