@australian.dev.nerds During the analysis we have not been able to find an option in Word that allows to specify the digital hash algorithm. We’ve also made draft code for testing purpose that allows to specify hash algorithm. However, Word cannot recognize documents produced with it and shows the following error while opening the document:
I am afraid this feature is not available yet. I have created a separate feature request for it WORDSNET-27188.
This feature request is logged as WORDSNET-25897 and is not yet implemented.
I just tested the new DigitalSignatureDetails and it’s excellent, making the life much easier
The only remaining thing is XpsSaveOptions.DigitalSignatureDetails = New Words.Saving.DigitalSignatureDetails(CertificateHolder, New Words.DigitalSignatures.SignOptions)
Currently, can use DigitalSignatureUtil.Sign to sign Xps files, however, will get error when opening in Microsoft Xps Viewer: This document has broken signatures.
Is this known or am I doing something wrong?
Thanks.
Thanks,
The given link says:
CryptoApi: 1: The Crypto API signature method used in Microsoft Word 97-2003 .DOC binary documents.
While I’ve got that in Word 2016 when signing Docx format.
Anyway, may I choose to select which DigitalSignatureType when signing (via SaveOptions)?
Thanks.
@australian.dev.nerds There is no way to select signature type while signing the document. Could you please attach documents signed using MS Word and Aspose.Words on your side along with signature used for signing? We will check them and provide you more information.
Hello
I just opened Word 2016, new document, saved the blank document as Docx, then File > Info > Protect Document > Add a Digital Signature
In the opened windows, just press Sign.
I used Aspose new SaveOptions to sign with the same certificate.
It was a Smime certificate, if it helps, I can share the Pfx file with private key, as it’s only used for testing.
Thanks.
@australian.dev.nerds
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-27192
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@australian.dev.nerds As it was mentioned earlier these properties are not related to PdfSaveOptions and must be set in the appropriate built-in document properties. So it is not likely we will duplicate them in save options.