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

Free Support Forum - aspose.com

Aspose.Words Java check DOCX Protect Password always return False

when I used :
boolean b = doc.unprotect(protectPassword);
if fileType is doc: doc.unprotect(protectPassword) used ok!
if fileType is docx: doc.unprotect(protectPassword) always return fasle


Thanks for your inquiry. Have you tried the latest version of Aspose.Words for Java i.e. 19.12 on your end? In case the problem still remains, please ZIP and upload your sample input Word document and password string to un-protect Word document here for testing. We will then investigate the issue on our end and provide you more information.