if the file is protected with STDocProtect.FORMS then delete all comments.
but each time i execute those code it returns null.
- Code: Select all
public static STDocProtect getProtectionType(MainDocumentPart mdp) throws Docx4JException {
DocumentSettingsPart ds = mdp.getDocumentSettingsPart();
CTSettings cs = ds.getContents();
CTDocProtect cp = cs.getDocumentProtection();
return cp.getEdit();
}
how can i do this correctly?