# OdfDocumentReaderExtensions

Projects caller-owned native OpenDocument models through the canonical Reader adapter.

Class 

`OfficeIMO.Reader.OpenDocument`

**Namespace**

`OfficeIMO.Reader.OpenDocument`

**Assembly**

`OfficeIMO.Reader.OpenDocument`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[OdfDocumentReaderExtensions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.OpenDocument/OdfDocumentReaderExtensions.cs#L14)

**Modifiers**

static

Projects caller-owned native OpenDocument models through the canonical Reader adapter.

## Inheritance

- object
- OdfDocumentReaderExtensions

Filter members 

Show inherited

## Methods

`public static OfficeDocumentReadResult ReadDocument(OdfDocument document, string? sourceName = null, ReaderOptions? options = null, ReaderOpenDocumentOptions? formatOptions = null, CancellationToken cancellationToken = default)` [#](#method-readdocument-officeimo-opendocument-odfdocument-string-officeimo-reader-readeroptions-officeimo-reader-opendocument-readeropendocumentoptions-threading-cancellationtoken)

[OdfDocumentReaderExtensions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.OpenDocument/OdfDocumentReaderExtensions.cs#L14)

Reads a loaded native document into the shared document envelope without reopening or disposing it.

Parameters

**document OfficeIMO.OpenDocument.OdfDocument required**

**sourceName string? = null optional**

**options OfficeIMO.Reader.ReaderOptions? = null optional**

**formatOptions OfficeIMO.Reader.OpenDocument.ReaderOpenDocumentOptions? = null optional**

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

Returns

`OfficeDocumentReadResult`

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:55454D8F5DF1D78EA907BCACE499FD09A55D68D844851512D535BE21027C36ED -->
