OdfTextDocument with parsed body, styles, metadata,
and settings.
OdfTextDocument 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.
path | Path to the .odt file. |
OdfTextDocument with parsed body, styles, metadata,
and settings.
OdfPackageException on I/O errors, invalid packages, or
non-text document types.
OdfTextDocument 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.
path | Path to the .odt file. |
options | Read options controlling compatibility behavior. |
diagnostics | Diagnostic collector for version and compatibility reports. |
OdfTextDocument with parsed body, styles, metadata,
and settings.