---
title: "PresentationEditor"
canonical_url: "https://www.nutrient.io/api/csharp/editors/presentation-editor/"
md_url: "https://www.nutrient.io/api/csharp/editors/presentation-editor.md"
last_updated: "2026-10-08T08:55:57.709Z"
description: "Provides specialized editing capabilities for presentation documents."
---

Provides specialized editing capabilities for presentation documents. Supports template-based document generation and manipulation of OpenXML PowerPoint documents.

```csharp

using Nutrient;

```

The SDK creates this class through factory methods or other SDK objects.

## Methods

### ApplyTemplateModel

```csharp

public void ApplyTemplateModel(Stream stream)

```

Applies a template model to the presentation document from a stream.

**Parameters**

| Name     | Type     | Description                                         |
| -------- | -------- | --------------------------------------------------- |
| `stream` | `Stream` | The stream containing the JSON template model data. |

```csharp

public void ApplyTemplateModel(string jsonTemplate)

```

Applies a template model to the presentation document from a JSON string.

**Parameters**

| Name           | Type     | Description                                         |
| -------------- | -------- | --------------------------------------------------- |
| `jsonTemplate` | `string` | The JSON string containing the template model data. |

### Edit

```csharp

public static PresentationEditor Edit(Document document)

```

Creates a new PresentationEditor instance and begins editing the specified document.

**Parameters**

| Name       | Type                                | Description           |
| ---------- | ----------------------------------- | --------------------- |
| `document` | [`Document`](/api/csharp/document/) | The document to edit. |

**Returns:** [`PresentationEditor`](/api/csharp/editors/presentation-editor/) - A new PresentationEditor instance for editing the document.

### Save

```csharp

public void Save()

```

Saves the current changes made in the editor.

### SaveAs

```csharp

public void SaveAs(string path)

```

Saves the current changes to a file at the specified path.

**Parameters**

| Name   | Type     | Description                                     |
| ------ | -------- | ----------------------------------------------- |
| `path` | `string` | The file path where the document will be saved. |

```csharp

public void SaveAs(Stream stream)

```

Saves the current changes to the specified stream.

**Parameters**

| Name     | Type     | Description                                  |
| -------- | -------- | -------------------------------------------- |
| `stream` | `Stream` | The stream where the document will be saved. |

### SaveWithModelAs

```csharp

public void SaveWithModelAs(Stream stream)

```

Saves the presentation document with the applied template model to a stream.

**Parameters**

| Name     | Type     | Description                                                   |
| -------- | -------- | ------------------------------------------------------------- |
| `stream` | `Stream` | The output stream where the processed document will be saved. |

```csharp

public void SaveWithModelAs(string path)

```

Saves the presentation document with the applied template model to a file.

**Parameters**

| Name   | Type     | Description                                               |
| ------ | -------- | --------------------------------------------------------- |
| `path` | `string` | The file path where the processed document will be saved. |

## Close

```csharp

public void Close()

```

Closes the document currently being edited. The editor remains usable.

## Resource management

```csharp

public void Dispose()

```

`PresentationEditor` implements `IDisposable`. Call `Dispose()` or use a C# `using` declaration to release its native handle right away. If you don't, the handle is released when the object is garbage collected.

---

## Related pages

- [Editors](/api/csharp/editors.md)
- [Pdf Editor](/api/csharp/editors/pdf-editor.md)
- [Spreadsheet Editor](/api/csharp/editors/spreadsheet-editor.md)
- [Word Editor](/api/csharp/editors/word-editor.md)

