Presentation

Overview

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

Represents a PowerPoint presentation.

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

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)Calls save(stream) on this Presentation instance.
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)Calls save(path, format) on this Presentation instance.
save(stream: OutputStream, format: SaveFormat)Calls save(stream, format) on this Presentation instance.
save(path: String, format: SaveFormat, options: ISaveOptions)Calls save(path, format, options) on this Presentation instance.
save(stream: OutputStream, format: SaveFormat, options: ISaveOptions)Calls save(stream, format, options) on this Presentation instance.
save(path: String, slides: int[], format: SaveFormat)Calls save(path, slides, format) on this Presentation instance.
save(path: String, slides: int[], format: SaveFormat, options: ISaveOptions)Calls save(path, slides, format, options) on this Presentation instance.
save(stream: OutputStream, slides: int[], format: SaveFormat)Calls save(stream, slides, format) on this Presentation instance.
save(stream: OutputStream, slides: int[], format: SaveFormat, options: ISaveOptions)Calls save(stream, slides, format, options) on this Presentation instance.
save(options: ISaveOptions)Not implemented in the FOSS edition — throws at runtime. Calls save(options) on this Presentation instance.
dispose()Releases all resources used by the presentation
close()Closes the presentation and releases resources

See Also

 English