HyperlinkPossibleWatermark class

HyperlinkPossibleWatermark class

Represents a possible hyperlink watermark in PowerPoint content.

The HyperlinkPossibleWatermark type exposes the following members:

Properties

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)

Example

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

with gw.Watermarker("document.pdf") as watermarker:
    possible = watermarker.search(gws_sc.TextSearchCriteria(re.compile(r"someurl\.com")))
    # iterate backwards when removing by index
    for i in range(possible.count - 1, -1, -1):
        if isinstance(possible[i], gws.HyperlinkPossibleWatermark):
            print(possible[i].text)
            possible.remove_at(i)

    watermarker.save("document.pdf")

See Also