# Convert PowerPoint to PDF, HTML, and ODP

Convert PPTX presentations to PDF slides, notes pages or handouts, to HTML, and to ODP with OfficeIMO.PowerPoint.Pdf, PSWriteOffice and the CLI.

**Packages**

- [OfficeIMO.PowerPoint](https://www.nuget.org/packages/OfficeIMO.PowerPoint) `dotnet add package OfficeIMO.PowerPoint`
- [OfficeIMO.PowerPoint.Pdf](https://www.nuget.org/packages/OfficeIMO.PowerPoint.Pdf) `dotnet add package OfficeIMO.PowerPoint.Pdf`
- [OfficeIMO.PowerPoint.Html](https://www.nuget.org/packages/OfficeIMO.PowerPoint.Html) `dotnet add package OfficeIMO.PowerPoint.Html`
- [OfficeIMO.PowerPoint.OpenDocument](https://www.nuget.org/packages/OfficeIMO.PowerPoint.OpenDocument) `dotnet add package OfficeIMO.PowerPoint.OpenDocument`

**Works with**

- .NET
- [PowerShell](/docs/pswriteoffice/install/) `Install-Module PSWriteOffice`
- [CLI](/docs/cli/install/) `dotnet tool install --global OfficeIMO.Tool`

**Target frameworks**

netstandard2.0, net8.0, net10.0, net472

**APIs**

- [`PowerPointDocument`](/api/powerpoint/officeimo-powerpoint-powerpointdocument/)
- [`OfficeConversionReport`](/api/core/officeimo-officeconversionreport/)
- [`PowerPointPdfExportOptions`](/api/power-point-pdf/officeimo-powerpoint-pdf-powerpointpdfexportoptions/)
- [`PowerPointPdfPageLayout`](/api/power-point-pdf/officeimo-powerpoint-pdf-powerpointpdfpagelayout/)
- [`OfficeDiagnostic`](/api/core/officeimo-officediagnostic/)

**Cmdlets**

- [`Convert-OfficeDocument`](/api/powershell/convert-officedocument/)
- [`New-OfficePowerPointPdfOptions`](/api/powershell/new-officepowerpointpdfoptions/)

**Commands**

- [`officeimo convert`](/docs/cli/convert/)

**Limits**

Conversion writes a static view of each slide; animations, transitions, and media playback are not carried into PDF or HTML. [OfficeIMO.PowerPoint support matrix](/compatibility/#package-powerpoint), [OfficeIMO.PowerPoint.Pdf support matrix](/compatibility/#package-powerpoint-pdf), [OfficeIMO.PowerPoint.Html support matrix](/compatibility/#package-powerpoint-html), [OfficeIMO.PowerPoint.OpenDocument support matrix](/compatibility/#package-powerpoint-opendocument)

**Verified**

Examples compiled against the source on 2026-11-14

**Data**

- [OfficeIMO.PowerPoint API index](/api/powerpoint/index.json)
- [OfficeIMO.PowerPoint.Pdf API index](/api/power-point-pdf/index.json)
- [OfficeIMO.PowerPoint.Html API index](/api/power-point-html/index.json)
- [OfficeIMO.PowerPoint.OpenDocument API index](/api/power-point-open-document/index.json)
- [PSWriteOffice command catalog](/data/powershell/commands.json)
- [CLI command catalog](/data/cli/commands.json)
- [Capability catalog (JSON)](/data/capabilities.json)

Each output format has its own package, so an application only takes the renderer it ships: `OfficeIMO.PowerPoint.Pdf` for PDF, `OfficeIMO.PowerPoint.Html` for HTML, and `OfficeIMO.PowerPoint.OpenDocument` for ODP. They add `SaveAs...` extension methods to `PowerPointDocument`. Every conversion returns an `OfficeConversionReport` whose `Diagnostics` list what was approximated or left out; treat it as part of the result.

## Convert a presentation to PDF

### C#

```csharp
using OfficeIMO;
using OfficeIMO.PowerPoint;
using OfficeIMO.PowerPoint.Pdf;

using PowerPointDocument presentation = PowerPointDocument.Load("quarterly-review.pptx");
OfficeConversionReport report = presentation.SaveAsPdf("quarterly-review.pdf");

foreach (OfficeDiagnostic diagnostic in report.Diagnostics) {
    Console.WriteLine($"{diagnostic.Severity} {diagnostic.Code}: {diagnostic.Message}");
}
```

Set `FailOnLoss = true` in `PowerPointPdfExportOptions` to throw instead of writing a PDF when the report records loss.

### PowerShell

```powershell
Convert-OfficeDocument -Path .\quarterly-review.pptx -OutputPath .\quarterly-review.pdf
Get-ChildItem .\decks -Filter *.pptx | Convert-OfficeDocument -To Pdf -OutputDirectory .\pdf
```

### CLI

```sh
officeimo convert quarterly-review.pptx quarterly-review.pdf
```

## Print notes pages or handouts

`PageLayout` switches from one slide per page to notes pages (slide plus speaker notes) or handouts with 1, 2, 3, 4, 6, or 9 slides per page.

### C#

```csharp
using OfficeIMO.PowerPoint;
using OfficeIMO.PowerPoint.Pdf;

using PowerPointDocument presentation = PowerPointDocument.Load("training.pptx");

presentation.SaveAsPdf("training-notes.pdf", new PowerPointPdfExportOptions {
    PageLayout = PowerPointPdfPageLayout.NotesPages
});

presentation.SaveAsPdf("training-handout.pdf", new PowerPointPdfExportOptions {
    PageLayout = PowerPointPdfPageLayout.Handouts,
    HandoutSlidesPerPage = 6,
    IncludeHiddenSlides = false
});
```

### PowerShell

```powershell
$notes = New-OfficePowerPointPdfOptions -PageLayout NotesPages
Convert-OfficeDocument -Path .\training.pptx -OutputPath .\training-notes.pdf -Options $notes

$handout = New-OfficePowerPointPdfOptions -PageLayout Handouts -HandoutSlidesPerPage 6
Convert-OfficeDocument -Path .\training.pptx -OutputPath .\training-handout.pdf -Options $handout
```

## Convert a presentation to HTML

### C#

```csharp
using OfficeIMO;
using OfficeIMO.PowerPoint;
using OfficeIMO.PowerPoint.Html;

using PowerPointDocument presentation = PowerPointDocument.Load("quarterly-review.pptx");
OfficeConversionReport report = presentation.SaveAsHtml("quarterly-review.html");
Console.WriteLine($"Wrote {report.OutputPath}");
```

`presentation.ToHtml()` returns the same markup as a string.

## Convert a presentation to OpenDocument (ODP)

### C#

```csharp
using OfficeIMO.PowerPoint;
using OfficeIMO.PowerPoint.OpenDocument;

using PowerPointDocument presentation = PowerPointDocument.Load("quarterly-review.pptx");
presentation.SaveAsOpenDocument("quarterly-review.odp");
```

### PowerShell

```powershell
Convert-OfficeDocument -Path .\quarterly-review.pptx -OutputPath .\quarterly-review.odp
```

### CLI

```sh
officeimo convert quarterly-review.pptx quarterly-review.odp
officeimo convert proposal.odp proposal.pptx
```

<!-- PowerForge markdown source sha256:60D84DB99FBA8F9F1A67BD2BA7AD7C27B5225FC5C2FCC107DEBE56F66386A369; title=True -->

<!-- PowerForge markdown artifact sha256:51EA9FB5C6FCAAA015567ACDEB3833B28595DAEB4979D73C425B314969DFB6D2 -->
