Free Support Forum -

Aspose.Word preserve all setting -- is any where article mention dont loose any setting including password protection

Hi Aspose,

I am converting from docx to doc using aspose.

Aspose.Words.Document doc = new Aspose.Words.Document(proposedFileName);<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

doc.Save(proposedFileNameDoc + ".doc");

but i am concern about all my previous settings, including password protection also, as my assumption aspose dont loose any thing, but is any where link or artilcle where mention same thing.

Thanks and Regards


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

Thanks for your request. I think the following section in the documentation could be useful for you:

If you are worried about some feature, I think, you should create test method, which will check whether this feature is preserved. For instance, the following test method checks whether protection type of the document is preserved after converting DOC to DOCX:


public void TestProtection()


// Open source document.

Document doc = new Document(@"Test001\in.doc");

// Get protection type of the source document.

ProtectionType protectionType = doc.ProtectionType;

// Save document in DOCX format.


// Open DOCX document.

doc = new Document(@"Test001\out.docx");

// Check whether ProtectionType was preserved.

Assert.AreEqual(protectionType, doc.ProtectionType);


Using such test methods, you can verify all features in your documents.

Best regards.