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.
|
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
|
MasterSheet<S,P> createMasterSheet() throws 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)java.util.List<? extends PictureData> getPictureData()
List
is unmodifiable.List
of PictureData
.PictureData addPicture(byte[] pictureData, PictureData.PictureType format) throws java.io.IOException
pictureData
- The bytes of the pictureformat
- The format of the picture.java.io.IOException
PictureData addPicture(java.io.InputStream is, PictureData.PictureType format) throws java.io.IOException
is
- The stream to read the image fromformat
- The format of the picture.java.io.IOException
PictureData addPicture(java.io.File pict, PictureData.PictureType format) throws java.io.IOException
pict
- The file containing the image to addformat
- The format of the picture.java.io.IOException
PictureData findPictureData(byte[] pictureData)
pictureData
- The picture data to find in the SlideShownull
if picture data is not found in this slideshowvoid write(java.io.OutputStream out) throws java.io.IOException
out
- The OutputStream to write to.java.io.IOException
- If there is an unexpected IOException from the passed in
OutputStreamPOITextExtractor getMetadataTextExtractor()
java.lang.Object getPersistDocument()
POIDocument
or 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.
fontData
- the EOT font as streamjava.io.IOException
- if the fontData can't be saved or if the fontData is no EOT fontjava.util.List<? extends FontInfo> getFonts()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.