public class PresentationContent extends Content
Learn more:
The following example demonstrates how to load and save PowerPoint document 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
. |
PresentationMasterHandoutSlide |
getMasterHandoutSlide()
Gets the master handout slide of this
. |
PresentationMasterNotesSlide |
getMasterNotesSlide()
Gets the master slide for all notes slides of this
. |
PresentationMasterSlideCollection |
getMasterSlides()
Gets the collection of all master slides of this
. |
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
. |
double |
getSlideWidth()
Gets the width of a slide in points.
|
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()
PresentationContent
.PresentationContent
.public final PresentationMasterSlideCollection getMasterSlides()
PresentationContent
.PresentationContent
.public final PresentationLayoutSlideCollection getLayoutSlides()
PresentationContent
.PresentationContent
.public final PresentationMasterNotesSlide getMasterNotesSlide()
PresentationContent
.PresentationContent
.public final PresentationMasterHandoutSlide getMasterHandoutSlide()
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.