# HtmlPowerPointConverterExtensions

Extension methods for importing semantic OfficeIMO PowerPoint HTML.

Class 

`OfficeIMO.PowerPoint.Html`

**Namespace**

`OfficeIMO.PowerPoint.Html`

**Assembly**

`OfficeIMO.PowerPoint.Html`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

static

Extension methods for importing semantic OfficeIMO PowerPoint HTML.

## Inheritance

- object
- HtmlPowerPointConverterExtensions

Filter members 

Show inherited

## Methods

SaveAsPowerPoint 2 overloads

`public static OfficeConversionReport SaveAsPowerPoint(HtmlConversionDocument document, string path, HtmlPowerPointExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspowerpoint-officeimo-html-htmlconversiondocument-string-officeimo-powerpoint-html-htmlpowerpointexportoptions-threading-cancellationtoken)

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

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

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**path string required**

**options OfficeIMO.PowerPoint.Html.HtmlPowerPointExportOptions? = null optional**

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

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsPowerPoint(HtmlConversionDocument document, Stream stream, HtmlPowerPointExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspowerpoint-officeimo-html-htmlconversiondocument-io-stream-officeimo-powerpoint-html-htmlpowerpointexportoptions-threading-cancellationtoken)

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

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

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**stream System.IO.Stream required**

**options OfficeIMO.PowerPoint.Html.HtmlPowerPointExportOptions? = null optional**

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

Returns

`OfficeConversionReport`

SaveAsPowerPointAsync 2 overloads

`public static async Task<OfficeConversionReport> SaveAsPowerPointAsync(HtmlConversionDocument document, string path, HtmlPowerPointExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspowerpointasync-officeimo-html-htmlconversiondocument-string-officeimo-powerpoint-html-htmlpowerpointexportoptions-threading-cancellationtoken)

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

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**path string required**

**options OfficeIMO.PowerPoint.Html.HtmlPowerPointExportOptions? = null optional**

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

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsPowerPointAsync(HtmlConversionDocument document, Stream stream, HtmlPowerPointExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspowerpointasync-officeimo-html-htmlconversiondocument-io-stream-officeimo-powerpoint-html-htmlpowerpointexportoptions-threading-cancellationtoken)

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

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**stream System.IO.Stream required**

**options OfficeIMO.PowerPoint.Html.HtmlPowerPointExportOptions? = null optional**

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

Returns

`Task<OfficeConversionReport>`

ToPowerPoint 2 overloads

`public static PowerPointDocument ToPowerPoint(HtmlConversionDocument document, HtmlPowerPointExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-topowerpoint-officeimo-html-htmlconversiondocument-officeimo-powerpoint-html-htmlpowerpointexportoptions-threading-cancellationtoken)

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

Converts prepared HTML into a native presentation.

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**options OfficeIMO.PowerPoint.Html.HtmlPowerPointExportOptions? = null optional**

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

Returns

`PowerPointDocument`

`public static PowerPointDocument ToPowerPoint(HtmlConversionDocument document, HtmlPowerPointExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#method-topowerpoint-officeimo-html-htmlconversiondocument-officeimo-powerpoint-html-htmlpowerpointexportoptions-officeimo-officeconversionreport-threading-cancellationtoken)

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

Converts prepared HTML into a native presentation and returns the completed conversion report.

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**options OfficeIMO.PowerPoint.Html.HtmlPowerPointExportOptions? required**

**report OfficeIMO.OfficeConversionReport required**

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

Returns

`PowerPointDocument`

`public static Task<OfficeConversionResult<PowerPointDocument>> ToPowerPointAsync(HtmlConversionDocument document, HtmlPowerPointExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-topowerpointasync-officeimo-html-htmlconversiondocument-officeimo-powerpoint-html-htmlpowerpointexportoptions-threading-cancellationtoken)

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

Converts prepared HTML into a native presentation, returning the value and report together.

Parameters

**document OfficeIMO.Html.HtmlConversionDocument required**

**options OfficeIMO.PowerPoint.Html.HtmlPowerPointExportOptions? = 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:B1E163A09AF868EF3C55656243784093CCB7E01BC2C47A99066E5100B65827D9 -->
