export_pdf
Export active or all open InDesign documents to PDF, with options for page ranges, presets, and overwrite control.
Instructions
Exports one or all open documents as PDF.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"outputDir": "<outputDir>"
},
"name": "export_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | 'active' for the active document, 'all' for all documents, or a specific name | |
| outputDir | Yes | Destination folder for PDF files | |
| overwrite | No | Overwrite existing files | |
| pageRange | No | Page range (for example, '1-5,8,10-12'). Optional. | |
| pdfPreset | No | PDF preset name (for example, '[High Quality Print]') |