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.

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