# PowerPointOpenDocumentConversionExtensions

Explicit conversions between OfficeIMO PowerPoint and native OpenDocument presentation models.

Class 

`OfficeIMO.PowerPoint.OpenDocument`

**Namespace**

`OfficeIMO.PowerPoint.OpenDocument`

**Assembly**

`OfficeIMO.PowerPoint.OpenDocument`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L10)

**Modifiers**

static

Explicit conversions between OfficeIMO PowerPoint and native OpenDocument presentation models.

## Inheritance

- object
- PowerPointOpenDocumentConversionExtensions

Filter members 

Show inherited

## Methods

SaveAsOpenDocument 2 overloads

`public static OfficeConversionReport SaveAsOpenDocument(PowerPointDocument source, string path, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasopendocument-officeimo-powerpoint-powerpointdocument-string-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L34)

Writes the converted output to a path and returns the conversion report.

Parameters

**source OfficeIMO.PowerPoint.PowerPointDocument required**

**path string required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsOpenDocument(PowerPointDocument source, Stream stream, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasopendocument-officeimo-powerpoint-powerpointdocument-io-stream-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L41)

Writes the converted output to a caller-owned stream, which stays open and returns the conversion report.

Parameters

**source OfficeIMO.PowerPoint.PowerPointDocument required**

**stream System.IO.Stream required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`OfficeConversionReport`

SaveAsOpenDocumentAsync 2 overloads

`public static async Task<OfficeConversionReport> SaveAsOpenDocumentAsync(PowerPointDocument source, string path, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasopendocumentasync-officeimo-powerpoint-powerpointdocument-string-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

Asynchronously writes the converted output to a path and returns the conversion report.

Parameters

**source OfficeIMO.PowerPoint.PowerPointDocument required**

**path string required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsOpenDocumentAsync(PowerPointDocument source, Stream stream, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveasopendocumentasync-officeimo-powerpoint-powerpointdocument-io-stream-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

Asynchronously writes the converted output to a caller-owned stream and returns the conversion report.

Parameters

**source OfficeIMO.PowerPoint.PowerPointDocument required**

**stream System.IO.Stream required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`Task<OfficeConversionReport>`

SaveAsPowerPoint 2 overloads

`public static OfficeConversionReport SaveAsPowerPoint(OdpPresentation source, string path, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspowerpoint-officeimo-opendocument-odppresentation-string-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L95)

Writes the converted output to a path and returns the conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**path string required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsPowerPoint(OdpPresentation source, Stream stream, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspowerpoint-officeimo-opendocument-odppresentation-io-stream-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L102)

Writes the converted output to a caller-owned stream, which stays open and returns the conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**stream System.IO.Stream required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`OfficeConversionReport`

SaveAsPowerPointAsync 2 overloads

`public static async Task<OfficeConversionReport> SaveAsPowerPointAsync(OdpPresentation source, string path, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspowerpointasync-officeimo-opendocument-odppresentation-string-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

Asynchronously writes the converted output to a path and returns the conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**path string required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsPowerPointAsync(OdpPresentation source, Stream stream, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspowerpointasync-officeimo-opendocument-odppresentation-io-stream-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

Asynchronously writes the converted output to a caller-owned stream and returns the conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**stream System.IO.Stream required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`Task<OfficeConversionReport>`

ToOpenDocument 2 overloads

`public static OdpPresentation ToOpenDocument(PowerPointDocument source, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-toopendocument-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L10)

Converts a presentation to an in-memory ODP presentation; the LossPolicy option rejects loss.

Parameters

**source OfficeIMO.PowerPoint.PowerPointDocument required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`OdpPresentation`

`public static OdpPresentation ToOpenDocument(PowerPointDocument source, PowerPointOpenDocumentConversionOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#method-toopendocument-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L15)

Converts a presentation to an in-memory ODP presentation; the LossPolicy option rejects loss and returns the completed conversion report.

Parameters

**source OfficeIMO.PowerPoint.PowerPointDocument required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? required**

**report OfficeIMO.OfficeConversionReport required**

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

Returns

`OdpPresentation`

`public static Task<OfficeConversionResult<OdpPresentation>> ToOpenDocumentAsync(PowerPointDocument source, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-toopendocumentasync-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L27)

Converts a presentation to an in-memory ODP presentation; the LossPolicy option rejects loss, returning the value and report together.

Parameters

**source OfficeIMO.PowerPoint.PowerPointDocument required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`Task<OfficeConversionResult<OdpPresentation>>`

ToPowerPoint 2 overloads

`public static PowerPointDocument ToPowerPoint(OdpPresentation source, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-topowerpoint-officeimo-opendocument-odppresentation-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L71)

Converts an ODP presentation to an in-memory presentation; the LossPolicy option rejects loss.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`PowerPointDocument`

`public static PowerPointDocument ToPowerPoint(OdpPresentation source, PowerPointOpenDocumentConversionOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#method-topowerpoint-officeimo-opendocument-odppresentation-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L76)

Converts an ODP presentation to an in-memory presentation; the LossPolicy option rejects loss and returns the completed conversion report.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? required**

**report OfficeIMO.OfficeConversionReport required**

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

Returns

`PowerPointDocument`

`public static Task<OfficeConversionResult<PowerPointDocument>> ToPowerPointAsync(OdpPresentation source, PowerPointOpenDocumentConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-topowerpointasync-officeimo-opendocument-odppresentation-officeimo-powerpoint-opendocument-powerpointopendocumentconversionoptions-threading-cancellationtoken)

[PowerPointOpenDocumentConversionExtensions.Conversion.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.OpenDocument/PowerPointOpenDocumentConversionExtensions.Conversion.cs#L88)

Converts an ODP presentation to an in-memory presentation; the LossPolicy option rejects loss, returning the value and report together.

Parameters

**source OfficeIMO.OpenDocument.OdpPresentation required**

**options OfficeIMO.PowerPoint.OpenDocument.PowerPointOpenDocumentConversionOptions? = null optional**

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

Returns

`Task<OfficeConversionResult<PowerPointDocument>>`

## 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:822E39A43DD797DB6F028262C316DD0249F4052D5D84659519125DD7BBF4B71E -->
