recipe_exportPreset
Export the active InDesign document to PDF with a named export preset. Validates the preset name first and, if invalid, returns the list of valid presets.
Instructions
Export the active document to PDF using a named PDF export preset in one call — validates the preset first and, if it is wrong, fails with the list of valid preset names
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Custom timeout in ms | |
| filePath | Yes | Absolute path of the PDF to write | |
| presetName | Yes | Name of an existing PDF export preset, e.g. "[Press Quality]" — the error lists the valid names | |
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| documentIndex | No | Index into the open-document list (see document_getState); defaults to the front document |