createTextTemplate

fnOdfTextDocument createTextTemplate(TextNode[] nodes...)

Creates a new OdfTextDocument as a text template (.ott).

The document is configured with the template MIME type. Content and styles are identical to regular text documents.

Parameters

nodesTop-level body nodes (paragraphs, headings, lists, etc.).

Returns

A new OdfTextDocument configured as a template.