Sections getting protected while converting WordML to DOCX

Dear Team,

We are trying to convert a Word document to Word xml and do some manipulation in this XML and then I convert word xml back to DOCX word . The feature is working but few of the sections are protected during this conversion and we are not able to edit the updated document. Request you to please help. Attaching the input word document and the code.

Note: - The input document has few sections protected but the resultant document is completely protected irrespective of the sections.

Convert Word to Word Xml :

Document doc = new Document(Server.MapPath("//input.docx"));
doc.Save(Server.MapPath("//output.xml"), SaveFormat.WordML);

Convert Word Xml to Word :

Document doc = new Document(Server.MapPath("//output.xml"));
doc.Save(Server.MapPath("//output.docx"), SaveFormat.Docx);

Thanks

Hi Anish,

Thanks for your inquiry. I have managed to reproduce the same issue at my side. The problem occurs because Aspose.Words does not support protection of selected ranges (partial protection of document). This thread has been linked to the appropriate feature (WORDSNET-1067) in our issue tracking system. We will let you know once this feature is supported. We apologize for your inconvenience.

I would suggest you please read the following article on Protecting Documents:

The issues you have found earlier (filed as WORDSNET-1067) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(37)