SpreadsheetWatermarkHeaderFooterOptions class
Leave feedback
On this page
Represents options when adding the watermark to a Spreadsheet header/footer.
Learn more:
The SpreadsheetWatermarkHeaderFooterOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the SpreadsheetWatermarkHeaderFooterOptions class. |
| Property | Description |
|---|---|
| worksheet_index | The index of worksheet to add the watermark to. |
| Field | Description |
|---|---|
| DEFAULT | Gets the default value for the class. (inherited from WatermarkOptions) |
from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.spreadsheet import SpreadsheetLoadOptions, SpreadsheetWatermarkHeaderFooterOptions
from groupdocs.watermark.watermarks import Font, TextWatermark
load_options = SpreadsheetLoadOptions()
with Watermarker("./test.xlsx", load_options) as watermarker:
watermark = TextWatermark("Test", Font("Arial", 14))
options = SpreadsheetWatermarkHeaderFooterOptions()
options.worksheet_index = 0
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.