Hi,
I wanted to create a word document in 2007 format (.docx) with password protected.
I used the below code. When I open the generated document in 2007 and select un-protect option it is prompting for the password. But when I do the same in 2003, it un-protects the doucment without prompting for password.
doc.protect(ProtectionType.ALLOW_ONLY_FORM_FIELDS, "12345");
doc.save(byteArrayOutputStream, SaveFormat.DOCX);
Is this a known issues or am I doing something wrong ?