com.aspose.slides.pptx
Class PresentationEx

java.lang.Object
  extended by com.aspose.slides.pptx.PresentationEx

public final class PresentationEx
extends java.lang.Object

Represents a Microsoft PowerPoint 2007 PPTX presentation.


Field Summary
static java.lang.String resources_path
           
 
Constructor Summary
PresentationEx()
          This constructor creates new presentation from scratch.
PresentationEx(java.io.InputStream stream)
          This constructor is the primary mechanism for reading an existing presentation.
PresentationEx(java.io.InputStream stream, com.aspose.foundation.rendering.pdf.LoadOptions loadOptions)
          This constructor is the primary mechanism for reading an existing presentation.
PresentationEx(com.aspose.foundation.rendering.pdf.LoadOptions loadOptions)
          This constructor creates new presentation from scratch.
PresentationEx(java.lang.String file)
          This constructor gets a source file path from which the contents of the Presentation are read.
PresentationEx(java.lang.String file, com.aspose.foundation.rendering.pdf.LoadOptions loadOptions)
          This constructor gets a source file path from which the contents of the Presentation are read.
 
Method Summary
 void encrypt(java.lang.String password)
           
 CommentAuthorsEx getCommentAuthors()
           
 DocumentPropertiesEx getDocumentProperties()
          Returns DocumentPropertiesEx object which contains standard and custom document properties.
 ImagesEx getImages()
          Returns the collection of all images used in the presentation.
 LayoutSlidesEx getLayoutSlides()
          Returns a list of all layout slides that are defined in the presentation.
 com.aspose.foundation.rendering.pdf.LoadOptions getLoadOptions()
           
 MasterSlidesEx getMasters()
          Returns a list of all master slides that are defined in the presentation.
 SlideEx getSlideById(long id)
          Returns a slide by Id.
 SlidesEx getSlides()
          Returns a list of all slides that are defined in the presentation.
 SlideSizeEx getSlideSize()
          Returns the slide size.
 TagsEx getTags()
           
 void removeEncryption()
           
 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 setLoadOptions(com.aspose.foundation.rendering.pdf.LoadOptions loadOptions)
           
 void write(java.io.OutputStream stream)
          Writes the contents of a 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

resources_path

public static final java.lang.String resources_path
See Also:
Constant Field Values
Constructor Detail

PresentationEx

public PresentationEx()
This constructor creates new presentation from scratch. Created presentation has one empty slide.


PresentationEx

public PresentationEx(com.aspose.foundation.rendering.pdf.LoadOptions loadOptions)
This constructor creates new presentation from scratch. Created presentation has one empty slide.


PresentationEx

public PresentationEx(java.io.InputStream stream)
               throws java.io.IOException
This constructor is the primary mechanism for reading an existing presentation.

Parameters:
stream - input stream to read presentation from.
Throws:
java.io.IOException

PresentationEx

public PresentationEx(java.io.InputStream stream,
                      com.aspose.foundation.rendering.pdf.LoadOptions loadOptions)
               throws java.io.IOException
This constructor is the primary mechanism for reading an existing presentation.

Parameters:
stream - input stream to read presentation from.
Throws:
java.io.IOException

PresentationEx

public PresentationEx(java.lang.String file)
This constructor gets a source file path from which the contents of the Presentation are read.

Parameters:
file - input file name.
Throws:
java.io.IOException

PresentationEx

public PresentationEx(java.lang.String file,
                      com.aspose.foundation.rendering.pdf.LoadOptions loadOptions)
This constructor gets a source file path from which the contents of the Presentation are read.

Parameters:
file - input file name.
Throws:
java.io.IOException
Method Detail

encrypt

public void encrypt(java.lang.String password)

removeEncryption

public void removeEncryption()

write

public void write(java.lang.String file)
           throws java.io.IOException
Writes the contents of the Presentation to a file specified by the file name.

Parameters:
file - output file name.
Throws:
java.io.IOException

write

public void write(java.io.OutputStream stream)
           throws java.io.IOException
Writes the contents of a presentation to an output stream.

Parameters:
stream - output stream to write presentation.
Throws:
java.io.IOException

getSlides

public SlidesEx getSlides()
Returns a list of all slides that are defined in the presentation.

Returns:
See SlidesEx.

getSlideSize

public SlideSizeEx getSlideSize()
Returns the slide size.


getLayoutSlides

public LayoutSlidesEx getLayoutSlides()
Returns a list of all layout slides that are defined in the presentation.

Returns:
See LayoutSlidesEx.

getMasters

public MasterSlidesEx getMasters()
Returns a list of all master slides that are defined in the presentation.

Returns:
See MasterSlidesEx.

getCommentAuthors

public CommentAuthorsEx getCommentAuthors()
Returns:
See CommentAuthorsEx.

getDocumentProperties

public DocumentPropertiesEx getDocumentProperties()
Returns DocumentPropertiesEx object which contains standard and custom document properties.


getImages

public ImagesEx getImages()
Returns the collection of all images used in the presentation.

Returns:
See ImagesEx

getTags

public TagsEx getTags()

getSlideById

public SlideEx getSlideById(long id)
Returns a slide by Id.

Parameters:
id - Id of a slide.
Returns:
See SlideEx.

save

public void save(java.lang.String fname,
                 SaveFormat format)
Saves all slides of a presentation to a file with the specified format.

Parameters:
fname - Path to the created file.
format - Format of the exported data.
Throws:
java.io.IOException

save

public void save(java.io.OutputStream stream,
                 SaveFormat format)
          throws java.io.IOException
Saves all slides of a presentation to a stream in the specified format.

Parameters:
stream - Output stream.
format - Format of the exported data.
Throws:
java.io.IOException

save

public 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.

Parameters:
fname - Path to the created file.
format - Format of the exported data.
options - Additional format options.
Throws:
java.io.IOException

save

public 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.

Parameters:
stream - Output stream.
format - Format of the exported data.
options - Additional format options.
Throws:
java.io.IOException

setLoadOptions

public void setLoadOptions(com.aspose.foundation.rendering.pdf.LoadOptions loadOptions)

getLoadOptions

public com.aspose.foundation.rendering.pdf.LoadOptions getLoadOptions()