PresentationWatermarkSlideOptions class
Leave feedback
On this page
Represents options when adding a watermark to a Presentation document slide.
Learn more:
The PresentationWatermarkSlideOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the PresentationWatermarkSlideOptions class. |
| Property | Description |
|---|---|
| slide_index | The index of the 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) |
| Field | Description |
|---|---|
| DEFAULT | Gets the default value for the class. (inherited from WatermarkOptions) |
import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.options.presentation as gwo_ppt
load_options = gw.PresentationLoadOptions()
with gw.Watermarker("presentation.pptx", load_options) as watermarker:
text_wm = gww.TextWatermark("Test watermark", gww.Font("Arial", 8.0))
text_opts = gwo_ppt.PresentationWatermarkSlideOptions()
text_opts.slide_index = 0
watermarker.add(text_wm, text_opts)
with gww.ImageWatermark("logo.jpg") as img_wm:
img_opts = gwo_ppt.PresentationWatermarkSlideOptions()
img_opts.slide_index = 1
watermarker.add(img_wm, img_opts)
watermarker.save("presentation.pptx")
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.