Make PDF and Word file
make_pdfUse this when the user wants Markdown or plain text (a chat answer, notes, a report, a README) as a downloadable PDF and an editable Word (DOCX) file. Reads ATX headings 1-4, paragraphs, bold, italic, inline code, fenced code blocks, bullet and numbered lists (2 levels), pipe tables, links, block quotes and rules; other Markdown prints as plain text and is listed in notes. Options: Letter or A4, normal or narrow margins, 10-14 pt text, title page, contents page, page numbers. Returns both links, the page count, the outline with page numbers, and a read-back check of the PDF text. Does not write or edit content, embed images, or convert existing files (Word, HTML, scans). Links expire in about 1 hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The Markdown or plain text to typeset, up to 200,000 characters, e.g. "# Trip notes\n\n- Day 1: Lisbon\n- Day 2: Porto". | |
| 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 |
|---|---|---|---|
| check | Yes | ||
| notes | Yes | ||
| pages | Yes | ||
| paper | Yes | ||
| title | Yes | ||
| counts | Yes | ||
| headings | Yes | ||
| downloads | Yes | ||
| file_name | Yes | ||
| font_size | Yes | ||
| headings_count | No | ||
| expires_in_hours | Yes | ||
| replaced_characters | Yes |