recipe_flowTextStory
Flow a text file across InDesign pages by creating and linking frames, adding pages as needed, then report where the story ends or if text overflows.
Instructions
Place a text file and flow it across as many pages as it needs in one call — creates the frames, links them, adds pages when it runs out, and reports where the story ended and whether it still overflows
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Custom timeout in ms | |
| filePath | Yes | Absolute path to the text file to place (.txt, .rtf, .docx, … or a text-only .indd) | |
| maxPages | No | Hard cap on frames created; if reached, the remaining overset text is reported, not thrown | |
| pageIndex | No | Page to start the story on (0-based) | |
| 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 |