GroupDocs.Watermark for Python via .NET

Secure DOCX with Python Watermarks

Apply advanced watermarking to DOCX files in Python—great for protecting your Word documents in any industry.

Quickly Add Watermarks to Docx Files

GroupDocs.Watermark for Python via .NET: A powerful Python library that lets you add watermarks to your documents with ease.

  1. Main Class: Watermarker. Start by creating a Watermarker object. Give it your Docx file, either as a file path or a stream, to get started.
  2. Build Your Watermark. Next, make a Watermark object of the type you want. You can place it on any page or even in document elements like images or headers.
  3. Adjust the Look. Set up the watermark’s size, position, font, and color to match your needs.
  4. Add and Save. Use the Watermarker method to insert your watermark. Add as many as you want, then save the file wherever you like.
# Add an image watermark to a DOCX file
import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.common as gwс

# Pass the file path to the Watermarker constructor
with gw.Watermarker("input.docx") as watermarker:

    # Create an image watermark using your image file
    watermark = gww.ImageWatermark("watermark.png")

    watermarker.add(watermark)

    # Save the DOCX file with the watermark
    watermarker.save("output.docx")
pip install groupdocs-watermark-net
click to copy
copied
More examples Documentation

Discover More Watermarking Tools

GroupDocs.Watermark for Python via .NET gives you advanced options for adding and customizing watermarks in many file types. Protect your documents and images with flexible, easy-to-use features.

All-in-one Watermarking

Full-Page Tiling

Cover your entire document with tiled watermarks. This makes it hard to remove watermarks and keeps your files protected without ruining the layout.

Custom Colors

Pick any color for your watermark to match your brand or document style. Make your watermark stand out or blend in as needed.

Extra Security Options

Boost your document security with layered watermarks. Combine visible and hidden marks to prevent copying and make sure only the right people can access your files.

Add a Watermark to PowerPoint

This sample shows how to put a watermark on the background of PPTX slides.

Python

import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww
import groupdocs.watermark.options as gwo
import groupdocs.watermark.options.presentation as gwop

# Open a PPTX file
load_options = gwop.PresentationLoadOptions()
with gw.Watermarker("source.pptx", load_options) as watermarker:

    # Set watermark details
    with TextWatermark("Protected image", gww.Font("Arial", 8.0)) as watermark:

        watermark.horizontal_alignment = gwс.HorizontalAlignment.CENTER
        watermark.vertical_alignment = gwс.VerticalAlignment.CENTER
        watermark.rotate_angle = 45
        watermark.scale_factor = 1

        # Apply watermark to slide backgrounds
        watermarker.add(watermark)

        # Save the updated presentation
        watermarker.save("result.pptx")

GroupDocs.Watermark for Python via .NET

GroupDocs.Watermark for Python via .NET brings powerful watermarking to DOCX files. Easily add watermarks that scale, move, and blend with your document. Use it for legal, business, or confidential files, and choose from text or image watermarks with flexible placement. GroupDocs.Watermark supports the latest Python features for top-notch document protection.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Watermark for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Add Watermarks to DOCX with Python

Learn how to add secure, custom watermarks to DOCX files in Python for better document safety and copyright control.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English