GroupDocs.Watermark for Python via .NET

Quickly Find Watermarks in PDF PDFs

Use GroupDocs.Watermark for Python via .NET to scan and manage hidden PDF watermarks.

Easily Detect Pdf 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 Pdf 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 PDF
import groupdocs.watermark as gw
import groupdocs.watermark.search.searchcriteria as gwss

# Create a Watermarker instance using the path to PDF
with gw.Watermarker("input.pdf") 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)))        

What is GroupDocs.Watermark for Python via .NET?

GroupDocs.Watermark for Python via .NET makes it easy to work with watermarks in Python. You can use it to create, detect, or delete watermarks in many file types like PDFs, Word docs, and spreadsheets. Add it to your Python workflow.
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.

Find Watermarks in Many File Types

Easily find and deal with watermarks in a wide variety of file 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