Presentation

Overview

Presentation is a class in Aspose.Slides FOSS for Java. Inherits from: IPresentation.

Represents a PowerPoint presentation.

Properties

NameTypeAccessDescription
presentationIPresentationReadProvides access to the underlying IPresentation object
currentDateTimeLocalDateTimeReadGets or sets the presentation’s current date and time
documentPropertiesIDocumentPropertiesReadAccesses the document properties collection
commentAuthorsICommentAuthorCollectionReadAccesses the collection of comment authors
slidesISlideCollectionReadProvides the slide collection of the presentation
notesSizeINotesSizeReadAccesses the notes size configuration
layoutSlidesIGlobalLayoutSlideCollectionReadProvides the global layout slide collection
mastersIMasterSlideCollectionReadProvides access to the master slide collection
imagesIImageCollectionReadProvides the collection of embedded images
sourceFormatSourceFormatReadIndicates the source format of the loaded file
firstSlideNumberintReadGets or sets the index of the first slide displayed

Methods

SignatureDescription
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()IPresentationReturns the underlying IPresentation instance
getCurrentDateTime()LocalDateTimeRetrieves the presentation’s current date and time
setCurrentDateTime(value: LocalDateTime)Sets the presentation’s current date and time
getDocumentProperties()IDocumentPropertiesReturns the document properties collection
getCommentAuthors()ICommentAuthorCollection
getSlides()ISlideCollectionReturns the slide collection of the presentation
getNotesSize()INotesSizeReturns the notes size settings for the presentation
getLayoutSlides()IGlobalLayoutSlideCollectionReturns the global layout slide collection
getMasters()IMasterSlideCollectionReturns the master slide collection
getImages()IImageCollectionReturns the image collection embedded in the presentation
getSourceFormat()SourceFormatReturns the source format of the loaded presentation
getFirstSlideNumber()intGets the number of the first slide displayed
setFirstSlideNumber(value: int)Sets the number of the first slide displayed
asIPresentationComponent()IPresentationComponentCasts 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