|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.PresentationEx
public final class PresentationEx
Represents a Microsoft PowerPoint 2007 presentation.
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,
LoadOptions loadOptions)
|
|
PresentationEx(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,
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)
Encrypts Presentation with specified password. |
AudioExCollection |
getAudios()
Returns the collection of all embedded audio files in the presentation. |
CommentAuthorExCollection |
getCommentAuthors()
Returns the collection of comments autors. |
java.util.Date |
getCurrentDateTime()
|
TextStyleEx |
getDefaultTextStyle()
Returns default text style for shapes. |
DocumentPropertiesEx |
getDocumentProperties()
Returns DocumentPropertiesEx object which contains standard and custom document properties. |
boolean |
getEncryptDocumentProperties()
This property makes sense, if presentation is password protected. |
HeaderFooterManagerEx |
getHeaderFooterManager()
Returns actual HeaderFooter manager. |
ImageExCollection |
getImages()
Returns the collection of all images in the presentation. |
LayoutSlideExCollection |
getLayoutSlides()
Returns a list of all layout slides that are defined in the presentation. |
MasterHandoutSlideEx |
getMasterHandoutSlide()
Returns a master for all notes slides of this presentation if there is one, otherwise returns null. |
MasterNotesSlideEx |
getMasterNotesSlide()
Returns a master for all notes slides of this presentation if there is one, otherwise returns null. |
MasterSlideExCollection |
getMasters()
Returns a list of all master slides that are defined in the presentation. |
SlideEx |
getSlideById(long id)
Returns a slide by Id. |
SlideExCollection |
getSlides()
Returns a list of all slides that are defined in the presentation. |
SlideSizeEx |
getSlideSize()
Returns slide size object. |
int |
getSourceFormat()
Returns information about from which format presentation was loaded. |
TagExCollection |
getTags()
Returns the presentation's tags collection. |
boolean |
getUpdateDateTimeFields()
Determines wheather Aspose.Slides should update date and time fields. |
boolean |
getUpdateSlideNumberFields()
Determines wheather Aspose.Slides should update slide number fields. |
VideoExCollection |
getVideos()
Returns the collection of all embedded video files in the presentation. |
boolean |
isEncrypted()
Gets a value indicating whether this instance is encrypted. |
boolean |
isOnlyDocumentPropertiesLoaded()
This property makes sense, if presentation file is password protected and document properties of this file are public. |
boolean |
isWriteProtected()
Gets a value indicating whether this presentation is write protected. |
void |
print()
Prints the whole presentation to the default printer. |
void |
print(com.aspose.ms.System.Drawing.Printing.PrinterSettings printerSettings)
Prints the presentation according to the specified printer settings, using the standard (no User Interface) print controller. |
void |
print(com.aspose.ms.System.Drawing.Printing.PrinterSettings printerSettings,
java.lang.String presName)
Prints the document according to the specified printer settings, using the standard (no User Interface) print controller and a presentation name. |
void |
print(java.lang.String printerName)
Print the whole presentation to the specified printer, using the standard (no User Interface) print controller. |
void |
removeEncryption()
Removes the encryption. |
void |
removeWriteProtection()
Removes write protection for this presentation. |
void |
save(java.io.OutputStream stream,
int format)
Saves all slides of a presentation to a stream in the specified format. |
void |
save(java.io.OutputStream stream,
int format,
SaveOptions 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,
SaveOptions 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)
|
void |
setUpdateDateTimeFields(boolean value)
|
void |
setUpdateSlideNumberFields(boolean value)
|
void |
setWriteProtection(java.lang.String password)
Set write protection for this presentation with specified password. |
void |
write(java.io.OutputStream stream)
Writes the contents of the Presentation to an output stream. |
void |
write(java.io.OutputStream stream,
PptxOptions options)
|
void |
write(java.lang.String file)
Writes the contents of the Presentation to a file specified by the file name. |
void |
write(java.lang.String file,
PptxOptions options)
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 |
Constructor Detail |
---|
public PresentationEx()
This constructor creates new presentation from scratch. Created presentation has one empty slide.
public PresentationEx(LoadOptions loadOptions)
This constructor creates new presentation from scratch. Created presentation has one empty slide.
loadOptions
- Additional load options.public PresentationEx(java.io.InputStream stream)
This constructor is the primary mechanism for reading an existing Presentation.
stream
- Input stream.public PresentationEx(java.io.InputStream stream, LoadOptions loadOptions)
public PresentationEx(java.lang.String file)
This constructor gets a source file path from which the contents of the Presentation are read.
[C#] PresentationEx pres = new PresentationEx("demo.pptx"); [Visual Basic] Dim pres As PresentationEx = New PresentationEx("demo.pptx")
file
- Input file.public PresentationEx(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()
public void setCurrentDateTime(java.util.Date value)
public boolean getUpdateSlideNumberFields()
Determines wheather Aspose.Slides should update slide number fields.
True by default.
Read/write bool
.
public void setUpdateSlideNumberFields(boolean value)
public boolean getUpdateDateTimeFields()
Determines wheather Aspose.Slides should update date and time fields.
False by default.
Read/write bool
.
public void setUpdateDateTimeFields(boolean value)
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
.
public boolean isWriteProtected()
Gets a value indicating whether this presentation is write protected.
public HeaderFooterManagerEx getHeaderFooterManager()
Returns actual HeaderFooter manager.
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.
public void setEncryptDocumentProperties(boolean value)
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 PresentationEx.EncryptDocumentProperties is true than IsOnlyDocumentPropertiesLoaded property value is always false.
public void dispose()
Releases all resources used by this Aspose.Slides.Pptx.PrentationEx object.
dispose
in interface com.aspose.ms.System.IDisposable
public void write(java.lang.String file)
Writes the contents of the Presentation to a file specified by the file name.
[C#] pres.Write("demo.pptx"); [Visual Basic] pres.Write("demo.pptx")
file
- Output file.public void write(java.lang.String file, PptxOptions options)
Writes the contents of the Presentation to a file specified by the file name.
[C#] pres.Write("demo.pptx"); [Visual Basic] pres.Write("demo.pptx")
file
- Output file.options
- Saving options.public void write(java.io.OutputStream stream)
Writes the contents of the Presentation to an output stream.
stream
- Output stream.public void write(java.io.OutputStream stream, PptxOptions options)
public void encrypt(java.lang.String password)
Encrypts Presentation with specified password.
password
- The password.public void removeEncryption()
Removes the encryption.
public void setWriteProtection(java.lang.String password)
Set write protection for this presentation with specified password.
password
- The password.public void removeWriteProtection()
Removes write protection for this presentation.
public SlideExCollection getSlides()
Returns a list of all slides that are defined in the presentation.
Read-only SlideExCollection
.
public SlideSizeEx getSlideSize()
Returns slide size object.
Readonly SlideSizeEx
.
public LayoutSlideExCollection getLayoutSlides()
Returns a list of all layout slides that are defined in the presentation.
Read-only LayoutSlideExCollection
.
public MasterSlideExCollection getMasters()
Returns a list of all master slides that are defined in the presentation.
Read-only MasterSlideExCollection
.
public MasterNotesSlideEx getMasterNotesSlide()
Returns a master for all notes slides of this presentation if there is one, otherwise returns null.
Readonly MasterNotesSlideEx
.
public MasterHandoutSlideEx getMasterHandoutSlide()
Returns a master for all notes slides of this presentation if there is one, otherwise returns null.
Readonly MasterHandoutSlideEx
.
public TextStyleEx getDefaultTextStyle()
Returns default text style for shapes.
Readonly TextStyleEx
.
public CommentAuthorExCollection getCommentAuthors()
Returns the collection of comments autors.
Readonly CommentAuthorExCollection
.
public DocumentPropertiesEx getDocumentProperties()
Returns DocumentPropertiesEx object which contains standard and custom document properties.
Read-only DocumentPropertiesEx
.
public ImageExCollection getImages()
Returns the collection of all images in the presentation.
Read-only ImageExCollection
public AudioExCollection getAudios()
Returns the collection of all embedded audio files in the presentation.
Read-only AudioExCollection
public VideoExCollection getVideos()
Returns the collection of all embedded video files in the presentation.
Read-only VideoExCollection
public TagExCollection getTags()
Returns the presentation's tags collection.
Read-only TagExCollection
.
public SlideEx getSlideById(long id)
Returns a slide by Id.
id
- Id of a slide.
public int getSourceFormat()
Returns information about from which format presentation was loaded.
public void save(java.lang.String fname, int format)
Saves all slides of a presentation to a file with the specified format.
fname
- Path to the created file.format
- Format of the exported data.public void save(java.io.OutputStream stream, int format)
Saves all slides of a presentation to a stream in the specified format.
stream
- Output stream.format
- Format of the exported data.public void save(java.lang.String fname, int format, SaveOptions options)
Saves all slides of a presentation to a file with the specified format and with additional options.
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, SaveOptions options)
public void print()
Prints the whole presentation to the default printer.
public void print(com.aspose.ms.System.Drawing.Printing.PrinterSettings printerSettings)
Prints the presentation according to the specified printer settings, using the standard (no User Interface) print controller.
printerSettings
- The .NET printer settings to use.public void print(java.lang.String printerName)
Print the whole presentation to the specified printer, using the standard (no User Interface) print controller.
printerName
- The name of the printer.public void print(com.aspose.ms.System.Drawing.Printing.PrinterSettings printerSettings, java.lang.String presName)
Prints the document according to the specified printer settings, using the standard (no User Interface) print controller and a presentation name.
printerSettings
- The .NET printer settings to use.presName
- The presentation name to display (for example, in a print
status dialog box or printer queue) while printing the presentation.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |