public class KeynotePresentation
extends java.lang.Object
Keynote presentation is a zip file in the end. the zip file
contains xml files describing the structure as well as thumbnails for each slide.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAMESAPCES_SF |
static java.lang.String |
NAMESAPCES_SFA |
static java.lang.String |
NAMESPACES_KEYNOTE2 |
| Constructor and Description |
|---|
KeynotePresentation(java.io.InputStream is)
The constructor expects the
InputStream from the actual
presentation. |
| Modifier and Type | Method and Description |
|---|---|
void |
clearUnusedMasters()
Removes master slides that are no longer in use.
|
void |
clearUnusedResources()
Removes resources that are no longer in use.
|
int |
getHeight()
Get height
|
KeynoteMasterSlide |
getMaster(java.lang.String masterid) |
java.util.Collection<KeynoteMasterSlide> |
getMasters() |
java.io.InputStream |
getResource(java.lang.String path) |
java.util.List<KeynoteSlide> |
getSlides()
Get the list of slides
|
java.awt.image.BufferedImage |
getThumbnail()
Get presentation thumbnail
|
int |
getWidth()
Get width
|
void |
removeMaster(KeynoteMasterSlide master)
Removes the given slide master
|
void |
removeSlide(KeynoteSlide slide)
Removes the given slide from the presentation
|
void |
save(java.io.OutputStream out)
Save modified presentation
|
public static final java.lang.String NAMESPACES_KEYNOTE2
public static final java.lang.String NAMESAPCES_SF
public static final java.lang.String NAMESAPCES_SFA
public KeynotePresentation(java.io.InputStream is)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
InputStream from the actual
presentation.is - InputStream from the actual presentationjava.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionpublic int getWidth()
public int getHeight()
public java.awt.image.BufferedImage getThumbnail()
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<KeynoteSlide> getSlides()
public void removeSlide(KeynoteSlide slide)
slide - Slide
to be removedpublic void removeMaster(KeynoteMasterSlide master)
master - Master Slide
to be removedpublic void clearUnusedMasters()
public void clearUnusedResources()
public void save(java.io.OutputStream out)
throws java.io.IOException
out - OutputStream used for save "destination"java.io.IOExceptionpublic java.io.InputStream getResource(java.lang.String path)
public java.util.Collection<KeynoteMasterSlide> getMasters()
public KeynoteMasterSlide getMaster(java.lang.String masterid)
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"