public class PresentationContent extends Content
Represents a PowerPoint document where a watermark can be placed.
This example demonstrates how to load and save PowerPoint content of any supported type.
PresentationLoadOptions loadOptions = new PresentationLoadOptions(); Watermarker watermarker = new Watermarker(@"D:\input.ppt", loadOptions); // Use add method to add watermark to a particular slide or all slides. // Save changes. watermarker.save("D:\\output.ppt"); watermarker.close();
Modifier and Type | Method and Description |
---|---|
void |
decrypt()
Decrypts the document.
|
void |
encrypt(String password)
Encrypts the document.
|
PresentationLayoutSlideCollection |
getLayoutSlides()
Gets the collection of all layout slides of this
PresentationContent . |
PresentationMasterHandoutSlide |
getMasterHandoutSlide()
Gets the master handout _presentation of this
PresentationContent . |
PresentationMasterNotesSlide |
getMasterNotesSlide()
Gets the master _presentation for all notes slides of this
PresentationContent . |
PresentationMasterSlideCollection |
getMasterSlides()
Gets the collection of all master slides of this
PresentationContent . |
double |
getNotesSlideHeight()
Gets the height of a notes slide in points.
|
double |
getNotesSlideWidth()
Gets the width of a notes slide in points.
|
double |
getSlideHeight()
Gets the height of a slide in points.
|
PresentationSlideCollection |
getSlides()
Gets the collection of all slides of this
PresentationContent . |
double |
getSlideWidth()
Gets the width of a slide in points.
|
void |
performSave(OutputStream stream)
Saves the document data to the specified stream.
|
void |
performSave(OutputStream stream,
SaveOptions saveOptions)
Saves the document data to the specified stream.
|
findImages, findImages, search, search
public final double getSlideWidth()
Gets the width of a slide in points.
public final double getSlideHeight()
Gets the height of a slide in points.
public final double getNotesSlideWidth()
Gets the width of a notes slide in points.
public final double getNotesSlideHeight()
Gets the height of a notes slide in points.
public final PresentationSlideCollection getSlides()
Gets the collection of all slides of this PresentationContent
.
PresentationContent
.public final PresentationMasterSlideCollection getMasterSlides()
Gets the collection of all master slides of this PresentationContent
.
PresentationContent
.public final PresentationLayoutSlideCollection getLayoutSlides()
Gets the collection of all layout slides of this PresentationContent
.
PresentationContent
.public final PresentationMasterNotesSlide getMasterNotesSlide()
Gets the master _presentation for all notes slides of this PresentationContent
.
PresentationContent
.public final PresentationMasterHandoutSlide getMasterHandoutSlide()
Gets the master handout _presentation of this PresentationContent
.
PresentationContent
.public final void encrypt(String password)
Encrypts the document.
password
- The password that will be required to open the document.public final void decrypt()
Decrypts the document.
public void performSave(OutputStream stream)
Saves the document data to the specified stream.
performSave
in class Content
stream
- The stream to save the content data to.public void performSave(OutputStream stream, SaveOptions saveOptions)
Saves the document data to the specified stream.
performSave
in class Content
stream
- The stream to save the content data to.saveOptions
- The options that should be used when saving the content data.Copyright © 2020. All rights reserved.