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

Free Support Forum - aspose.com

Wrong ProtectionType for Docs with more as one section

I have a document with three section. The document protection is “Filling in Form”. The first und last section are unchecked for protection. Only the second section will be protected.
If you load the document with Aspose, the property ProtectionType of document is “NoProtection”. That’s wrong.
The same with Word API, you get the correct ProtectionType property as WdProtectionType.wdAllowOnlyFormFields.
A sample doc can you find in attachment
Best Thanks


Thanks for your request. I cannot reproduce the problem on my side using the latest version of Aspose.Words (9.4.0). I use the following code for testing:

Document doc = new Document("ProtectedForForms.docx");

The output is “AllowOnlyFormFields”.
You can download the latest version from here:
Best regards,

Sorry, I think the fault lay with me … Toooooo many documents