# OdfLoadOptions

Controls bounded package and XML loading.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Controls bounded package and XML loading.

## Inheritance

- object
- OdfLoadOptions

## 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.

## Usage

Explore 17 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.

### Accepted by parameters 17

- Method [OdfDocument.InspectContentSafety](/api/open-document/officeimo-opendocument-odfdocument/#method-inspectcontentsafety-byte-officeimo-contentsafety-officecontentsafetyoptions-officeimo-opendocument-odfloadoptions) parameter `loadOptions`
- Method [OdfDocument.Load](/api/open-document/officeimo-opendocument-odfdocument/#method-load-string-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdfDocument.LoadAsync](/api/open-document/officeimo-opendocument-odfdocument/#method-loadasync-io-stream-officeimo-opendocument-odfloadoptions-threading-cancellationtoken) parameter `options`
- Method [OdfDocument.LoadFlatXml](/api/open-document/officeimo-opendocument-odfdocument/#method-loadflatxml-io-stream-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdfDocument.RemoveSelectedContent](/api/open-document/officeimo-opendocument-odfdocument/#method-removeselectedcontent-byte-officeimo-contentsafety-officecontentcleanupselection-officeimo-contentsafety-officecontentcleanupoptions-officeimo-opendocument-odfloadoptions) parameter `loadOptions`
- Method [OdgDocument.Load](/api/open-document/officeimo-opendocument-odgdocument/#method-load-string-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdgDocument.LoadAsync](/api/open-document/officeimo-opendocument-odgdocument/#method-loadasync-string-officeimo-opendocument-odfloadoptions-threading-cancellationtoken) parameter `options`
- Method [OdgDocument.LoadFlatXml](/api/open-document/officeimo-opendocument-odgdocument/#method-loadflatxml-string-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdpPresentation.Load](/api/open-document/officeimo-opendocument-odppresentation/#method-load-string-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdpPresentation.LoadAsync](/api/open-document/officeimo-opendocument-odppresentation/#method-loadasync-io-stream-officeimo-opendocument-odfloadoptions-threading-cancellationtoken) parameter `options`
- Method [OdpPresentation.LoadFlatXml](/api/open-document/officeimo-opendocument-odppresentation/#method-loadflatxml-io-stream-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdsDocument.Load](/api/open-document/officeimo-opendocument-odsdocument/#method-load-string-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdsDocument.LoadAsync](/api/open-document/officeimo-opendocument-odsdocument/#method-loadasync-string-officeimo-opendocument-odfloadoptions-threading-cancellationtoken) parameter `options`
- Method [OdsDocument.LoadFlatXml](/api/open-document/officeimo-opendocument-odsdocument/#method-loadflatxml-io-stream-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdtDocument.Load](/api/open-document/officeimo-opendocument-odtdocument/#method-load-string-officeimo-opendocument-odfloadoptions) parameter `options`
- Method [OdtDocument.LoadAsync](/api/open-document/officeimo-opendocument-odtdocument/#method-loadasync-string-officeimo-opendocument-odfloadoptions-threading-cancellationtoken) parameter `options`
- Method [OdtDocument.LoadFlatXml](/api/open-document/officeimo-opendocument-odtdocument/#method-loadflatxml-io-stream-officeimo-opendocument-odfloadoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public OdfLoadOptions()` [#](#constructor-ctor)

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

## 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?`

## Properties

`public bool DeferBinaryPayloads { get; set; }` [#](#property-deferbinarypayloads)

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

Defers unencrypted non-XML package payload expansion until native byte access or save. Default: false.

`public string? Password { get; set; }` [#](#property-password)

[OdfLoadOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfLoadOptions.cs#L16)

Password used to decrypt an encrypted package.

`public long MaxPackageBytes { get; set; }` [#](#property-maxpackagebytes)

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

Maximum source package size in bytes.

`public int MaxEntries { get; set; }` [#](#property-maxentries)

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

Maximum number of ZIP entries.

`public long MaxEntryUncompressedBytes { get; set; }` [#](#property-maxentryuncompressedbytes)

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

Maximum uncompressed size of one entry.

`public long MaxTotalUncompressedBytes { get; set; }` [#](#property-maxtotaluncompressedbytes)

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

Maximum aggregate uncompressed package size.

`public long MaxTotalKdfIterations { get; set; }` [#](#property-maxtotalkdfiterations)

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

Maximum aggregate PBKDF2 iterations across all encrypted entries.

`public double MaxCompressionRatio { get; set; }` [#](#property-maxcompressionratio)

[OdfLoadOptions.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfLoadOptions.cs#L35)

Maximum declared expansion ratio for a compressed entry.

`public int MaxDepth { get; set; }` [#](#property-maxdepth)

[OdfLoadOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfLoadOptions.cs#L38)

Maximum archive path depth.

`public long MaxXmlCharacters { get; set; }` [#](#property-maxxmlcharacters)

[OdfLoadOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfLoadOptions.cs#L41)

Maximum characters allowed in one parsed XML part.

`public int MaxXmlDepth { get; set; }` [#](#property-maxxmldepth)

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

Maximum element nesting depth allowed in one parsed XML part.

<!-- PowerForge markdown artifact sha256:F224660CC772517638D7B2914477EBE380963E856AF6BBD840DB80A39CA4F0A2 -->
