WordProcessingWatermarkPagesOptions class
Leave feedback
On this page
Represents options when adding a watermark to Word document pages.
Learn more:
- Add watermarks to word processing documents: https://docs.groupdocs.com/display/watermarknet/Add+watermarks+to+word+processing+documents
The WordProcessingWatermarkPagesOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the WordProcessingWatermarkPagesOptions class. |
| Property | Description |
|---|---|
| page_numbers | The page numbers to add the watermark. |
| alternative_text | The descriptive (alternative) text that will be associated with a shape. (inherited from WordProcessingWatermarkBaseOptions) |
| effects | The effects to apply to the watermark, specified as a WordProcessingImageEffects or WordProcessingTextEffects instance. (inherited from WordProcessingWatermarkBaseOptions) |
| is_locked | The property indicates whether editing of the shape in Word is forbidden. (inherited from WordProcessingWatermarkBaseOptions) |
| lock_type | The watermark lock type. (inherited from WordProcessingWatermarkBaseOptions) |
| name | The name of the shape. (inherited from WordProcessingWatermarkBaseOptions) |
| password | The password used to lock the watermark. (inherited from WordProcessingWatermarkBaseOptions) |
| Field | Description |
|---|---|
| DEFAULT | Gets the default value for the class. (inherited from WatermarkOptions) |
from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.word_processing import WordProcessingLoadOptions, WordProcessingWatermarkPagesOptions
from groupdocs.watermark.watermarks import TextWatermark, Font
load_options = WordProcessingLoadOptions()
with Watermarker(r"D:\test.doc", load_options) as watermarker:
watermark = TextWatermark("text", Font("Arial", 42))
options = WordProcessingWatermarkPagesOptions()
options.page_numbers = [1]
watermarker.add(watermark, options)
watermarker.save()
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.