GroupDocs.Watermark for Python via .NET

Protect DOC with Python Watermarks

Use Python to add secure watermarks to DOC files—ideal for legal, business, and confidential Word documents.

Quickly Add Watermarks to Doc 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 Doc 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 DOC 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.doc") as watermarker:

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

    watermarker.add(watermark)

    # Save the DOC file with the watermark
    watermarker.save("output.doc")
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 lets you add watermarks to DOC files in Python. Insert text or image watermarks, adjust their opacity, color, and position, and include details like dates, logos, or confidential stamps. This tool is perfect for legal, business, and sensitive documents, and works smoothly in Python environments. GroupDocs.Watermark is a reliable way to keep your Word files secure and authentic.
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.

Python Watermarking for Word Files

Use Python to add custom watermarks to DOC files, helping you protect and verify your Word documents.

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