# PowerPointHtmlConverterExtensions

Extension methods enabling HTML conversions for OfficeIMO PowerPoint presentations.

Class 

`OfficeIMO.PowerPoint.Html`

**Namespace**

`OfficeIMO.PowerPoint.Html`

**Assembly**

`OfficeIMO.PowerPoint.Html`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[PowerPointHtmlConverterExtensions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Html/PowerPointHtmlConverterExtensions.cs#L14)

**Modifiers**

static

Extension methods enabling HTML conversions for OfficeIMO PowerPoint presentations.

## Inheritance

- object
- PowerPointHtmlConverterExtensions

Filter members 

Show inherited

## Methods

SaveAsHtml 2 overloads

`public static OfficeConversionReport SaveAsHtml(PowerPointDocument presentation, string path, PowerPointHtmlExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveashtml-officeimo-powerpoint-powerpointdocument-string-officeimo-powerpoint-html-powerpointhtmlexportoptions-threading-cancellationtoken)

[PowerPointHtmlConverterExtensions.IO.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Html/PowerPointHtmlConverterExtensions.IO.cs#L11)

Saves a presentation as UTF-8 HTML and returns its completed-stage report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**path string required**

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

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

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsHtml(PowerPointDocument presentation, Stream stream, PowerPointHtmlExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveashtml-officeimo-powerpoint-powerpointdocument-io-stream-officeimo-powerpoint-html-powerpointhtmlexportoptions-threading-cancellationtoken)

[PowerPointHtmlConverterExtensions.IO.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Html/PowerPointHtmlConverterExtensions.IO.cs#L20)

Writes a presentation as UTF-8 HTML to a stream, leaves it open and returns its completed-stage report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**stream System.IO.Stream required**

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

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

Returns

`OfficeConversionReport`

SaveAsHtmlAsync 2 overloads

`public static async Task<OfficeConversionReport> SaveAsHtmlAsync(PowerPointDocument presentation, string path, PowerPointHtmlExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveashtmlasync-officeimo-powerpoint-powerpointdocument-string-officeimo-powerpoint-html-powerpointhtmlexportoptions-threading-cancellationtoken)

Asynchronously saves a presentation as UTF-8 HTML and returns its completed-stage report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**path string required**

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

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

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsHtmlAsync(PowerPointDocument presentation, Stream stream, PowerPointHtmlExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveashtmlasync-officeimo-powerpoint-powerpointdocument-io-stream-officeimo-powerpoint-html-powerpointhtmlexportoptions-threading-cancellationtoken)

Asynchronously writes a presentation as UTF-8 HTML to a stream, leaves it open and returns its completed-stage report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**stream System.IO.Stream required**

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

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

Returns

`Task<OfficeConversionReport>`

ToHtml 2 overloads

`public static string ToHtml(PowerPointDocument presentation, PowerPointHtmlExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-tohtml-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-html-powerpointhtmlexportoptions-threading-cancellationtoken)

[PowerPointHtmlConverterExtensions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Html/PowerPointHtmlConverterExtensions.cs#L14)

Converts a presentation to HTML text.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

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

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

Returns

`string`

`public static string ToHtml(PowerPointDocument presentation, PowerPointHtmlExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#method-tohtml-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-html-powerpointhtmlexportoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[PowerPointHtmlConverterExtensions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Html/PowerPointHtmlConverterExtensions.cs#L19)

Converts a presentation to HTML text and returns completed-stage findings, including visual snapshot diagnostics.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

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

**report OfficeIMO.OfficeConversionReport required**

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

Returns

`string`

`public static async Task<OfficeConversionResult<string>> ToHtmlAsync(PowerPointDocument presentation, PowerPointHtmlExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-tohtmlasync-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-html-powerpointhtmlexportoptions-threading-cancellationtoken)

Converts a presentation to HTML text with its completed-stage report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

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

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

Returns

`Task<OfficeConversionResult<string>>`

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