digital_signature_details property
OoxmlSaveOptions.digital_signature_details property
Gets or sets DigitalSignatureDetails object used to sign a document.
@property
def digital_signature_details(self) -> aspose.words.saving.DigitalSignatureDetails:
...
@digital_signature_details.setter
def digital_signature_details(self, value: aspose.words.saving.DigitalSignatureDetails):
...
Examples
Shows how to sign OOXML document.
doc = aw.Document(MY_DIR + 'Document.docx')
certificate_holder = aw.digitalsignatures.CertificateHolder.create(MY_DIR + 'morzal.pfx', 'aw')
save_options = aw.saving.OoxmlSaveOptions()
sign_options = aw.digitalsignatures.SignOptions()
sign_options.comments = 'Some comments'
sign_options.sign_time = datetime.datetime.now()
save_options.digital_signature_details = aw.saving.DigitalSignatureDetails(certificate_holder, sign_options)
doc.save(ARTIFACTS_DIR + 'OoxmlSaveOptions.DigitalSignature.docx', save_options)
See Also
- module aspose.words.saving
- class OoxmlSaveOptions