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 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
currentDateTime | LocalDateTime | 读取 | 返回日期和时间,用于替换 datetime 字段的内容。 |
slides | ISlideCollection | 读取 | 返回演示文稿中定义的所有幻灯片的列表。 |
notesSize | INotesSize | 读取 | 返回 notes slide size object。 |
layoutSlides | IGlobalLayoutSlideCollection | 读取 | 返回在演示文稿中定义的所有布局幻灯片列表。 |
masters | IMasterSlideCollection | 读取 | 返回在演示文稿中定义的所有母版幻灯片列表。 |
commentAuthors | ICommentAuthorCollection | 读取 | 返回评论作者的集合。 |
documentProperties | IDocumentProperties | 读取 | 返回包含标准和自定义文档属性的 DocumentProperties 对象。 |
images | IImageCollection | 读取 | 返回演示文稿中所有图像的集合。 |
sourceFormat | SourceFormat | 读取 | 返回关于演示文稿是从哪种格式加载的信息。 |
firstSlideNumber | int | 读取 | 表示演示文稿中的第一张幻灯片编号。 |
presentation | IPresentation | 读取 | 返回包含此组件的演示文稿。 |
方法
| 签名 | 描述 |
|---|---|
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 | 返回包含此组件的演示文稿。 |