SpreadsheetContent class

SpreadsheetContent class

Represents an Excel document where a watermark can be placed.

Learn more:

The SpreadsheetContent type exposes the following members:

Methods

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. The search is conducted in the objects specified in Watermarker.SearchableObjects. (inherited from ContentPart)
find_images_image_search_criteria (inherited from ContentPart)
search Finds possible watermarks according to the specified search criteria. The search is performed on the objects listed in Watermarker.SearchableObjects. (inherited from ContentPart)
search_search_criteria (inherited from ContentPart)

Properties

Property Description
worksheets The collection of all worksheets of this SpreadsheetContent.

Example

from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.spreadsheet import SpreadsheetLoadOptions

load_options = SpreadsheetLoadOptions()
with Watermarker(r"D:\input.xls", load_options) as watermarker:
    # Use add method to add watermark to a particular or all worksheets.
    watermarker.save(r"D:\output.xls")

See Also