SpreadsheetContent class
Leave feedback
On this page
Represents an Excel document where a watermark can be placed.
Learn more:
- https://docs.groupdocs.com/display/watermarknet/Add+watermarks+to+spreadsheet+documents
- https://docs.groupdocs.com/display/watermarknet/Shapes+in+spreadsheet+document
- https://docs.groupdocs.com/display/watermarknet/Working+with+spreadsheet+document+attachments
- https://docs.groupdocs.com/display/watermarknet/Working+with+worksheet+backgrounds
- https://docs.groupdocs.com/display/watermarknet/Working+with+worksheet+headers+and+footers
The SpreadsheetContent type exposes the following members:
| Method | Description |
|---|---|
| decrypt | Decrypts the document. |
| encrypt | Encrypts the content. |
| encrypt_file | |
| encrypt_string | |
| dispose | Disposes the current instance. (inherited from Content) |
| find_images | Finds images according to the specified search criteria. (inherited from ContentPart) |
| find_images_image_search_criteria | (inherited from ContentPart) |
| search | Finds possible watermarks according to the specified search criteria. (inherited from ContentPart) |
| search_search_criteria | (inherited from ContentPart) |
| Property | Description |
|---|---|
| worksheets | The collection of all worksheets of this SpreadsheetContent. |
import groupdocs.watermark as gw
import groupdocs.watermark.contents.spreadsheet as gwc_xls
load_options = gw.SpreadsheetLoadOptions()
with gw.Watermarker("input.xls", load_options) as watermarker:
content = watermarker.get_content(gwc_xls.SpreadsheetContent)
# perform watermark operations on `content` here
watermarker.save("output.xls")
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.