Presentation

Overview

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

Represents a PowerPoint presentation.

This class provides 30 methods for working with Presentation objects in Java programs. Available methods include: Presentation, asIPresentationComponent, close, dispose, getCommentAuthors, getCurrentDateTime, getDocumentProperties, getFirstSlideNumber, getImages, getLayoutSlides, getMasters, getNotesSize, and 6 additional methods. All 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

NameTypeAccessDescription
presentationIPresentationReadGets the presentation.
currentDateTimeLocalDateTimeReadGets the current date time.
documentPropertiesIDocumentPropertiesReadGets the document properties.
commentAuthorsICommentAuthorCollectionReadGets the comment authors.
slidesISlideCollectionReadGets the slides.
notesSizeINotesSizeReadGets the notes size.
layoutSlidesIGlobalLayoutSlideCollectionReadGets the layout slides.
mastersIMasterSlideCollectionReadGets the masters.
imagesIImageCollectionReadGets the images.
sourceFormatSourceFormatReadGets the source format.
firstSlideNumberintReadGets the first slide number.

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)Saves only the listed slide indices to the stream in the format with options
save(stream: OutputStream)
getPresentation()IPresentationReturns the presentation.
getCurrentDateTime()LocalDateTimeReturns the current date time.
setCurrentDateTime(value: LocalDateTime)Sets the current date time value.
getDocumentProperties()IDocumentPropertiesReturns the document properties.
getCommentAuthors()ICommentAuthorCollectionReturns the comment authors.
getSlides()ISlideCollectionReturns the slides.
getNotesSize()INotesSizeReturns the notes size.
getLayoutSlides()IGlobalLayoutSlideCollectionReturns the layout slides.
getMasters()IMasterSlideCollectionReturns the masters.
getImages()IImageCollectionReturns the images.
getSourceFormat()SourceFormatReturns the source format.
getFirstSlideNumber()intReturns the first slide number.
setFirstSlideNumber(value: int)Sets the first slide number value.
asIPresentationComponent()IPresentationComponentReturns the presentation as an 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()Releases all resources used by the presentation
close()Closes the presentation and releases resources

See Also