Skip to main content

Module odf

Module odf 

Source
Expand description

OpenDocument text and presentations (.odt, .odp).

ODF puts the content in content.xml and the metadata in meta.xml. Structure is explicit — text:h carries its own outline level, text:list nests directly — but character styling is not: a text:span names a style whose weight and slant live in office:automatic-styles, so that table is read first.

Structs§

OdfExtractor
Handles both .odt and .odp; the body element decides which is which.

Functions§

metadata
Read meta.xml for the document’s title and author.
parse
Parse content.xml into blocks. Pure.