TileOptions class

TileOptions class

Represents options for configuring watermarks in tile mode.

The TileOptions type exposes the following members:

Constructors

Constructor Description
init

Properties

Property Description
line_spacing The spacing between lines for watermarks in tile mode.
rotate_around_origin The property that determines whether repeated watermarks are rotated around the document origin instead of the center.
tile_type The type of tile alignment for watermarks.
watermark_spacing The spacing between serials for watermarks in tile mode.

Example

import groupdocs.watermark as gw
import groupdocs.watermark.watermarks as gww

with gw.Watermarker("sample.pdf") as watermarker:
    watermark = gww.ImageWatermark("watermark.jpg")
    watermark.tile_options = gww.TileOptions()
    watermark.tile_options.line_spacing = gww.MeasureValue(gww.TileMeasureType.PERCENT, 12)
    watermark.tile_options.watermark_spacing = gww.MeasureValue(gww.TileMeasureType.PERCENT, 10)

    watermarker.add(watermark)
    watermarker.save("result.pdf")

Guides

Task guides that use TileOptions:

See Also