# PowerPointLoadOptions

Controls access, persistence, and package behavior when loading a PowerPoint presentation.

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[PowerPointLifecycleOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L36)

**Base**

`DocumentLoadOptions`

**Modifiers**

sealed

Controls access, persistence, and package behavior when loading a PowerPoint presentation.

## Inheritance

- DocumentLoadOptions
- PowerPointLoadOptions

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

- Property [PowerPointLoadOptions.UntrustedDefaults](/api/powerpoint/officeimo-powerpoint-powerpointloadoptions/#property-untrusteddefaults)

### Accepted by parameters 3

- Method [PowerPointDocument.Load](/api/powerpoint/officeimo-powerpoint-powerpointdocument/#method-load-string-officeimo-powerpoint-powerpointloadoptions) parameter `options`
- Method [PowerPointDocument.LoadAsync](/api/powerpoint/officeimo-powerpoint-powerpointdocument/#method-loadasync-string-officeimo-powerpoint-powerpointloadoptions-threading-cancellationtoken) parameter `options`
- Method [PowerPointSlideReader.Open](/api/powerpoint/officeimo-powerpoint-powerpointslidereader/#method-open-string-officeimo-powerpoint-powerpointloadoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[PowerPointLifecycleOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L36)

## 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 static PowerPointLoadOptions UntrustedDefaults { get; }` [#](#property-untrusteddefaults)

[PowerPointLifecycleOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L29)

Creates bounded options that reject active, embedded, and externally linked package content.

`public long? MaxInputBytes { get; set; }` [#](#property-maxinputbytes)

[PowerPointLifecycleOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L36)

Maximum presentation bytes buffered by load APIs. Default: 512 MiB. Set to null to disable this compatibility guard.

`public bool AllowLegacyProjection { get; set; }` [#](#property-allowlegacyprojection)

[PowerPointLifecycleOptions.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L39)

Allows native binary PPT projection into an Open XML model. Default: true. False rejects that source family before secondary payload projection, including mislabeled input.

`public OfficeOpenXmlLoadSettings? OpenSettings { get; set; }` [#](#property-opensettings)

[PowerPointLifecycleOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L42)

Provides optional low-level Open XML package settings.

`public bool ReportUnsupportedContent { get; set; }` [#](#property-reportunsupportedcontent)

[PowerPointLifecycleOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L47)

Gets or sets whether recognized but unsupported content is reported as warnings.

`public int MaxRecordCount { get; set; }` [#](#property-maxrecordcount)

[PowerPointLifecycleOptions.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L49)

Gets or sets the maximum number of binary records traversed.

`public int MaxSlideCount { get; set; }` [#](#property-maxslidecount)

[PowerPointLifecycleOptions.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L51)

Gets or sets the maximum number of decoded slides.

`public int MaxRecordDepth { get; set; }` [#](#property-maxrecorddepth)

[PowerPointLifecycleOptions.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L53)

Gets or sets the maximum nested record depth.

`public int MaxMasterCount { get; set; }` [#](#property-maxmastercount)

[PowerPointLifecycleOptions.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L55)

Gets or sets the maximum number of decoded main and title masters.

`public int MaxConnectorRuleCount { get; set; }` [#](#property-maxconnectorrulecount)

[PowerPointLifecycleOptions.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L57)

Gets or sets the maximum aggregate number of decoded connector rules.

`public int MaxCommentCount { get; set; }` [#](#property-maxcommentcount)

[PowerPointLifecycleOptions.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L59)

Gets or sets the maximum aggregate number of decoded comments.

`public int MaxTextStyle9EntryCount { get; set; }` [#](#property-maxtextstyle9entrycount)

[PowerPointLifecycleOptions.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L61)

Gets or sets the maximum number of PPT9 style entries decoded for one text body.

`public long MaxDecodedStorageBytes { get; set; }` [#](#property-maxdecodedstoragebytes)

[PowerPointLifecycleOptions.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L63)

Maximum aggregate decoded storage bytes in a legacy presentation.

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

[PowerPointLifecycleOptions.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L79)

Password used to open an encrypted source.

`public int MaxLegacyInputBytes { get; set; }` [#](#property-maxlegacyinputbytes)

[PowerPointLifecycleOptions.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L81)

Maximum binary source bytes.

## Inherited Properties

`public DocumentAccessMode AccessMode { get; set; }` [#](#property-accessmode)

Inherited from DocumentLoadOptions

`public OfficePackageSecurityOptions? PackageSecurity { get; set; }` [#](#property-packagesecurity)

Inherited from DocumentLoadOptions

`public bool CaptureSourcePackageSecurity { get; set; }` [#](#property-capturesourcepackagesecurity)

Inherited from DocumentLoadOptions

`public DocumentPersistenceMode PersistenceMode { get; set; }` [#](#property-persistencemode)

Inherited from DocumentCreateOptions

## Fields

`public const long DefaultMaxInputBytes` [#](#field-defaultmaxinputbytes)

[PowerPointLifecycleOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.PowerPoint/PowerPointLifecycleOptions.cs#L26)

Default maximum complete source size (512 MiB).

Value: `536870912`

<!-- PowerForge markdown artifact sha256:6697D44780EA2945C6F2C17798F3BC8F5CBBBDF14C5732299F1AFC97B416FFB2 -->
