com.groupdocs.watermark.contents

Interfaces

Classes

com.groupdocs.watermark.contents

Class PresentationContent

  • All Implemented Interfaces:
    Closeable, AutoCloseable


    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();
     
    • Method Detail

      • getSlideWidth

        public final double getSlideWidth()

        Gets the width of a slide in points.

        Returns:
        The width of a slide in points.
      • getSlideHeight

        public final double getSlideHeight()

        Gets the height of a slide in points.

        Returns:
        The height of a slide in points.
      • getNotesSlideWidth

        public final double getNotesSlideWidth()

        Gets the width of a notes slide in points.

        Returns:
        The width of a notes slide in points.
      • getNotesSlideHeight

        public final double getNotesSlideHeight()

        Gets the height of a notes slide in points.

        Returns:
        The height of a notes slide in points.
      • getSlides

        public final PresentationSlideCollection getSlides()

        Gets the collection of all slides of this PresentationContent.

        Returns:
        The collection of all slides of this PresentationContent.
      • getMasterSlides

        public final PresentationMasterSlideCollection getMasterSlides()

        Gets the collection of all master slides of this PresentationContent.

        Returns:
        The collection of all master slides of this PresentationContent.
      • getLayoutSlides

        public final PresentationLayoutSlideCollection getLayoutSlides()

        Gets the collection of all layout slides of this PresentationContent.

        Returns:
        The collection of all layout slides of this PresentationContent.
      • getMasterNotesSlide

        public final PresentationMasterNotesSlide getMasterNotesSlide()

        Gets the master _presentation for all notes slides of this PresentationContent.

        Returns:
        The master _presentation for all notes slides of this PresentationContent.
      • getMasterHandoutSlide

        public final PresentationMasterHandoutSlide getMasterHandoutSlide()

        Gets the master handout _presentation of this PresentationContent.

        Returns:
        The master handout _presentation of this PresentationContent.
      • encrypt

        public final void encrypt(String password)

        Encrypts the document.

        Parameters:
        password - The password that will be required to open the document.
      • decrypt

        public final void decrypt()

        Decrypts the document.

      • performSave

        public void performSave(OutputStream stream)

        Saves the document data to the specified stream.

        Specified by:
        performSave in class Content
        Parameters:
        stream - The stream to save the content data to.
      • performSave

        public void performSave(OutputStream stream,
                       SaveOptions saveOptions)

        Saves the document data to the specified stream.

        Specified by:
        performSave in class Content
        Parameters:
        stream - The stream to save the content data to.
        saveOptions - The options that should be used when saving the content data.