maket_pdf
Export a document to PDF for sharing or print: renders every page at true size, inlines styles, and writes the file to the exports directory. Choose screen, print, or HD quality.
Instructions
When to use: export a document to PDF for sharing or print. One call renders every page in order. For a single-page raster (PNG), use maket_preview snapshot instead.
Renders every page via headless Chromium at the canvas's true mm size, then writes to EXPORTS_DIR/.pdf. Charte CSS is inlined so fonts and tokens render identically to the live preview. The result lists, by number and name, every page whose PDF rendering differs from its preview (element boxes, fonts, colours). quality — screen (96 DPI, smallest), print (150 DPI, default), hd (300 DPI). rows — collection-bound pages: preview (default, follows the page cursor), current (cursor row only), all (one page per row), template (raw placeholders). Check the cursor first with maket_collection action=cursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document name. | |
| rows | No | For pages bound to a collection: preview (default) follows each page's cursor — what the live canvas shows; current = the cursor's row only; all = one page per row (mail merge); template = raw placeholders. | |
| quality | No | DPI preset: screen=96, print=150 (default), hd=300. |