RotateAngleSearchCriteria class

RotateAngleSearchCriteria class

Represents criteria allowing filtering by watermark rotate angle.

Learn more:

The RotateAngleSearchCriteria type exposes the following members:

Constructors

Constructor Description
init Initializes a new RotateAngleSearchCriteria with a starting angle and an ending angle.

Methods

Method Description
and_ Combines this SearchCriteria with other criteria using the logical AND operator. (inherited from SearchCriteria)
and_search_criteria (inherited from SearchCriteria)
not_ Negates this SearchCriteria. (inherited from SearchCriteria)
or_ Combines this SearchCriteria with other criteria using logical OR operator. (inherited from SearchCriteria)
or_search_criteria (inherited from SearchCriteria)

Properties

Property Description
maximum_angle The ending angle in degrees.
minimum_angle The starting angle in degrees.

Example

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

with gw.Watermarker("document.pdf") as watermarker:
    image_criteria = gws_sc.ImageDctHashSearchCriteria("logo.png")
    image_criteria.max_difference = 0.9
    text_criteria = gws_sc.TextSearchCriteria("Company Name")
    angle_criteria = gws_sc.RotateAngleSearchCriteria(30, 60)

    combined = image_criteria.or_(text_criteria).and_(angle_criteria)
    possible = watermarker.search(combined)
    print("Found", possible.count, "possible watermark(s)")

Guides

Task guides that use RotateAngleSearchCriteria:

See Also