|
||||||||
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 a Microsoft PowerPoint presentation.
Constructor Summary | |
---|---|
Presentation()
This constructor creates new presentation from scratch. |
|
Presentation(java.io.InputStream stream)
|
|
Presentation(java.io.InputStream stream,
LoadOptions loadOptions)
|
|
Presentation(LoadOptions loadOptions)
This constructor creates new presentation from scratch. |
|
Presentation(java.lang.String file)
This constructor gets a source file path from which the contents of the Presentation are read. |
|
Presentation(java.lang.String file,
LoadOptions loadOptions)
This constructor gets a source file path from which the contents of the Presentation are read. |
Method Summary | |
---|---|
void |
dispose()
Releases all resources used by this Aspose.Slides.Pptx.PrentationEx object. |
void |
encrypt(java.lang.String password)
Deprecated. |
IAudioCollection |
getAudios()
Returns the collection of all embedded audio files in the presentation. |
ICommentAuthorCollection |
getCommentAuthors()
Returns the collection of comments autors. |
java.util.Date |
getCurrentDateTime()
|
ICustomData |
getCustomData()
Returns the presentation's custom data. |
ITextStyle |
getDefaultTextStyle()
Returns default text style for shapes. |
IDocumentProperties |
getDocumentProperties()
Returns DocumentProperties object which contains standard and custom document properties. |
boolean |
getEncryptDocumentProperties()
Deprecated. |
IHeaderFooterManager |
getHeaderFooterManager()
Returns actual HeaderFooter manager. |
IHyperlinkQueries |
getHyperlinkQueries()
Provides easy access to all hyperlinks contained in all presentation slides (not in master, layout, notes slides). |
IImageCollection |
getImages()
Returns the collection of all images in the presentation. |
IGlobalLayoutSlideCollection |
getLayoutSlides()
Returns a list of all layout slides that are defined in the presentation. |
IMasterHandoutSlideManager |
getMasterHandoutSlideManager()
|
IMasterNotesSlideManager |
getMasterNotesSlideManager()
|
IMasterSlideCollection |
getMasters()
Returns a list of all master slides that are defined in the presentation. |
IMasterTheme |
getMasterTheme()
|
IProtectionManager |
getProtectionManager()
Gets manager of the permissions for this presentation. |
ISlideCollection |
getSlides()
Returns a list of all slides that are defined in the presentation. |
ISlideSize |
getSlideSize()
Returns slide size object. |
int |
getSourceFormat()
Returns information about from which format presentation was loaded. |
ITagCollection |
getTags()
Deprecated. |
boolean |
getUpdateDateTimeFields()
Determines wheather Aspose.Slides should update date and time fields. |
boolean |
getUpdateSlideNumberFields()
Determines wheather Aspose.Slides should update slide number fields. |
byte[] |
getVbaProject()
Gets VBA project with presentation macros in binary format (as OLE container). |
IVideoCollection |
getVideos()
Returns the collection of all embedded video files in the presentation. |
boolean |
isEncrypted()
Deprecated. |
boolean |
isOnlyDocumentPropertiesLoaded()
Deprecated. |
boolean |
isWriteProtected()
Deprecated. |
void |
removeEncryption()
Deprecated. |
void |
removeWriteProtection()
Deprecated. |
void |
save(java.io.OutputStream stream,
int format)
|
void |
save(java.io.OutputStream stream,
int format,
ISaveOptions options)
|
void |
save(java.lang.String fname,
int format)
Saves all slides of a presentation to a file with the specified format. |
void |
save(java.lang.String fname,
int format,
ISaveOptions options)
Saves all slides of a presentation to a file with the specified format and with additional options. |
void |
setCurrentDateTime(java.util.Date value)
|
void |
setEncryptDocumentProperties(boolean value)
Deprecated. |
void |
setUpdateDateTimeFields(boolean value)
|
void |
setUpdateSlideNumberFields(boolean value)
|
void |
setVbaProject(byte[] value)
|
void |
setWriteProtection(java.lang.String password)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Presentation()
This constructor creates new presentation from scratch. Created presentation has one empty slide.
public Presentation(LoadOptions loadOptions)
This constructor creates new presentation from scratch. Created presentation has one empty slide.
loadOptions
- Additional load options.public Presentation(java.io.InputStream stream)
public Presentation(java.io.InputStream stream, LoadOptions loadOptions)
public Presentation(java.lang.String file)
This constructor gets a source file path from which the contents of the Presentation are read.
[C#] Presentation pres = new Presentation("demo.pptx"); [Visual Basic] Dim pres As Presentation = New Presentation("demo.pptx")
file
- Input file.public Presentation(java.lang.String file, LoadOptions loadOptions)
This constructor gets a source file path from which the contents of the Presentation are read.
file
- Input file.loadOptions
- Additional load options.Method Detail |
---|
public java.util.Date getCurrentDateTime()
getCurrentDateTime
in interface IPresentation
public void setCurrentDateTime(java.util.Date value)
setCurrentDateTime
in interface IPresentation
public boolean getUpdateSlideNumberFields()
Determines wheather Aspose.Slides should update slide number fields.
True by default.
Read/write bool
.
getUpdateSlideNumberFields
in interface IPresentation
public void setUpdateSlideNumberFields(boolean value)
setUpdateSlideNumberFields
in interface IPresentation
public boolean getUpdateDateTimeFields()
Determines wheather Aspose.Slides should update date and time fields.
False by default.
Read/write bool
.
getUpdateDateTimeFields
in interface IPresentation
public void setUpdateDateTimeFields(boolean value)
setUpdateDateTimeFields
in interface IPresentation
public IHeaderFooterManager getHeaderFooterManager()
Returns actual HeaderFooter manager.
getHeaderFooterManager
in interface IPresentation
public IProtectionManager getProtectionManager()
Gets manager of the permissions for this presentation.
getProtectionManager
in interface IPresentation
@Deprecated public boolean getEncryptDocumentProperties()
This property makes sense, if presentation is password protected. If true then document properties is encrypted in presentation file. If false then document properties is public while presentation is encrypted.
@Deprecated public void setEncryptDocumentProperties(boolean value)
@Deprecated public boolean isEncrypted()
Gets a value indicating whether this instance is encrypted.
Value:true
if presentation was loaded from encrypted file or Encrypt(string)
method was called ; otherwise, false
.
@Deprecated public boolean isOnlyDocumentPropertiesLoaded()
This property makes sense, if presentation file is password protected and document properties of this file are public. Value of true means that only document properties are loaded from an encrypted presentation file without use of password. Value of false means that entire encrypted presentation is loaded with use of right password, not only document properties are loaded. If presentation isn't encrypted then property value is always false. If document properties of an encrypted file aren't public then property value is always false. If Presentation.EncryptDocumentProperties is true than IsOnlyDocumentPropertiesLoaded property value is always false.
@Deprecated public boolean isWriteProtected()
Gets a value indicating whether this presentation is write protected.
@Deprecated public void encrypt(java.lang.String password)
Encrypts Presentation with specified password.
password
- The password.@Deprecated public void removeEncryption()
Removes the encryption.
@Deprecated public void setWriteProtection(java.lang.String password)
Set write protection for this presentation with specified password.
password
- The password.@Deprecated public void removeWriteProtection()
Removes write protection for this presentation.
public ISlideCollection getSlides()
Returns a list of all slides that are defined in the presentation.
Read-only SlideCollection
.
getSlides
in interface IPresentation
public ISlideSize getSlideSize()
Returns slide size object.
Readonly SlideSize
.
getSlideSize
in interface IPresentation
public IGlobalLayoutSlideCollection getLayoutSlides()
Returns a list of all layout slides that are defined in the presentation.
Read-only IGlobalLayoutSlideCollection
.
getLayoutSlides
in interface IPresentation
public IMasterSlideCollection getMasters()
Returns a list of all master slides that are defined in the presentation.
Read-only MasterSlideCollection
.
getMasters
in interface IPresentation
public IMasterNotesSlideManager getMasterNotesSlideManager()
getMasterNotesSlideManager
in interface IPresentation
public IMasterHandoutSlideManager getMasterHandoutSlideManager()
getMasterHandoutSlideManager
in interface IPresentation
public ITextStyle getDefaultTextStyle()
Returns default text style for shapes.
Readonly TextStyle
.
getDefaultTextStyle
in interface IPresentation
public ICommentAuthorCollection getCommentAuthors()
Returns the collection of comments autors.
Readonly CommentAuthorCollection
.
getCommentAuthors
in interface IPresentation
public IDocumentProperties getDocumentProperties()
Returns DocumentProperties object which contains standard and custom document properties.
Read-only DocumentProperties
.
getDocumentProperties
in interface IPresentation
public IImageCollection getImages()
Returns the collection of all images in the presentation.
Read-only ImageCollection
getImages
in interface IPresentation
public IAudioCollection getAudios()
Returns the collection of all embedded audio files in the presentation.
Read-only AudioCollection
getAudios
in interface IPresentation
public IVideoCollection getVideos()
Returns the collection of all embedded video files in the presentation.
Read-only VideoCollection
getVideos
in interface IPresentation
@Deprecated public ITagCollection getTags()
Returns the presentation's tags collection.
Read-only TagCollection
.
public ICustomData getCustomData()
Returns the presentation's custom data.
Read-only ICustomData
.
getCustomData
in interface IPresentation
public byte[] getVbaProject()
Gets VBA project with presentation macros in binary format (as OLE container).
getVbaProject
in interface IPresentation
public void setVbaProject(byte[] value)
setVbaProject
in interface IPresentation
public IHyperlinkQueries getHyperlinkQueries()
Provides easy access to all hyperlinks contained in all presentation slides (not in master, layout, notes slides).
getHyperlinkQueries
in interface IPresentation
public int getSourceFormat()
Returns information about from which format presentation was loaded.
getSourceFormat
in interface IPresentation
public IMasterTheme getMasterTheme()
getMasterTheme
in interface IPresentation
public void save(java.lang.String fname, int format)
Saves all slides of a presentation to a file with the specified format.
save
in interface IPresentation
fname
- Path to the created file.format
- Format of the exported data.public void save(java.io.OutputStream stream, int format)
save
in interface IPresentation
public void save(java.lang.String fname, int format, ISaveOptions options)
Saves all slides of a presentation to a file with the specified format and with additional options.
save
in interface IPresentation
fname
- Path to the created file.format
- Format of the exported data.options
- Additional format options.public void save(java.io.OutputStream stream, int format, ISaveOptions options)
save
in interface IPresentation
public void dispose()
Releases all resources used by this Aspose.Slides.Pptx.PrentationEx object.
dispose
in interface com.aspose.ms.System.IDisposable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |