# eSign Spreadsheet with Metadata signature This article explains how to add metadata signatures to Spreadsheet document with GroupDocs.Signature ## Overview [**GroupDocs.Signature**](https://products.groupdocs.com/signature/python-net) provides [SpreadsheetMetadataSignature](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.domain/spreadsheetmetadatasignature) class to specify different Metadata signature objects for [MetadataSignOptions](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.options/metadatasignoptions) instance to sign Spreadsheet document files. Spreadsheet document metadata is hidden attributes, some of them are visible only over viewing standard document properties like Author, Creation Date, Producer, Entry, Keywords etc. Spreadsheet document metadata contains pair of Name and Value, Name should be unique within the document. Spreadsheet document metadata could keep big amount of data that allows provides ability to keep serialized custom objects with additional encryption in there. ### Here are the steps to add metadata signatures into Spreadsheet document with GroupDocs.Signature: * Create new instance of [Signature](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature) class and pass source document path as a constructor parameter. * Instantiate the [MetadataSignOptions](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.options/metadatasignoptions) object according to your requirements. * Instantiate one or several [SpreadsheetMetadataSignature](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.domain/spreadsheetmetadatasignature) objects and add them to the [signatures](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.options/metadatasignoptions/signatures) collection of [MetadataSignOptions](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.options/metadatasignoptions) with the [append](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.domain/metadatasignaturecollection/append) or [add_range](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.domain/metadatasignaturecollection/add_range) method. * Call [Sign](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature/sign/) method of [Signature](https://reference.groupdocs.com/signature/python-net/groupdocs.signature/signature) class instance and pass [MetadataSignOptions](https://reference.groupdocs.com/signature/python-net/groupdocs.signature.options/metadatasignoptions) to it. ## How to eSign Spreadsheet with Metadata signature This example shows how to add Metadata e-signature to a Spreadsheet document. {{< tabs "sign_xlsx" >}} {{< tab "Python" >}} ```python 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() ``` {{< /tab >}} {{< tab "sample.xlsx" >}} {{< tab-text >}} `sample.xlsx` is the sample file used in this example. Click [here](https://docs.groupdocs.com/signature/python-net/_sample_files/developer-guide/basic-usage/electronic-signature-types/esign-document-with-metadata-signature/esign-spreadsheet-with-metadata-signature/sample.xlsx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "signed.xlsx" >}} ```text Binary file (XLSX, 39 KB) ``` [Download full output](https://docs.groupdocs.com/signature/python-net/_output_files/developer-guide/basic-usage/electronic-signature-types/esign-document-with-metadata-signature/esign-spreadsheet-with-metadata-signature/sign_xlsx/signed.xlsx) {{< /tab >}} {{< /tabs >}} ## More resources ### GitHub Examples You may easily run the code above and see the feature in action in our GitHub examples: * [GroupDocs.Signature for Python via .NET examples, plugins, and showcase](https://github.com/groupdocs-signature/GroupDocs.Signature-for-Python-via-.NET) ### Free Online Apps Along with the full-featured Python library, we provide simple but powerful free online apps. To sign PDF, Word, Excel, PowerPoint, and other documents you can use the online apps from the **[GroupDocs.Signature App Product Family](https://products.groupdocs.app/signature/family)**.