Digitial Signature in ASPOSE.WORDS in java

Is it possible to insert digital signature in ASPOSE.WORDS in Java? If so, can you send us the sample code?

Thanks & Regards

@ramanna,

Thanks for your inquiry. Please check the code examples shared in following article.
Signing Word Documents

Thank you. We use the below code to sign the document using the digital signature, we face a problem when we pass input stream instead of a physical file.

Code #:

com.aspose.words.CertificateHolder certHolder = com.aspose.words.CertificateHolder.create("c:\users\pathi.pfx", "xxxxxxxxxxx");  
        
com.aspose.words.DigitalSignatureUtil.sign(java.io.ByteArrayInputStream(decodedString), java.io.ByteArrayInputStream(decodedString), certHolder);

Error: java.io cannot be resolved to a type

Please advise.

@ramanna,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the PFX file.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.