GroupDocs.Watermark for Python via .NET

Instantly Identify Watermarks in Excel Spreadsheets

Locate and manage watermarks seamlessly using GroupDocs.Watermark for Python via .NET.

How to Detect Watermarks in Excel Files via Python

With GroupDocs.Watermark, identifying embedded watermarks in your business documents is simplified. Bring its capabilities into your Python workflows for seamless detection.

  1. Begin by loading the Excel document into an instance of the Watermarker class. Accepts input as a path, stream, or byte array.
  2. Narrow your search using the SearchCriteria object. To find image-based marks, use a sample image. For textual ones, specify characteristics such as content, style, or color.
  3. Invoke the Search method from the Watermarker object to extract watermark data. A collection of watermark instances will be returned for inspection.
  4. After retrieval, you can manage the results: remove undesired marks, or update details such as dimensions or message content.
# Detect text watermark in EXCEL format
import groupdocs.watermark as gw
import groupdocs.watermark.search.searchcriteria as gwss

# Initialize Watermarker with EXCEL file
with gw.Watermarker("input.xslx") as watermarker:

    # Execute watermark search
    search_criteria = gwss.TextSearchCriteria("test", False)
    possible_watermarks = watermarker.search(search_criteria)

    # Process the list of detected watermarks
    print("\nFound {0} possible watermark(s).".format(len(possible_watermarks)))
pip install groupdocs-watermark-net
click to copy
copied
More examples Documentation

Powerful Watermark Detection with GroupDocs.Watermark

Use GroupDocs.Watermark in your Python projects to efficiently scan and locate watermark elements in diverse document types.

Detecting Watermarks

Advanced Detection with Smart Filters

Easily identify watermarks in a wide array of document formats. GroupDocs.Watermark supports filtering by visual and textual traits including shape, transparency, and more.

Flexible Criteria for Search

Define personalized watermark search parameters with GroupDocs.Watermark. This precision enables targeted retrieval of hidden or customized watermark data.

Access and Organize Detected Watermarks

Simplify document auditing by fetching all embedded watermarks. Our tools enable efficient extraction, display, and management of found items.

Code Example: Detect Watermarks

See how to use GroupDocs.Watermark to search documents for embedded watermark content using flexible detection rules.

Python

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

# Open the target document from disk or stream
load_options = gwos.SpreadsheetLoadOptions()
with gw.Watermarker("source.xlsx", load_options) as watermarker:

    # Define the specific watermark properties to be used in the search
    criteria = gwss.TextFormattingSearchCriteria()
    criteria.foreground_color_range = gwss.ColorRange()
    criteria.foreground_color_range.min_hue = -5.0
    criteria.foreground_color_range.max_hue = 10.0
    criteria.foreground_color_range.min_brightness = 0.01
    criteria.foreground_color_range.max_brightness = 0.99
    criteria.background_color_range = gwss.ColorRange()
    criteria.background_color_range.is_empty = True
    criteria.font_name = "Arial"
    criteria.min_font_size = 19.0
    criteria.max_font_size = 42.0
    criteria.font_bold = True

    # Perform the search and collect matches
    possible_watermarks = watermarker.search(criteria)

    # Work with the found results for further action
    print("Found {0} possible watermark(s).".format(len(possible_watermarks)))

Overview of GroupDocs.Watermark for Python via .NET

GroupDocs.Watermark for Python via .NET delivers a full-featured watermark toolkit for Python developers. Generate, modify, find, and remove watermark content from documents like Excel, Word, PDF, and more with minimal effort.
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.

Multi-Format Watermark Search

Locate watermark content across all file types supported by GroupDocs.Watermark.

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