__init__ constructor
Leave feedback
On this page
Initializes a new instance of the PresentationWatermarkSlideOptions class.
def __init__(self):
...
from groupdocs.watermark import Watermarker
from groupdocs.watermark.watermarks import TextWatermark, Font, Color
from groupdocs.watermark.common import HorizontalAlignment, VerticalAlignment
from groupdocs.watermark.options.presentation import (
PresentationLoadOptions,
PresentationWatermarkSlideOptions,
)
with Watermarker("./presentation.pptx", PresentationLoadOptions()) as watermarker:
watermark = TextWatermark("CONFIDENTIAL", Font("Arial", 19.0))
watermark.foreground_color = Color.red
watermark.horizontal_alignment = HorizontalAlignment.CENTER
watermark.vertical_alignment = VerticalAlignment.CENTER
options = PresentationWatermarkSlideOptions()
options.slide_index = 0
watermarker.add(watermark, options)
watermarker.save("./output.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.