Presentation
Overview
Presentation is a class in Aspose.Slides FOSS for Java.
Inherits from: IPresentation.
Represents a PowerPoint presentation.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
presentation | IPresentation | Read | Provides access to the underlying IPresentation object |
currentDateTime | LocalDateTime | Read | Gets or sets the presentation’s current date and time |
documentProperties | IDocumentProperties | Read | Accesses the document properties collection |
commentAuthors | ICommentAuthorCollection | Read | Accesses the collection of comment authors |
slides | ISlideCollection | Read | Provides the slide collection of the presentation |
notesSize | INotesSize | Read | Accesses the notes size configuration |
layoutSlides | IGlobalLayoutSlideCollection | Read | Provides the global layout slide collection |
masters | IMasterSlideCollection | Read | Provides access to the master slide collection |
images | IImageCollection | Read | Provides the collection of embedded images |
sourceFormat | SourceFormat | Read | Indicates the source format of the loaded file |
firstSlideNumber | int | Read | Gets or sets the index of the first slide displayed |
Methods
| Signature | Description |
|---|---|
Presentation() | Creates a new blank presentation with one slide. |
Presentation(path: String) | Opens a presentation from the given file path. |
Presentation(in: InputStream) | Opens a presentation from the given input stream. |
save(path: String) | Writes the presentation to the provided output stream using default format |
save(stream: OutputStream) | |
getPresentation() → IPresentation | Returns the underlying IPresentation instance |
getCurrentDateTime() → LocalDateTime | Retrieves the presentation’s current date and time |
setCurrentDateTime(value: LocalDateTime) | Sets the presentation’s current date and time |
getDocumentProperties() → IDocumentProperties | Returns the document properties collection |
getCommentAuthors() → ICommentAuthorCollection | |
getSlides() → ISlideCollection | Returns the slide collection of the presentation |
getNotesSize() → INotesSize | Returns the notes size settings for the presentation |
getLayoutSlides() → IGlobalLayoutSlideCollection | Returns the global layout slide collection |
getMasters() → IMasterSlideCollection | Returns the master slide collection |
getImages() → IImageCollection | Returns the image collection embedded in the presentation |
getSourceFormat() → SourceFormat | Returns the source format of the loaded presentation |
getFirstSlideNumber() → int | Gets the number of the first slide displayed |
setFirstSlideNumber(value: int) | Sets the number of the first slide displayed |
asIPresentationComponent() → IPresentationComponent | Casts the presentation to IPresentationComponent |
save(path: String, format: SaveFormat) | |
save(stream: OutputStream, format: SaveFormat) | |
save(path: String, format: SaveFormat, options: ISaveOptions) | |
save(stream: OutputStream, format: SaveFormat, options: ISaveOptions) | |
save(path: String, slides: int[], format: SaveFormat) | |
save(path: String, slides: int[], format: SaveFormat, options: ISaveOptions) | |
save(stream: OutputStream, slides: int[], format: SaveFormat) | |
save(stream: OutputStream, slides: int[], format: SaveFormat, options: ISaveOptions) | |
save(options: ISaveOptions) | Not implemented in the FOSS edition — throws at runtime. |
dispose() | |
close() | Closes the presentation and frees associated resources |