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

Hi,

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

Stephan

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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");

Console.WriteLine(doc.ProtectionType);

The output is “AllowOnlyFormFields”.

You can download the latest version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards,

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