Convert ODM master document to PDF
odm_to_pdfConvert .odm master documents to PDF by resolving each external chapter from explicit mappings or a directory, failing if any chapter is missing.
Instructions
Converts a .odm (ODF master document) to PDF. A .odm never carries its own chapters' content inline -- every text:section is a bare external reference to a standalone .odt file -- so each chapter the master document declares must resolve through chapters (an explicit href -> document override) and/or chaptersDir (a directory searched by the href's own basename), checked in that order. A chapter left unresolved by both fails the whole conversion, naming every unresolved href.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Where to write the resulting PDF. Omit to receive the bytes inline, base64-encoded. | |
| source | Yes | The .odm master document to convert. | |
| chapters | No | Explicit href -> chapter document overrides. Checked before chaptersDir for a given href. | |
| chaptersDir | No | Directory to search for each unresolved chapter href, matched by the href's own basename. Checked after chapters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||