Check PDF text against Markdown
check_pdf_textUse this when the user wants to confirm that the text blocks of their Markdown (headings, paragraphs, list items, table cells, code) are present in a PDF in the same order. With an uploaded PDF it checks that file; without one it builds the PDF from the text as make_pdf does and checks it. Reports blocks found in order, missing and out of order. Compares text only: it does not check fonts, layout, images or spelling, and does not edit the PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional: a PDF to check, e.g. the report.pdf downloaded from make_pdf or exported from another app. Without it, the tool builds the PDF from the text and checks that. | |
| text | Yes | The Markdown whose blocks should be found in the PDF, e.g. "# Budget\n\n| Item | Cost |\n|---|---|\n| Rent | 1200 |". | |
| paper | No | Paper size: letter (US, default) or a4. | |
| title | No | Optional document title printed at the top (or on a title page), e.g. "Q3 Field Report". Up to 200 characters. | |
| format | No | markdown (default) reads # headings, lists, tables and so on; plain prints the text as paragraphs with no markup. | |
| margins | No | Page margins: normal (1 in / 25.4 mm, default) or narrow (0.5 in / 12.7 mm). | |
| font_size | No | Body text size in points from 10 to 14, e.g. 11 (default). | |
| title_page | No | true to print the title on its own first page. Needs a title (or uses the first heading). Default false. | |
| page_numbers | No | true (default) prints "page / total" at the bottom of each page except a title page. | |
| table_of_contents | No | true to add a contents page listing headings of levels 1-3 with their page numbers. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| pages | Yes | ||
| result | Yes | ||
| source | Yes | ||
| missing | Yes | ||
| pages_read | Yes | ||
| out_of_order | Yes | ||
| missing_count | No | ||
| blocks_checked | Yes | ||
| out_of_order_count | No | ||
| blocks_found_in_order | Yes |