openOdfTextDocument

fnOdfTextDocument openOdfTextDocument(string path)

Opens an ODT text document from a file path.

Reads and parses content.xml, styles.xml, meta.xml, settings.xml, and the manifest from the ODF package.

Parameters

pathPath to the .odt file.

Returns

A typed OdfTextDocument with parsed body, styles, metadata,

and settings.

Throws

OdfPackageException on I/O errors, invalid packages, or

non-text document types.

fnOdfTextDocument openOdfTextDocument(string path, OdfReadOptions options, ref OdfDiagnosticCollector diagnostics)

Opens an ODT text document with read options and version-aware compatibility reporting.

When the document's ODF version differs from the compatibility target, diagnostics are reported to the collector but the document is still loaded safely.

Parameters

pathPath to the .odt file.
optionsRead options controlling compatibility behavior.
diagnosticsDiagnostic collector for version and compatibility reports.

Returns

A typed OdfTextDocument with parsed body, styles, metadata,

and settings.