# PowerPointPdfConverterExtensions

First-party PowerPoint presentation to PDF conversion helpers.

Class 

`OfficeIMO.PowerPoint.Pdf`

**Namespace**

`OfficeIMO.PowerPoint.Pdf`

**Assembly**

`OfficeIMO.PowerPoint.Pdf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[PowerPointPdfConverterExtensions.Conversion.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Pdf/PowerPointPdfConverterExtensions.Conversion.cs#L11)

**Modifiers**

static

First-party PowerPoint presentation to PDF conversion helpers.

## Inheritance

- object
- PowerPointPdfConverterExtensions

Filter members 

Show inherited

## Methods

SaveAsPdf 2 overloads

`public static OfficeConversionReport SaveAsPdf(PowerPointDocument presentation, string path, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdf-officeimo-powerpoint-powerpointdocument-string-officeimo-powerpoint-pdf-powerpointpdfexportoptions-threading-cancellationtoken)

[PowerPointPdfConverterExtensions.Conversion.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Pdf/PowerPointPdfConverterExtensions.Conversion.cs#L38)

Writes a PDF file and returns the complete conversion report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**path string required**

**options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional**

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

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsPdf(PowerPointDocument presentation, Stream stream, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdf-officeimo-powerpoint-powerpointdocument-io-stream-officeimo-powerpoint-pdf-powerpointpdfexportoptions-threading-cancellationtoken)

[PowerPointPdfConverterExtensions.Conversion.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Pdf/PowerPointPdfConverterExtensions.Conversion.cs#L51)

Writes PDF to a caller-owned stream and returns the complete conversion report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**stream System.IO.Stream required**

**options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional**

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

Returns

`OfficeConversionReport`

SaveAsPdfAsync 2 overloads

`public static async Task<OfficeConversionReport> SaveAsPdfAsync(PowerPointDocument presentation, string path, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdfasync-officeimo-powerpoint-powerpointdocument-string-officeimo-powerpoint-pdf-powerpointpdfexportoptions-threading-cancellationtoken)

Asynchronously writes a PDF file and returns the complete conversion report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**path string required**

**options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional**

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

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsPdfAsync(PowerPointDocument presentation, Stream stream, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-saveaspdfasync-officeimo-powerpoint-powerpointdocument-io-stream-officeimo-powerpoint-pdf-powerpointpdfexportoptions-threading-cancellationtoken)

Asynchronously writes PDF to a caller-owned stream and returns its conversion report.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**stream System.IO.Stream required**

**options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional**

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

Returns

`Task<OfficeConversionReport>`

ToPdf 2 overloads

`public static PdfDocument ToPdf(PowerPointDocument presentation, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-topdf-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-pdf-powerpointpdfexportoptions-threading-cancellationtoken)

[PowerPointPdfConverterExtensions.Conversion.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Pdf/PowerPointPdfConverterExtensions.Conversion.cs#L11)

Converts the source document to a PDF model.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional**

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

Returns

`PdfDocument`

`public static PdfDocument ToPdf(PowerPointDocument presentation, PowerPointPdfExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#method-topdf-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-pdf-powerpointpdfexportoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[PowerPointPdfConverterExtensions.Conversion.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.PowerPoint.Pdf/PowerPointPdfConverterExtensions.Conversion.cs#L16)

Converts the source document and returns its completed conversion findings.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? required**

**report OfficeIMO.OfficeConversionReport required**

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

Returns

`PdfDocument`

`public static async Task<OfficeConversionResult<PdfDocument>> ToPdfAsync(PowerPointDocument presentation, PowerPointPdfExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-topdfasync-officeimo-powerpoint-powerpointdocument-officeimo-powerpoint-pdf-powerpointpdfexportoptions-threading-cancellationtoken)

Converts the source document, returning the model and report together.

Parameters

**presentation OfficeIMO.PowerPoint.PowerPointDocument required**

**options OfficeIMO.PowerPoint.Pdf.PowerPointPdfExportOptions? = null optional**

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

Returns

`Task<OfficeConversionResult<PdfDocument>>`

## 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:6C12BD3F7218BA43D8D3A6754C454E1B68A13594948284EFC75A59458F19CC5F -->
