Add Digital Signature to an already signed Excel file
Contents
[
Hide
]
Possible Usage Scenarios
Aspose.Cells for Python via .NET provides the Workbook.add_digital_signature method that you can use to add digital signature to an already signed Excel file.
Please note while adding a digital signature to an already signed Excel document, if the original document is Aspose.Cells for Python via .NET generated document, it works well. But if the original document is generated by other engines (e.g. Microsoft Excel etc.), Aspose.Cells for Python via .NET cannot keep the file same after loading and re-saving it, this will make the original signature to be invalid.
How to Add Digital Signature to an Already Signed Excel File
The following sample code demonstrated how to make use of Workbook.add_digital_signature method to add digital signature to already signed Excel file. Please check the sample Excel file used in this code. This file is already digitally signed. Please check the output Excel file generated by the code. We have used the demo certificate named AsposeDemo.pfx in this code which has a password aspose. The screenshot shows the effect of the sample code on the sample Excel file after execution.