I have a password protected docuement. When i try to convert the docuement without giving password using Aspose word for Java, its not throwing any error. Please suggest me some solution.My code looks like,
doc = new Document(“C:/vignesh/Aspose/AsposePassword/src/Output1.doc”,new LoadOptions(""));
Note:I have attached the document.
Thanks for your inquiry. Actually there is no password to open the document. There is a password to modify the document. That is why you can open the file using Aspose.Words without specifying a password.
You can check whether there is password to modify using code like the following:
Document doc = new Document("C:\\Temp\\Output1.doc");
Also, please see the documentation for more information: