com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class SlidesSlide



  • public class SlidesSlide
    extends SlidesBaseSlide

    Represents a PowerPoint document slide.

    • Method Detail

      • getLayoutSlide

        public final SlidesLayoutSlide getLayoutSlide()

        Gets the layout slide for this SlidesSlide.

        Returns:
        The layout slide for this SlidesSlide.
      • getMasterSlide

        public final SlidesMasterSlide getMasterSlide()

        Gets the master slide for this SlidesSlide.

        Returns:
        The master slide for this SlidesSlide.
      • getNotesSlide

        public final SlidesNotesSlide getNotesSlide()

        Gets the notes slide for this SlidesSlide.

        Returns:
        The notes slide for this SlidesSlide.

        This example demonstrates how to add watermark to all notes slides.

        SlidesDocument document = Document.load(SlidesDocument.class, "D:\\input.pptx");        
         TextWatermark watermark = new TextWatermark("DRAFT", new Font("Arial", 19));
         for (SlidesSlide slide : document.getSlides())
         {
             if (slide.getNotesSlide() != null)
             {
                 slide.getNotesSlide().addWatermark(watermark);
             }
         }
         document.save("D:\\output.pptx");
         document.close();