HyperlinkPossibleWatermark class
Leave feedback
On this page
Represents possible hyperlink watermark in a PowerPoint content.
The HyperlinkPossibleWatermark type exposes the following members:
| Property | Description |
|---|---|
| height | The height of this HyperlinkPossibleWatermark. |
| parent | The parent of this HyperlinkPossibleWatermark. |
| rotate_angle | The rotate angle of this HyperlinkPossibleWatermark in degrees. |
| text | The URL of this HyperlinkPossibleWatermark. |
| unit_of_measurement | The unit of measurement of this HyperlinkPossibleWatermark. |
| width | The width of this HyperlinkPossibleWatermark. |
| x | The x-coordinate of this HyperlinkPossibleWatermark. |
| y | The y-coordinate of this HyperlinkPossibleWatermark. |
| formatted_text_fragments | The collection of formatted text fragments of this PossibleWatermark. (inherited from PossibleWatermark) |
| image_data | The image of this PossibleWatermark or None if the watermark has no image. (inherited from PossibleWatermark) |
| page_number | The page number where the watermark is placed. (inherited from PossibleWatermark) |
import re
from groupdocs.watermark import Watermarker
from groupdocs.watermark.search import HyperlinkPossibleWatermark
from groupdocs.watermark.search.search_criteria import TextSearchCriteria
with Watermarker("./document.pdf") as watermarker:
possible = watermarker.search(TextSearchCriteria(re.compile(r"someurl\.com")))
for i in range(len(possible) - 1, -1, -1):
if isinstance(possible[i], HyperlinkPossibleWatermark):
print(possible[i].text)
watermarker.remove(possible[i])
watermarker.save("./output.pdf")
- module
groupdocs.watermark.search
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.