public interface SlideShow<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
FontInfo |
addFont(java.io.InputStream fontData)
Add an EOT font to the slideshow.
(在幻灯片中添加 EOT 字体。)
|
PictureData |
addPicture(byte[] pictureData, PictureData.PictureType format)
Adds a picture to the presentation.
(在演示文稿中添加图片。)
|
PictureData |
addPicture(java.io.File pict, PictureData.PictureType format)
Adds a picture to the presentation.
(在演示文稿中添加图片。)
|
PictureData |
addPicture(java.io.InputStream is, PictureData.PictureType format)
Adds a picture to the presentation.
(在演示文稿中添加图片。)
|
MasterSheet<S,P> |
createMasterSheet() |
Slide<S,P> |
createSlide() |
PictureData |
findPictureData(byte[] pictureData)
check if a picture with this picture data already exists in this presentation
(检查此演示文稿中是否已存在具有此图片数据的图片)
|
java.util.List<? extends FontInfo> |
getFonts() |
POITextExtractor |
getMetadataTextExtractor() |
java.awt.Dimension |
getPageSize()
Returns the current page size
(返回当前页面大小)
|
java.lang.Object |
getPersistDocument() |
java.util.List<? extends PictureData> |
getPictureData()
Returns all Pictures of this slideshow.
(返回此幻灯片的所有图片。)
|
java.util.List<? extends MasterSheet<S,P>> |
getSlideMasters()
Returns all slide masters.
(返回所有幻灯片母版。)
|
java.util.List<? extends Slide<S,P>> |
getSlides() |
void |
setPageSize(java.awt.Dimension pgsize)
Change the current page size
(更改当前页面大小)
|
void |
write(java.io.OutputStream out)
Writes out the slideshow file the is represented by an instance of this class
(写出由此类的实例表示的幻灯片文件)
|
Slide<S,P> createSlide() throws java.io.IOException
java.io.IOException
(java.io.IOException)
MasterSheet<S,P> createMasterSheet() throws java.io.IOException
java.io.IOException
(java.io.IOException)
java.util.List<? extends MasterSheet<S,P>> getSlideMasters()
java.awt.Dimension getPageSize()
void setPageSize(java.awt.Dimension pgsize)
pgsize
- page size (in points)
(pgsize - 页面大小(以磅为单位))
java.util.List<? extends PictureData> getPictureData()
List
is unmodifiable.
(返回此幻灯片的所有图片。返回的 List 是不可修改的。)
List
of
PictureData
.
(图片数据列表。)
PictureData addPicture(byte[] pictureData, PictureData.PictureType format) throws java.io.IOException
pictureData
- The bytes of the picture
(pictureData - 图片的字节数)
format
- The format of the picture.
(format - 图片的格式。)
java.io.IOException
(java.io.IOException)
PictureData addPicture(java.io.InputStream is, PictureData.PictureType format) throws java.io.IOException
is
- The stream to read the image from
(is - 从中读取图像的流)
format
- The format of the picture.
(format - 图片的格式。)
java.io.IOException
(java.io.IOException)
PictureData addPicture(java.io.File pict, PictureData.PictureType format) throws java.io.IOException
pict
- The file containing the image to add
(pict - 包含要添加的图像的文件)
format
- The format of the picture.
(format - 图片的格式。)
java.io.IOException
(java.io.IOException)
PictureData findPictureData(byte[] pictureData)
pictureData
- The picture data to find in the SlideShow
(pictureData - 要在幻灯片中查找的图片数据)
null
if picture data is not found in this slideshow
(如果在此幻灯片中未找到图片数据,则为 null)
void write(java.io.OutputStream out) throws java.io.IOException
out
- The OutputStream to write to.
(out - 要写入的 OutputStream。)
java.io.IOException
- If there is an unexpected IOException from the passed in OutputStream
(java.io.IOException - 如果传入的 OutputStream 出现意外的 IOException)
POITextExtractor getMetadataTextExtractor()
java.lang.Object getPersistDocument()
POIDocument
or
POIXMLDocument
(处理幻灯片持久化的实例,它是 POIDocument 或 POIXMLDocument 的子类)
FontInfo addFont(java.io.InputStream fontData) throws java.io.IOException
(Older?) Powerpoint versions handle embedded fonts by converting them to .ttf files and put them into the Windows fonts directory. If the user is not allowed to install fonts, the slideshow can't be opened. While the slideshow is opened, its possible to copy the extracted .ttfs from the fonts directory. When the slideshow is closed, they will be removed.
(在幻灯片中添加 EOT 字体。 EOT 或 MTX 字体是转换后的 True-Type (.ttf) 或 Open-Type (.otf) 字体。要转换 True-Type 字体,请使用 sfntly 库(参见下面的“另请参阅”)(旧版?)Powerpoint 版本通过将嵌入字体转换为 .ttf 文件并将它们放入 Windows 字体目录来处理嵌入字体。如果不允许用户安装字体,则无法打开幻灯片。打开幻灯片时,可以从字体目录中复制提取的 .ttfs。当幻灯片关闭时,它们将被删除。)fontData
- the EOT font as stream
(fontData - 作为流的 EOT 字体)
java.io.IOException
- if the fontData can't be saved or if the fontData is no EOT font
(java.io.IOException - 如果 fontData 无法保存或者 fontData 不是 EOT 字体)
java.util.List<? extends FontInfo> getFonts()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.