We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cloning password protected Document

Hi,

I am using Aspose words for java v10. Usually when the password protected document is opened in MSWord, the password will be asked twice. I am trying to clone a password protected document using the following code,

String pass=“111”;
doc = new Document(“content.doc”,new LoadOptions(pass));
shapeDoc = (Document)doc.deepClone(false);
shapeDoc.ensureMinimum();
shapeDoc.save(“Output.doc”,SaveFormat.DOC);

When i open the Output.doc in MSWord, its asking the password just one time. Why is it so?. Correct me if am wrong anywhere. I need a cloned document with password settings. Is there any method to set the cloned document as password protected? Please help me.

The issues you have found earlier (filed as WORDSNET-2285) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(14)