|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Presentation
public final class Presentation
Represents the Microsoft PowerPoint presentation.
Field Summary | |
---|---|
static java.lang.String |
resources_path
|
Constructor Summary | |
---|---|
Presentation()
This constructor creates new presentation from scratch. |
|
Presentation(java.io.InputStream stream)
This constructor is the primary mechanism for reading an existing Presentation. |
|
Presentation(java.lang.String file)
This constructor gets a source file path from which the contents of the Presentation are read. |
Method Summary | |
---|---|
Slide |
addBodySlide()
Adds the new Slide with header and body placeholders to a presentation. |
Slide |
addDoubleBodySlide()
Adds the new Slide with header and two body placeholders to a presentation. |
Slide |
addEmptySlide()
Adds the new empty Slide to a presentation. |
Slide |
addHeaderSlide()
Adds the new Slide with header placeholder to a presentation. |
Slide |
addTitleSlide()
Adds the new Slide with header and subheader placeholders to a presentation. |
void |
cleanAnimations()
Removes XP+ animations from slides. |
Slide |
cloneSlide(Slide srcSlide,
int position)
Makes the copy of a slide. |
Slide |
cloneSlide(Slide srcSlide,
int position,
Presentation pres,
java.util.TreeMap idList)
Makes a copy of a slide with master slides and inserts it to another presentation. |
void |
deleteHandout()
Deletes Handout object from a presentation. |
void |
deleteUnusedMasters()
Deletes all unused masters from a presentation. |
long |
getActiveSlideId()
Returns the Id of the active slide in a presentation. |
CommentAuthors |
getCommentAuthors()
Returns the list of authors of comments in a presentation. |
DocumentProperties |
getDocumentProperties()
Returns the custom properties of a presentation. |
short |
getFirstSlideNumber()
Returns the number of the first slide in a presentation. |
Fonts |
getFonts()
Returns the list of all fonts in a presentation. |
LoadOptions |
getLoadOptions()
|
MainMaster |
getMainMaster()
Returns the first main master of a presentation. |
Slides |
getMasters()
Returns the list of all masters in a presentation. |
java.awt.Point |
getNotesSize()
Returns the size of a notes in a presentation. |
PictureBullets |
getPictureBullets()
Returns a list of all pictures used for a bullets that are defined in the presentation. |
Pictures |
getPictures()
Returns the list of all pictures in a presentation. |
Slide |
getSlideById(long id)
Returns the slide by Id. |
Slide |
getSlideByPosition(int position)
Returns the slide by SlidePosition. |
Slides |
getSlides()
Returns the list of all slides in a presentation. |
SlideShowSettings |
getSlideShowSettings()
Returns the settings of a slide show in a presentation. |
java.awt.Point |
getSlideSize()
Returns the size of a slides in a presentation. |
int |
getSlideSizeType()
Returns the size type of a slides in a presentation. |
int |
getSlideViewType()
Returns the way how the presentation will be opened. |
Tags |
getTags()
Returns the tags of a presentation. |
boolean |
hasVBAMacros()
Determines whether a presentation contains any VBA macros. |
void |
removeVBAMacros()
Removes all VBA macros from the presentation. |
void |
save(java.io.OutputStream stream,
SaveFormat format)
Saves all slides of a presentation to a stream in the specified format. |
void |
save(java.io.OutputStream stream,
SaveFormat format,
SaveOptions options)
Saves all slides of a presentation to a stream in the specified format and with additional options. |
void |
save(java.lang.String fname,
SaveFormat format)
Saves all slides of a presentation to a file with the specified format. |
void |
save(java.lang.String fname,
SaveFormat format,
SaveOptions options)
Saves all slides of a presentation to a file with the specified format and with additional options. |
void |
setActiveSlideId(long value)
Sets the Id of the active slide in a presentation. |
void |
setFirstSlideNumber(short value)
Sets the number of the first slide in a presentation. |
void |
setSlideSize(java.awt.Point value)
Sets the size of a slides in a presentation. |
void |
setSlideSizeType(int value)
Sets the SizeType of a slides in a presentation. |
void |
setSlideViewType(int value)
Sets the way how the presentation will be opened. |
void |
write(java.io.OutputStream stream)
Writes the contents of the Presentation to an output stream. |
void |
write(java.lang.String file)
Writes the contents of the Presentation to a file specified by the file name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String resources_path
Constructor Detail |
---|
public Presentation() throws PptReadException
PptReadException
public Presentation(java.io.InputStream stream) throws PptException
stream
- the input stream.
PptException
- on presentation reading errors.public Presentation(java.lang.String file) throws PptException, java.io.FileNotFoundException
file
- input file name
PptException
java.io.FileNotFoundException
Method Detail |
---|
public void write(java.lang.String file)
file
- Output file.public void write(java.io.OutputStream stream) throws PptWriteException
stream
- the output stream.
PptWriteException
- on presentation writing errors.public void cleanAnimations()
public void deleteHandout()
public void deleteUnusedMasters()
public Slides getSlides()
public Slides getMasters()
public MainMaster getMainMaster()
public Slide getSlideById(long id)
id
- the Id of a slide.
public Slide getSlideByPosition(int position)
position
- the position of a slide.
public Slide cloneSlide(Slide srcSlide, int position) throws PptEditException
srcSlide
- the source slide to clone.position
- the position where new slide should be inserted.
PptEditException
- on slide cloning errors.public Slide cloneSlide(Slide srcSlide, int position, Presentation pres, java.util.TreeMap idList) throws PptEditException
srcSlide
- the source slide.position
- the position where new slide should be inserted.pres
- the presentation where new slide will be inserted.idList
- TreeMap object to store temporary information about ppt's
masters.
PptEditException
- on slide cloning errors.public Slide addEmptySlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Slide addBodySlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Slide addDoubleBodySlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Slide addTitleSlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Slide addHeaderSlide() throws PptReadException, PptEditException
PptReadException
PptEditException
public Pictures getPictures()
public Fonts getFonts()
public java.awt.Point getSlideSize()
public void setSlideSize(java.awt.Point value)
value
- The size of a slides.public java.awt.Point getNotesSize()
public int getSlideSizeType()
SlideSizeType
.public void setSlideSizeType(int value)
value
- The size type of a slides. See SlideSizeType
.public int getSlideViewType()
SlideViewType
.
public void setSlideViewType(int value)
value
- See SlideViewType
.public DocumentProperties getDocumentProperties()
public short getFirstSlideNumber()
public void setFirstSlideNumber(short value)
value
- the number of the first slide in a presentation.public long getActiveSlideId()
public void setActiveSlideId(long value) throws java.lang.Exception
value
- the Id of the active slide.
PptPropertyException
java.lang.Exception
public boolean hasVBAMacros()
public SlideShowSettings getSlideShowSettings()
public Tags getTags()
public CommentAuthors getCommentAuthors()
public PictureBullets getPictureBullets()
public void save(java.lang.String fname, SaveFormat format)
fname
- Path to the created file.format
- Format of the exported data.public void save(java.io.OutputStream stream, SaveFormat format)
stream
- Output stream.format
- Format of the exported data.public void save(java.lang.String fname, SaveFormat format, SaveOptions options)
fname
- Path to the created file.format
- Format of the exported data.options
- Additional format options.public void save(java.io.OutputStream stream, SaveFormat format, SaveOptions options)
stream
- Output stream.format
- Format of the exported data.options
- Additional format options.public void removeVBAMacros()
public LoadOptions getLoadOptions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |