IPresentation

概述

IPresentation 是 Aspose.Slides FOSS 中用于 Java 的接口。继承自:IPresentationComponent,AutoCloseable。

表示一个演示文档。

此接口为在 Java 程序中操作 IPresentation 对象提供了 26 个方法。可用的方法包括:asIPresentationComponent、dispose、getCommentAuthors、getCurrentDateTime、getDocumentProperties、getFirstSlideNumber、getImages、getLayoutSlides、getMasters、getNotesSize、getPresentation、getSlides,以及另外 4 个方法。所有公共成员在安装 Aspose.Slides FOSS for Java 包后,对任何 Java 应用程序均可访问。属性:commentAuthors、currentDateTime、documentProperties、firstSlideNumber、images、layoutSlides,以及另外 5 项。

属性

名称类型访问描述
currentDateTimeLocalDateTime读取返回日期和时间,用于替换 datetime 字段的内容。
slidesISlideCollection读取返回演示文稿中定义的所有幻灯片的列表。
notesSizeINotesSize读取返回 notes slide size object。
layoutSlidesIGlobalLayoutSlideCollection读取返回在演示文稿中定义的所有布局幻灯片列表。
mastersIMasterSlideCollection读取返回在演示文稿中定义的所有母版幻灯片列表。
commentAuthorsICommentAuthorCollection读取返回评论作者的集合。
documentPropertiesIDocumentProperties读取返回包含标准和自定义文档属性的 DocumentProperties 对象。
imagesIImageCollection读取返回演示文稿中所有图像的集合。
sourceFormatSourceFormat读取返回关于演示文稿是从哪种格式加载的信息。
firstSlideNumberint读取表示演示文稿中的第一张幻灯片编号。
presentationIPresentation读取返回包含此组件的演示文稿。

方法

签名描述
getCurrentDateTime() → LocalDateTime返回日期和时间,这将替代 datetime 字段的内容。
setCurrentDateTime(value: LocalDateTime)设置日期和时间,这将替代 datetime 字段的内容。
getSlides() → ISlideCollection返回在演示文稿中定义的所有幻灯片的列表。
getNotesSize() → INotesSize返回备注幻灯片大小对象。
getLayoutSlides() → IGlobalLayoutSlideCollection返回演示文稿中定义的所有布局幻灯片的列表。
getMasters() → IMasterSlideCollection返回演示文稿中定义的所有母版幻灯片的列表。
getCommentAuthors() → ICommentAuthorCollection返回评论作者的集合。
getDocumentProperties() → IDocumentProperties返回包含标准和自定义文档属性的 DocumentProperties 对象。
getImages() → IImageCollection返回演示文稿中所有图像的集合。
getSourceFormat() → SourceFormat返回有关演示文稿是从哪种格式加载的信息。
getFirstSlideNumber() → int表示演示文稿中的第一张幻灯片编号。
setFirstSlideNumber(value: int)设置演示文稿中的第一张幻灯片编号。
asIPresentationComponent() → IPresentationComponent返回基础 {@link IPresentationComponent} 接口。
save(path: String)将演示文稿保存到指定的文件路径。
save(stream: OutputStream)将演示文稿保存到给定的输出流。
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)使用指定的保存选项保存演示文稿。
dispose()释放此演示文稿占用的资源。
getPresentation() → IPresentation返回包含此组件的演示文稿。

另请参阅

 中文