The range of colors used to filter vector watermarks by foreground color.
Example
fromgroupdocs.watermarkimportWatermarker,VectorSearchCriteria,ColorRange,Color# Open the documentwatermarker=Watermarker(r"C:\test.pdf")# Create search criteriasearch_criteria=VectorSearchCriteria()# Define the watermark color to filter bywatermark_color=Color.from_html("#a9aaae")# Set the color range with brightness limitscriteria_vector_color_range=ColorRange(watermark_color)criteria_vector_color_range.min_brightness=0.1criteria_vector_color_range.max_brightness=0.7search_criteria.vector_color_range=criteria_vector_color_range# Search and remove watermarkspossible_watermark_collection=watermarker.search(search_criteria)possible_watermark_collection.clear()# Save the modified documentwatermarker.save(r"C:\modified_test.pdf")