Presentation

概述

Presentation 是 Aspose.Slides FOSS 中用于 Java 的类。继承自:IPresentation。

表示一个 PowerPoint 演示。

此类提供 30 个方法,用于在 Java 程序中处理 Presentation 对象。可用的方法包括:Presentation、asIPresentationComponent、close、dispose、getCommentAuthors、getCurrentDateTime、getDocumentProperties、getFirstSlideNumber、getImages、getLayoutSlides、getMasters、getNotesSize,以及另外 6 个方法。安装 Aspose.Slides FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性:commentAuthors、currentDateTime、documentProperties、firstSlideNumber、images、layoutSlides,以及另外 5 项。

属性

名称类型访问描述
presentationIPresentation读取获取演示文稿。
currentDateTimeLocalDateTime读取获取当前日期时间。
documentPropertiesIDocumentProperties读取获取文档属性。
commentAuthorsICommentAuthorCollection读取获取评论作者。
slidesISlideCollection读取获取幻灯片。
notesSizeINotesSize读取获取备注的大小。
layoutSlidesIGlobalLayoutSlideCollection读取获取布局幻灯片。
mastersIMasterSlideCollection读取获取 masters。
imagesIImageCollection读取获取图像。
sourceFormatSourceFormat读取获取源格式。
firstSlideNumberint读取获取第一张幻灯片的编号。

方法

签名描述
Presentation()创建一个包含一张幻灯片的新空白演示文稿。
Presentation(path: String)从给定的文件路径打开演示文稿。
Presentation(in: InputStream)从给定的输入流打开演示文稿。
save(path: String)仅将列出的幻灯片索引保存到流中,使用带选项的格式
save(stream: OutputStream)
getPresentation() → IPresentation返回演示文稿。
getCurrentDateTime() → LocalDateTime返回当前日期时间。
setCurrentDateTime(value: LocalDateTime)设置当前日期时间值。
getDocumentProperties() → IDocumentProperties返回文档属性。
getCommentAuthors() → ICommentAuthorCollection返回评论作者。
getSlides() → ISlideCollection返回幻灯片。
getNotesSize() → INotesSize返回备注大小。
getLayoutSlides() → IGlobalLayoutSlideCollection返回布局幻灯片。
getMasters() → IMasterSlideCollection返回母版。
getImages() → IImageCollection返回图像。
getSourceFormat() → SourceFormat返回源格式。
getFirstSlideNumber() → int返回第一张幻灯片的编号。
setFirstSlideNumber(value: int)设置第一张幻灯片编号的值。
asIPresentationComponent() → IPresentationComponent返回演示文稿为 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)在 FOSS 版中未实现 — 在运行时抛出。
dispose()释放演示使用的所有资源
close()关闭演示并释放资源

另请参阅

 中文