---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/ipresentation
---

# IPresentation

## Overview

`IPresentation` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `IPresentationComponent`, `AutoCloseable`.

Represents a presentation document.

This interface declares 26 methods for IPresentation objects in Java programs.
Available methods include: `asIPresentationComponent`, `dispose`, `getCommentAuthors`, `getCurrentDateTime`, `getDocumentProperties`, `getFirstSlideNumber`, `getImages`, `getLayoutSlides`, `getMasters`, `getNotesSize`, `getPresentation`, `getSlides`, and 4 additional methods.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `commentAuthors`, `currentDateTime`, `documentProperties`, `firstSlideNumber`, `images`, `layoutSlides`, and 5 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `currentDateTime` | `LocalDateTime` | Read/Write | Returns date and time which will substitute content of datetime fields. |
| `slides` | `ISlideCollection` | Read | Returns a list of all slides that are defined in the presentation. |
| `notesSize` | `INotesSize` | Read | Returns notes slide size object. |
| `layoutSlides` | `IGlobalLayoutSlideCollection` | Read | Returns a list of all layout slides that are defined in the presentation. |
| `masters` | `IMasterSlideCollection` | Read | Returns a list of all master slides that are defined in the presentation. |
| `commentAuthors` | `ICommentAuthorCollection` | Read | Returns the collection of comments authors. |
| `documentProperties` | `IDocumentProperties` | Read | Returns DocumentProperties object which contains standard and custom document properties. |
| `images` | `IImageCollection` | Read | Returns the collection of all images in the presentation. |
| `sourceFormat` | `SourceFormat` | Read | Returns information about from which format presentation was loaded. |
| `firstSlideNumber` | `int` | Read/Write | Represents the first slide number in the presentation. |
| `presentation` | `IPresentation` | Read | Returns the presentation containing this component. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getCurrentDateTime()` → `LocalDateTime` | Returns date and time which will substitute content of datetime fields. |
| `setCurrentDateTime(value: LocalDateTime)` | Sets date and time which will substitute content of datetime fields. |
| `getSlides()` → `ISlideCollection` | Returns a list of all slides that are defined in the presentation. |
| `getNotesSize()` → `INotesSize` | Returns notes slide size object. |
| `getLayoutSlides()` → `IGlobalLayoutSlideCollection` | Returns a list of all layout slides that are defined in the presentation. |
| `getMasters()` → `IMasterSlideCollection` | Returns a list of all master slides that are defined in the presentation. |
| `getCommentAuthors()` → `ICommentAuthorCollection` | Returns the collection of comments authors. |
| `getDocumentProperties()` → `IDocumentProperties` | Returns DocumentProperties object which contains standard and custom document properties. |
| `getImages()` → `IImageCollection` | Returns the collection of all images in the presentation. |
| `getSourceFormat()` → `SourceFormat` | Returns information about from which format presentation was loaded. |
| `getFirstSlideNumber()` → `int` | Represents the first slide number in the presentation. |
| `setFirstSlideNumber(value: int)` | Sets the first slide number in the presentation. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns the base {@link IPresentationComponent} interface. |
| `save(path: String)` | Saves the presentation to the given file path. |
| `save(stream: OutputStream)` | Saves the presentation to the given output stream. |
| `save(path: String, format: SaveFormat)` | Saves the presentation to the given file path in the specified format. |
| `save(stream: OutputStream, format: SaveFormat)` | Saves the presentation to the given output stream in the specified format. |
| `save(path: String, format: SaveFormat, options: ISaveOptions)` | Saves the presentation to the given file path with the specified options. |
| `save(stream: OutputStream, format: SaveFormat, options: ISaveOptions)` | Saves the presentation to the given output stream with the specified options. |
| `save(path: String, slides: int[], format: SaveFormat)` | Saves the specified slides of the presentation to the given file path. |
| `save(path: String, slides: int[], format: SaveFormat, options: ISaveOptions)` | Saves the specified slides of the presentation to the given file path with options. |
| `save(stream: OutputStream, slides: int[], format: SaveFormat)` | Saves the specified slides of the presentation to the given output stream. |
| `save(stream: OutputStream, slides: int[], format: SaveFormat, options: ISaveOptions)` | Saves the specified slides of the presentation to the given output stream with options. |
| `save(options: ISaveOptions)` | Saves the presentation using the specified save options. |
| `dispose()` | Disposes of resources held by this presentation. |
| `getPresentation()` → `IPresentation` | Returns the presentation containing this component. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)