and_ method
Leave feedback
On this page
Combines this SearchCriteria with other criteria using the logical AND operator.
def and_(self, other):
...
| Parameter | Type | Description |
|---|---|---|
| other | SearchCriteria |
Search criteria to combine with. |
Returns: Combined search criteria.
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)")
- class
SearchCriteria
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.