GroupDocs.Watermark for Python via .NET

Detect and Manage Watermarks in XLS Sheets

Easily search for watermarks with GroupDocs.Watermark for Python via .NET.

Easily Detect Xls Watermarks Using Python

GroupDocs.Watermark makes it easy to detect watermarks in different types of business documents. Add this tool to your Python project to enable watermark detection features.

  1. To begin, initialize the Watermarker class and load your Xls document using a file path, file stream, or byte array. This prepares the file for watermark search.
  2. To narrow your search, use the SearchCriteria class. For image watermarks, provide a sample image. For text, set details like font, size, color, or other related attributes.
  3. Call the Search method from the Watermarker instance to start the search. It returns a list of found watermark items for you to work with.
  4. With the list of watermark items, you can remove or edit them as needed. For example, you might want to update their size or text.
# Search for text watermarks inside XLS
import groupdocs.watermark as gw
import groupdocs.watermark.search.searchcriteria as gwss

# Create a Watermarker instance using the path to XLS
with gw.Watermarker("input.xls") as watermarker:

    # Use search settings to find watermarks
    search_criteria = gwss.TextSearchCriteria("Watermark text", False)
    possible_watermarks = watermarker.search(search_criteria)

    # Handle the found watermark results
    print("\nFound {0} possible watermark(s).".format(len(possible_watermarks)))
pip install groupdocs-watermark-net
click to copy
copied
More examples Documentation

Advanced Watermark Detection in Python with GroupDocs.Watermark

Explore powerful watermark search options in the GroupDocs.Watermark API, designed for use in Python projects.

Python Watermark Search

Simple and Fast Watermark Detection

Use GroupDocs.Watermark to quickly find watermarks in your Python code. The smart search engine helps you locate watermarks with ease.

Find Specific Watermarks with Accuracy

Protect your files by finding watermarks based on color, size, or location. GroupDocs.Watermark makes it easy to configure search filters in Python.

Python Tools for Full Watermark Control

Add GroupDocs.Watermark to your Python apps to search, inspect, and track watermark usage. Great for audits, branding, or content protection.

Python Sample: Full Watermark Detection Flow

See how to use GroupDocs.Watermark in Python to search through documents, handle multiple formats, and use complex filters.

Python

import groupdocs.watermark as gw
import groupdocs.watermark.search.searchcriteria as gwss
import groupdocs.watermark.options.spreadsheet as gwos

# Set up your Python app and load the document
load_options = gwos.SpreadsheetLoadOptions()
with gw.Watermarker("source.xlsx", load_options) as watermarker:

    # Define what kind of watermark to look for
    criteria = gwss.ImageColorHistogramSearchCriteria("watermark.png")
    criteria.MaxDifference = 0.5
    criteria.bins_count = 2

    # Run the search and gather watermark data
    possible_watermarks = watermarker.search(criteria)

    # Use the found info for further steps like removal or review
    print("Found {0} possible watermark(s).".format(len(possible_watermarks)))        

More on GroupDocs.Watermark for Python via .NET

GroupDocs.Watermark helps Python developers manage watermarks in Python. Use it for editing, removing, or locating watermarks in Excel, Word, PDF, and other formats.
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 Search Across Formats

Find and manage watermarks in many different supported formats.

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