PresentationWatermarkBaseSlideOptions class

PresentationWatermarkBaseSlideOptions class

Base class for watermark adding options to a Presentation document.

Learn more:

The PresentationWatermarkBaseSlideOptions type exposes the following members:

Properties

Property Description
alternative_text The descriptive (alternative) text that will be associated with a shape.
effects The effects to apply to the watermark, specified as a PresentationImageEffects or PresentationTextEffects instance.
is_locked The property indicates whether editing of the shape in PowerPoint is forbidden.
name The name of the shape.
protect_with_unreadable_characters The property indicating whether the text watermark characters are mixed with unreadable characters.

Fields

Field Description
DEFAULT Gets the default value for the class. (inherited from WatermarkOptions)

Example

from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.presentation import PresentationWatermarkMasterSlideOptions
from groupdocs.watermark.options.presentation import PresentationWatermarkLayoutSlideOptions
from groupdocs.watermark.watermarks import TextWatermark, Font

with Watermarker("./presentation.pptx") as watermarker:
    watermark = TextWatermark("Test watermark", Font("Arial", 8.0))

    master_options = PresentationWatermarkMasterSlideOptions()
    master_options.master_slide_index = 0
    watermarker.add(watermark, master_options)

    layout_options = PresentationWatermarkLayoutSlideOptions()
    layout_options.layout_slide_index = 0
    watermarker.add(watermark, layout_options)

    watermarker.save("./output.pptx")

See Also