Export formatted report (HTML / PDF)
export_reportExport a full country report or any tool's markdown output as a self-contained, print-ready HTML or PDF document with embedded fonts, SVG charts, citations, and extraction manifest.
Instructions
Export a print-ready, self-contained document: the full country report (pass country) or any tool’s markdown output (pass markdown, e.g. from trend_analysis or durable_solutions). format "html" (default) = one file with embedded Arabic/Latin font, inline SVG charts, citations and the extraction manifest; "pdf" = the same rendered by a local headless Chrome/Chromium/Edge (falls back to HTML with an explanation if none is available). Arabic output (locale "ar") is right-to-left. Returns a resource link (export://…) unless inline is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title (markdown mode) | |
| format | No | Output format (default html) | |
| inline | No | Embed the file in the result instead of returning a resource link (default false) | |
| locale | No | Language of the human-readable text output: "en" (default) or "ar" (Modern Standard Arabic, right-to-left). Structured JSON fields, ISO3 codes and dataset ids stay in English either way. | |
| country | No | Country for a full country report (name or ISO3). Omit when passing markdown. | |
| year_to | No | Last year of the range (default: latest available) | |
| markdown | No | Markdown to format instead of a country report (e.g. a tool’s text output) | |
| year_from | No | First year of the range (default: 10 years back) | |
| include_manifest | No | Append the extraction manifest (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | ||
| bytes | Yes | ||
| title | Yes | ||
| format | Yes | ||
| locale | Yes | ||
| sha256 | Yes | ||
| filename | Yes | ||
| manifest | No | ||
| mime_type | Yes | ||
| pdf_engine | No | ||
| fallback_reason | No | ||
| requested_format | Yes |