public class KeynotePresentation extends 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 String |
NAMESAPCES_SF |
static String |
NAMESAPCES_SFA |
static String |
NAMESPACES_KEYNOTE2 |
Constructor and Description |
---|
KeynotePresentation(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(String masterid) |
Collection<KeynoteMasterSlide> |
getMasters() |
InputStream |
getResource(String path) |
List<KeynoteSlide> |
getSlides()
Get the list of slides
|
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(OutputStream out)
Save modified presentation
|
public static final String NAMESPACES_KEYNOTE2
public static final String NAMESAPCES_SF
public static final String NAMESAPCES_SFA
public KeynotePresentation(InputStream is) throws IOException, SAXException, ParserConfigurationException
InputStream
from the actual
presentation.is
- InputStream
from the actual presentationIOException
SAXException
ParserConfigurationException
public int getWidth()
public int getHeight()
public BufferedImage getThumbnail() throws IOException
IOException
public 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(OutputStream out) throws IOException
out
- OutputStream
used for save "destination"IOException
public InputStream getResource(String path)
public Collection<KeynoteMasterSlide> getMasters()
public KeynoteMasterSlide getMaster(String masterid)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"