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. (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)

Properties

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

Example

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")

See Also