PresentationWatermarkLayoutSlideOptions class

PresentationWatermarkLayoutSlideOptions class

Represents options when adding watermark to a Presentation document layout slide.

Learn more:

See the usage examples in PresentationWatermarkBaseSlideOptions.

The PresentationWatermarkLayoutSlideOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the PresentationWatermarkOptions class.

Properties

Property Description
layout_slide_index The index of the layout slide to add the watermark to.
alternative_text The descriptive (alternative) text that will be associated with a shape. (inherited from PresentationWatermarkBaseSlideOptions)
effects The effects applied to the watermark, specified as a PresentationImageEffects or PresentationTextEffects instance. (inherited from PresentationWatermarkBaseSlideOptions)
is_locked The property indicates whether editing of the shape in PowerPoint is forbidden. If True, shape editing is forbidden; by default False, the shape can be edited. (inherited from PresentationWatermarkBaseSlideOptions)
name The name of the shape. (inherited from PresentationWatermarkBaseSlideOptions)
protect_with_unreadable_characters The property indicating whether the text watermark characters are mixed with unreadable characters. (inherited from PresentationWatermarkBaseSlideOptions)

Fields

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

Example

import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.options.presentation as gwo_ppt
import groupdocs.watermark.contents.presentation as gwc_ppt

load_options = gw.PresentationLoadOptions()
with gw.Watermarker("presentation.pptx", load_options) as watermarker:
    watermark = gww.TextWatermark("Test watermark", gww.Font("Arial", 8.0))
    layout_opts = gwo_ppt.PresentationWatermarkLayoutSlideOptions()
    layout_opts.layout_slide_index = -1  # apply to all layout slides
    watermarker.add(watermark, layout_opts)

See Also