GroupDocs.Watermark for Python via .NET API

Word Watermark Remover for Python

Use the GroupDocs.Watermark for Python via .NET API to clear watermarks from Word files, keeping your legal and business documents tidy.

How to Remove Watermarks from Word Files in Python

GroupDocs.Watermark makes it easy to erase watermarks from your business documents. Add our library to your Python project and follow these steps:

  1. Start by creating a Watermarker object with your Word file. You can use a file path or a stream as input.
  2. Use SearchCriteria to filter which watermarks you want to remove. You can search by text, image, or formatting. The more details you give, the more accurate your search will be.
  3. Go through the found watermarks and remove the ones you don’t need from the document.
  4. Once finished, save the cleaned document as a file or stream.
# Delete text watermark from a Word file
import groupdocs.watermark as gw
import groupdocs.watermark.search.searchcriteria as gwss

# Open the Word file with a Watermarker instance
with gw.Watermarker("input.docx") as watermarker:

    # Find and remove the chosen watermarks
    search_criteria = gwss.TextFormattingSearchCriteria("test", False)
    criteria.ForegroundColorRange = gwss.ColorRange()
    criteria.FontBold = True

    possible_watermarks = watermarker.search(search_criteria)
    watermarks.clear()

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

Efficient Watermark Removal with Python in Python

Our Python API helps you quickly remove watermarks from PDFs and office files, keeping your documents clean and original.

Erase Watermark

Accurate Watermark Deletion

The Python API lets you remove watermarks without damaging your document’s layout or quality. It’s designed for developers who need reliable results.

Remove Watermarks in Bulk

Easily clear watermarks from many files at once. This is perfect for companies that need to process lots of documents quickly and securely.

Advanced Editing for Watermarks

Use advanced options to fine-tune or edit watermarks before removing them. This helps you keep your documents looking professional and safe.

Remove text watermark from Excel

This example shows how to delete text watermarks with special formatting in Excel files.

Python

import groupdocs.watermark as gw
import groupdocs.watermark.search.searchcriteria as gwss

# Open the Excel file
with gw.Watermarker("source.xlsx") as watermarker:

    # Search for the watermark
    search_criteria = gwss.TextSearchCriteria("someurl.com")

    # Delete the watermark
    watermarks = watermarker.search(search_criteria)

    for i in range(len(watermarks) - 1, -1, -1):
        if isinstance(watermarks[i], gws.HyperlinkPossibleWatermark):
            del watermarks[i]

    # Save the cleaned XLSX
    watermarker.save("result.xlsx");

GroupDocs.Watermark for Python via .NET library

With GroupDocs.Watermark for Python via .NET, you can easily find and remove watermarks in Word files. Detect, change, or delete both text and image watermarks while keeping your document’s layout intact.
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.

Watermark Management in Word with Python

Discover how to manage and remove watermarks in Word files using our Python API for better document quality.

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