# OdtDocument

Native OpenDocument Text document.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdtDocument.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.cs#L10)

**Base**

`OdfDocument`

**Implements**

`IDisposable`

**Modifiers**

sealed

Native OpenDocument Text document.

## Inheritance

- [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)
- OdtDocument

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Create and Read ODT, ODS and ODP Files](/docs/open-document/create-read/) Guide
  
  Create OpenDocument text, spreadsheet and presentation files, read their content, edit them in place, and open password-protected files.
- [Convert OpenDocument to and from Office](/docs/open-document/convert-office/) Guide
  
  Convert ODT to DOCX, ODS to XLSX and ODP to PPTX and back, and read the per-feature report of what was mapped, approximated or lost.
- [OpenDocument](/docs/open-document/) Guide
  
  Create, read and edit ODT, ODS and ODP files in .NET without LibreOffice, and convert them to Word, Excel, PowerPoint and PDF with a report of anything lost.
- [Convert OpenDocument to PDF and Images](/docs/open-document/convert-pdf/) Guide
  
  Convert ODT, ODS and ODP files to PDF or page images, and rebuild editable OpenDocument files from a PDF, with a report of both conversion stages.
- [Sign and Verify Office and ODF Files](/docs/security/sign-documents/) Guide
  
  Add digital signatures to DOCX, XLSX, PPTX and ODT/ODS/ODP files with OfficeIMO.Security, validate existing signatures, and set a trust policy.
- [OfficeIMO.OpenDocument](/products/open-document/) Guide
  
  Create and edit ODT, ODS, and ODP files and connect them to Office and PDF conversion workflows. Compare packages, examples, and limits.
- [Editable OpenDocument proposal](/showcase/opendocument-service-proposal/) Sample
  
  Create an ODT service proposal with styled text, acceptance conditions, assumptions and a PDF review copy. Includes the ODT and runnable C# source.
- [Workshop agenda in ODT and flat XML](/showcase/opendocument-workshop-agenda/) Sample
  
  Save one structured workshop agenda as editable ODT, inspectable FODT and a PDF review copy. Download all three formats and the generating C# source.
- [Client appointment letter](/showcase/opendocument-client-letter/) Sample
  
  Create an editable ODT client letter with a dated appointment, preparation notes, follow-up commitment and clear typography. Export a PDF copy.

## Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Method [OdtDocument.Create](/api/open-document/officeimo-opendocument-odtdocument/#method-create)
- Method [OdtDocument.Load](/api/open-document/officeimo-opendocument-odtdocument/#method-load-string-officeimo-opendocument-odfloadoptions)
- Method [OdtDocument.LoadAsync](/api/open-document/officeimo-opendocument-odtdocument/#method-loadasync-string-officeimo-opendocument-odfloadoptions-threading-cancellationtoken)
- Method [OdtDocument.LoadFlatXml](/api/open-document/officeimo-opendocument-odtdocument/#method-loadflatxml-io-stream-officeimo-opendocument-odfloadoptions)

Filter members 

Show inherited

## Methods

`public bool AcceptTrackedChange(string id)` [#](#method-accepttrackedchange-string)

[OdtDocument.TrackedChanges.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.TrackedChanges.cs#L91)

Accepts one tracked insertion or deletion.

Parameters

**id string required**

Returns

`bool`

`public OdtParagraph AddHeading(string text, int level = 1)` [#](#method-addheading-string-int32)

[OdtDocument.Blocks.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L39)

Adds a heading with an outline level from 1 through 10.

Parameters

**text string required**

**level int = 1 optional**

Returns

`OdtParagraph`

`public OdtList AddList(bool ordered = false)` [#](#method-addlist-boolean)

[OdtDocument.Blocks.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L50)

Adds an ordered or unordered list.

Parameters

**ordered bool = false optional**

Returns

`OdtList`

`public OdtParagraph AddPageBreak()` [#](#method-addpagebreak)

[OdtDocument.Blocks.cs:90](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L90)

Adds an empty paragraph that starts on a new page.

Returns

`OdtParagraph`

`public OdtParagraph AddParagraph(string? text = null)` [#](#method-addparagraph-string)

[OdtDocument.Blocks.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L30)

Adds a paragraph to the document body.

Parameters

**text string? = null optional**

Returns

`OdtParagraph`

`public OdtSection AddSection(string name)` [#](#method-addsection-string)

[OdtDocument.Blocks.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L81)

Adds a named section to the document body.

Parameters

**name string required**

Returns

`OdtSection`

`public OdtTable AddTable(int rows, int columns, string? name = null)` [#](#method-addtable-int32-int32-string)

[OdtDocument.Blocks.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L60)

Adds a table initialized with the requested row and column count.

Parameters

**rows int required**

**columns int required**

**name string? = null optional**

Returns

`OdtTable`

`public OdtTrackedChange AddTrackedParagraphInsertion(string? text, string creator, DateTimeOffset? date = null)` [#](#method-addtrackedparagraphinsertion-string-string-nullable-system-datetimeoffset)

[OdtDocument.TrackedChanges.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.TrackedChanges.cs#L58)

Appends a tracked paragraph insertion.

Parameters

**text string? required**

**creator string required**

**date System.DateTimeOffset? = null optional**

Returns

`OdtTrackedChange`

`public static OdtDocument Create()` [#](#method-create)

[OdtDocument.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.cs#L10)

Creates an empty ODF 1.4 text document.

Returns

`OdtDocument`

`public OdtTrackedChange DeleteParagraphTracked(OdtParagraph paragraph, string creator, DateTimeOffset? date = null)` [#](#method-deleteparagraphtracked-officeimo-opendocument-odtparagraph-string-nullable-system-datetimeoffset)

[OdtDocument.TrackedChanges.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.TrackedChanges.cs#L74)

Marks an existing top-level body paragraph or heading as deleted while retaining its XML in change metadata.

Parameters

**paragraph OfficeIMO.OpenDocument.OdtParagraph required**

**creator string required**

**date System.DateTimeOffset? = null optional**

Returns

`OdtTrackedChange`

Load 2 overloads

`public static OdtDocument Load(string path, OdfLoadOptions? options = null)` [#](#method-load-string-officeimo-opendocument-odfloadoptions)

[OdtDocument.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.cs#L14)

Loads an ODT document from a path.

Parameters

**path string required**

**options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional**

Returns

`OdtDocument`

`public static OdtDocument Load(Stream stream, OdfLoadOptions? options = null)` [#](#method-load-io-stream-officeimo-opendocument-odfloadoptions)

[OdtDocument.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.cs#L19)

Loads an ODT document from a stream.

Parameters

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional**

Returns

`OdtDocument`

LoadAsync 2 overloads

`public static async Task<OdtDocument> LoadAsync(string path, OdfLoadOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-loadasync-string-officeimo-opendocument-odfloadoptions-threading-cancellationtoken)

Asynchronously loads an ODT document from a path.

Parameters

**path string required**

**options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OdtDocument>`

`public static async Task<OdtDocument> LoadAsync(Stream stream, OdfLoadOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-loadasync-io-stream-officeimo-opendocument-odfloadoptions-threading-cancellationtoken)

Asynchronously loads an ODT document from a caller-owned stream.

Parameters

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OdtDocument>`

LoadFlatXml 2 overloads

`public static OdtDocument LoadFlatXml(Stream stream, OdfLoadOptions? options = null)` [#](#method-loadflatxml-io-stream-officeimo-opendocument-odfloadoptions)

[OdfDocument.FlatXml.cs:321](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.FlatXml.cs#L321)

Loads a flat OpenDocument Text XML stream.

Parameters

**stream System.IO.Stream required**

**options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional**

Returns

`OdtDocument`

`public static OdtDocument LoadFlatXml(string path, OdfLoadOptions? options = null)` [#](#method-loadflatxml-string-officeimo-opendocument-odfloadoptions)

[OdfDocument.FlatXml.cs:324](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.FlatXml.cs#L324)

Loads a flat OpenDocument Text XML path.

Parameters

**path string required**

**options OfficeIMO.OpenDocument.OdfLoadOptions? = null optional**

Returns

`OdtDocument`

`public bool RejectTrackedChange(string id)` [#](#method-rejecttrackedchange-string)

[OdtDocument.TrackedChanges.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.TrackedChanges.cs#L105)

Rejects one tracked insertion or deletion.

Parameters

**id string required**

Returns

`bool`

## Inherited Methods

`public void Dispose()` [#](#method-dispose)

[OdfDocument.Lifecycle.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.Lifecycle.cs#L6)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public IReadOnlyList<OfficeEmbeddedPayloadInfo> GetEmbeddedPayloads(OfficeEmbeddedPayloadInspectionOptions options, CancellationToken cancellationToken = default)` [#](#method-getembeddedpayloads-officeembeddedpayloadinspectionoptions-cancellationtoken)

[OdfDocument.EmbeddedPayloads.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.EmbeddedPayloads.cs#L12)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**options OfficeEmbeddedPayloadInspectionOptions required**

**cancellationToken CancellationToken = default optional**

Returns

`IReadOnlyList<OfficeEmbeddedPayloadInfo>`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public long GetPackageEntryByteLength(string reference)` [#](#method-getpackageentrybytelength-string)

[OdfDocument.PackageEntries.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.PackageEntries.cs#L21)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**reference string required**

Returns

`long`

GetPackageEntryBytes 2 overloads

`public byte[] GetPackageEntryBytes(string path)` [#](#method-getpackageentrybytes-string)

[OdfDocument.PackageEntries.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.PackageEntries.cs#L28)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**path string required**

Returns

`byte[]`

`public byte[] GetPackageEntryBytes(string path, long maximumBytes)` [#](#method-getpackageentrybytes-string-int64)

[OdfDocument.PackageEntries.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.PackageEntries.cs#L32)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**path string required**

**maximumBytes long required**

Returns

`byte[]`

`public string? GetPackageEntryMediaType(string reference)` [#](#method-getpackageentrymediatype-string)

[OdfDocument.PackageEntries.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.PackageEntries.cs#L18)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**reference string required**

Returns

`string?`

`public OdfPackageEntryPayloadState GetPackageEntryPayloadState(string reference)` [#](#method-getpackageentrypayloadstate-string)

[OdfDocument.PackageEntries.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.PackageEntries.cs#L25)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**reference string required**

Returns

`OdfPackageEntryPayloadState`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public OfficeEmbeddedPayloadInspection InspectEmbeddedPayloads(OfficeEmbeddedPayloadInspectionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-inspectembeddedpayloads-officeembeddedpayloadinspectionoptions-cancellationtoken)

[OdfDocument.EmbeddedPayloads.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.EmbeddedPayloads.cs#L7)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**options OfficeEmbeddedPayloadInspectionOptions? = null optional**

**cancellationToken CancellationToken = default optional**

Returns

`OfficeEmbeddedPayloadInspection`

InspectFeatures 2 overloads

`public OdfFeatureReport InspectFeatures()` [#](#method-inspectfeatures)

[OdfDocument.cs:176](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L176)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Returns

`OdfFeatureReport`

`public OdfFeatureReport InspectFeatures(CancellationToken cancellationToken)` [#](#method-inspectfeatures-cancellationtoken)

[OdfDocument.cs:180](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L180)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**cancellationToken CancellationToken required**

Returns

`OdfFeatureReport`

`public OfficeHiddenDataReport InspectHiddenData()` [#](#method-inspecthiddendata)

[OdfDocument.HiddenData.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.HiddenData.cs#L15)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Returns

`OfficeHiddenDataReport`

`public OfficeContentSafetyReport InspectLoadedContentSafety(OfficeContentSafetyOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-inspectloadedcontentsafety-officecontentsafetyoptions-cancellationtoken)

[OdfDocument.InspectionEvidence.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.InspectionEvidence.cs#L8)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**options OfficeContentSafetyOptions? = null optional**

**cancellationToken CancellationToken = default optional**

Returns

`OfficeContentSafetyReport`

`public Stream OpenEmbeddedPayload(string id, long maximumBytes, CancellationToken cancellationToken = default)` [#](#method-openembeddedpayload-string-int64-cancellationtoken)

[OdfDocument.EmbeddedPayloads.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.EmbeddedPayloads.cs#L19)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**id string required**

**maximumBytes long required**

**cancellationToken CancellationToken = default optional**

Returns

`Stream`

`public OfficeHiddenDataReport RemoveHiddenData(OfficeHiddenDataOptions? options = null)` [#](#method-removehiddendata-officehiddendataoptions)

[OdfDocument.HiddenData.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.HiddenData.cs#L20)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**options OfficeHiddenDataOptions? = null optional**

Returns

`OfficeHiddenDataReport`

Save 3 overloads

`public OdfSaveResult Save(OdfSaveOptions? options = null)` [#](#method-save-odfsaveoptions)

[OdfDocument.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L79)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**options OdfSaveOptions? = null optional**

Returns

`OdfSaveResult`

`public OdfSaveResult Save(string path, OdfSaveOptions? options = null)` [#](#method-save-string-odfsaveoptions)

[OdfDocument.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L85)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**path string required**

**options OdfSaveOptions? = null optional**

Returns

`OdfSaveResult`

`public OdfSaveResult Save(Stream destination, OdfSaveOptions? options = null)` [#](#method-save-stream-odfsaveoptions)

[OdfDocument.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L105)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**destination Stream required**

**options OdfSaveOptions? = null optional**

Returns

`OdfSaveResult`

SaveAsync 4 overloads

`public Task<OdfSaveResult> SaveAsync(CancellationToken cancellationToken = default)` [#](#method-saveasync-cancellationtoken)

[OdfDocument.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L113)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**cancellationToken CancellationToken = default optional**

Returns

`Task<OdfSaveResult>`

`public Task<OdfSaveResult> SaveAsync(OdfSaveOptions? options, CancellationToken cancellationToken = default)` [#](#method-saveasync-odfsaveoptions-cancellationtoken)

[OdfDocument.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L117)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**options OdfSaveOptions? required**

**cancellationToken CancellationToken = default optional**

Returns

`Task<OdfSaveResult>`

`public async Task<OdfSaveResult> SaveAsync(string path, OdfSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasync-string-odfsaveoptions-cancellationtoken)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**path string required**

**options OdfSaveOptions? = null optional**

**cancellationToken CancellationToken = default optional**

Returns

`Task<OdfSaveResult>`

`public async Task<OdfSaveResult> SaveAsync(Stream destination, OdfSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasync-stream-odfsaveoptions-cancellationtoken)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**destination Stream required**

**options OdfSaveOptions? = null optional**

**cancellationToken CancellationToken = default optional**

Returns

`Task<OdfSaveResult>`

`public OdfSaveResult SaveCopy(string path, OdfSaveOptions? options = null)` [#](#method-savecopy-string-odfsaveoptions)

[OdfDocument.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L96)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**path string required**

**options OdfSaveOptions? = null optional**

Returns

`OdfSaveResult`

`public async Task<OdfSaveResult> SaveCopyAsync(string path, OdfSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-savecopyasync-string-odfsaveoptions-cancellationtoken)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**path string required**

**options OdfSaveOptions? = null optional**

**cancellationToken CancellationToken = default optional**

Returns

`Task<OdfSaveResult>`

SaveFlatXml 2 overloads

`public OdfSaveResult SaveFlatXml(Stream destination)` [#](#method-saveflatxml-stream)

[OdfDocument.FlatXml.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.FlatXml.cs#L36)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**destination Stream required**

Returns

`OdfSaveResult`

`public OdfSaveResult SaveFlatXml(string path)` [#](#method-saveflatxml-string)

[OdfDocument.FlatXml.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.FlatXml.cs#L44)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**path string required**

Returns

`OdfSaveResult`

`public OdfSaveResult Serialize(OdfSaveOptions? options = null)` [#](#method-serialize-odfsaveoptions)

[OdfDocument.cs:165](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L165)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**options OdfSaveOptions? = null optional**

Returns

`OdfSaveResult`

`public byte[] ToBytes(OdfSaveOptions? options = null)` [#](#method-tobytes-odfsaveoptions)

[OdfDocument.cs:153](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L153)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Parameters

**options OdfSaveOptions? = null optional**

Returns

`byte[]`

`public XDocument ToFlatXml()` [#](#method-toflatxml)

[OdfDocument.FlatXml.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.FlatXml.cs#L8)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Returns

`XDocument`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

`public OdfValidationResult Validate()` [#](#method-validate)

[OdfDocument.cs:171](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L171)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

Returns

`OdfValidationResult`

## Properties

`public IReadOnlyList<OdtParagraph> Paragraphs { get; }` [#](#property-paragraphs)

[OdtDocument.Blocks.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L5)

Paragraphs and headings in document body order.

`public IReadOnlyList<OdtTable> Tables { get; }` [#](#property-tables)

[OdtDocument.Blocks.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L14)

Top-level tables in the document body.

`public IReadOnlyList<OdtList> Lists { get; }` [#](#property-lists)

[OdtDocument.Blocks.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L18)

Top-level lists in the document body.

`public IReadOnlyList<OdtSection> Sections { get; }` [#](#property-sections)

[OdtDocument.Blocks.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L22)

Top-level named sections in the document body.

`public IReadOnlyList<OdtContentBlock> ContentBlocks { get; }` [#](#property-contentblocks)

[OdtDocument.Blocks.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.Blocks.cs#L26)

Paragraph, heading, and table blocks in reading order without duplicating table-cell paragraphs.

`public OdtPageLayout PageLayout { get; }` [#](#property-pagelayout)

[OdtDocument.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.cs#L36)

Page layout, margins, header, and footer through the first master page.

`public IReadOnlyList<OdtHeaderFooter> HeaderFooters { get; }` [#](#property-headerfooters)

[OdtDocument.InspectionStories.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.InspectionStories.cs#L5)

Existing header/footer stories across all authored masters, without creating a default layout or missing stories.

`public IReadOnlyList<OdtTrackedChange> TrackedChanges { get; }` [#](#property-trackedchanges)

[OdtDocument.TrackedChanges.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtDocument.TrackedChanges.cs#L50)

Tracked changes declared by the document.

## Inherited Properties

`public OdfDocumentKind Kind { get; }` [#](#property-kind)

[OdfDocument.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L64)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public string? FilePath { get; }` [#](#property-filepath)

[OdfDocument.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L66)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public OdfVersion Version { get; }` [#](#property-version)

[OdfDocument.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L68)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public OdfDocumentMetadata Properties { get; }` [#](#property-properties)

[OdfDocument.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L70)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public OdfStyleRepository Styles { get; }` [#](#property-styles)

[OdfDocument.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L72)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public IReadOnlyList<OdfDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[OdfDocument.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L74)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public OdfSecurityInfo Security { get; }` [#](#property-security)

[OdfDocument.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.cs#L76)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public IReadOnlyList<string> PackageEntries { get; }` [#](#property-packageentries)

[OdfDocument.PackageEntries.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.PackageEntries.cs#L5)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

`public IReadOnlyList<string> BinaryPayloadEntries { get; }` [#](#property-binarypayloadentries)

[OdfDocument.PackageEntries.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocument.PackageEntries.cs#L8)

Inherited from [OdfDocument](/api/open-document/officeimo-opendocument-odfdocument/)

<!-- PowerForge markdown artifact sha256:727D47B2DAEC0763AED3F19EC8F2E7EA0D4D90B93330364612EBADB9AB66CB58 -->
