SpreadsheetMetadataSignature class
Leave feedback
On this page
The class contains Spreadsheet Metadata Signature properties.
The SpreadsheetMetadataSignature type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes Spreadsheet Metadata Signature with predefined name and empty value. |
| init | Initializes a Spreadsheet Metadata Signature with predefined values. |
| Method | Description |
|---|---|
| clone | Clone Metadata Signature instance. |
| clone | Clones a SpreadsheetMetadataSignature instance with the specified value. |
| clone_object | |
| to_string | Converts the metadata signature value to a string using the overridden ToString method. |
| to_string | Converts the metadata signature to a string using the specified format. |
| to_string_file | |
| to_string_string | |
| equals | Determines whether the specified signature is equal to this instance. (inherited from MetadataSignature) |
| equals_object | (inherited from MetadataSignature) |
| get_data | (inherited from MetadataSignature) |
| get_data_idata_encryption | (inherited from MetadataSignature) |
| get_hash_code | Returns the hash code for the metadata signature. (inherited from MetadataSignature) |
| to_boolean | Converts to boolean. (inherited from MetadataSignature) |
| to_date_time | Converts the metadata signature value to a datetime. (inherited from MetadataSignature) |
| to_date_time_iformat_provider | (inherited from MetadataSignature) |
| to_decimal | Converts the metadata signature value to Decimal. (inherited from MetadataSignature) |
| to_decimal_iformat_provider | (inherited from MetadataSignature) |
| to_double | Converts the metadata signature value to a float. (inherited from MetadataSignature) |
| to_double_iformat_provider | (inherited from MetadataSignature) |
| to_integer | Converts the metadata signature value to an integer. (inherited from MetadataSignature) |
| to_single | Converts the metadata signature value to a float. (inherited from MetadataSignature) |
| to_single_iformat_provider | (inherited from MetadataSignature) |
| Property | Description |
|---|---|
| created_on | The signature creation date. (inherited from BaseSignature) |
| data_encryption | The implementation of IDataEncryption used to encode and decode signature value properties. (inherited from MetadataSignature) |
| deleted | The flag indicating whether this signature was deleted from the document. (inherited from BaseSignature) |
| height | The height of the signature. (inherited from BaseSignature) |
| is_signature | The flag indicating whether this component represents a signature (True) or document content (False). (inherited from BaseSignature) |
| left | The left position of the signature. (inherited from BaseSignature) |
| modified_on | The signature modification date. (inherited from BaseSignature) |
| name | The unique metadata name. (inherited from MetadataSignature) |
| page_number | The page number where the signature was found. (inherited from BaseSignature) |
| signature_id | The unique identifier of the signature, used to modify the signature in the document via update or delete operations. (inherited from BaseSignature) |
| signature_type | The type of signature. (inherited from BaseSignature) |
| top | The top position of the signature. (inherited from BaseSignature) |
| type | The metadata value type. (inherited from MetadataSignature) |
| value | The metadata object. (inherited from MetadataSignature) |
| width | The width of the signature. (inherited from BaseSignature) |
from datetime import datetime
from groupdocs.signature import Signature
from groupdocs.signature.options import MetadataSignOptions
from groupdocs.signature.domain import SpreadsheetMetadataSignature
def sign_xlsx():
with Signature("sample.xlsx") as signature:
options = MetadataSignOptions()
# Create a few Spreadsheet Metadata signatures
signatures = [
SpreadsheetMetadataSignature("Author", "Mr.Scherlock Holmes"),
SpreadsheetMetadataSignature("DateCreated", datetime.now()),
SpreadsheetMetadataSignature("DocumentId", 123456),
SpreadsheetMetadataSignature("SignatureId", 123.456),
]
# Add them to the options
options.signatures.add_range(signatures)
# Sign the spreadsheet and save the result
result = signature.sign("signed.xlsx", options)
print(f"Signed with {len(result.succeeded)} metadata signature(s):")
for item in result.succeeded:
print(f" {item.name}")
if __name__ == "__main__":
sign_xlsx()
- module
groupdocs.signature.domain
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.