RotateAngleSearchCriteria class
Leave feedback
On this page
Represents criteria allowing filtering by watermark rotate angle.
Learn more:
The RotateAngleSearchCriteria type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new RotateAngleSearchCriteria with a starting angle and an ending angle. |
| 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) |
| Property | Description |
|---|---|
| maximum_angle | The ending angle in degrees. |
| minimum_angle | The starting angle in degrees. |
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)")
Task guides that use RotateAngleSearchCriteria:
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.