TileOptions class
Leave feedback
On this page
Represents options for configuring watermarks in tile mode.
The TileOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init |
| 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. |
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")
Task guides that use TileOptions:
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.