r7_pdf_inspect
Measure a PDF's text fidelity: inventory pages/fonts, count drawn glyphs, test text extraction, and return a text/outlined/mixed verdict; optionally repair malformed ToUnicode CMap entries.
Instructions
Measure the text fidelity of a PDF: page and font inventory, how many glyphs are really drawn by text operators, how many glyph fills painted nothing, whether the text is extractable, and a verdict (text/outlined/mixed). Use it to prove a PDF export kept its text instead of silently losing it; set repair to fix malformed ToUnicode CMap entry counts that make R7-exported body text copy out as garbage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "r7_pdf_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repair | No | Repair malformed ToUnicode CMap entry counts in place (rewrites filePath) before reporting. Default false. | |
| filePath | Yes | Path to the PDF file to inspect. |