Skip to main content

Open Document Format (ODT)

The Open Document Format for Office Applications (ODF), also known as OpenDocument, is an open file format for word processing documents, spreadsheets, presentations and graphics and using ZIP-compressed XML files. It was developed with the aim of providing an open, XML-based file format specification for office applications.

The standard is developed and maintained by a technical committee in the Organization for the Advancement of Structured Information Standards (OASIS) consortium. It was based on the Sun Microsystems specification for XML, the default format for and LibreOffice. It was originally developed for StarOffice "to provide an open standard for office documents."

The UnstructuredODTLoader is used to load Open Office ODT files.

from langchain_community.document_loaders import UnstructuredODTLoader
API Reference:UnstructuredODTLoader
loader = UnstructuredODTLoader("example_data/fake.odt", mode="elements")
docs = loader.load()
Document(page_content='Lorem ipsum dolor sit amet.', metadata={'source': 'example_data/fake.odt', 'filename': 'example_data/fake.odt', 'category': 'Title'})

Was this page helpful?

You can leave detailed feedback on GitHub.