If the document is protected using Aspose DLL, Track Changes, Accept and reject changes buttons are disabled. Is there any API which we can leverage to enable accept or reject button in protected documents?

We have a document which is protected using Aspose provided framework. As a result of which end users can edit only a subset of the document. My question is if the document is protected, Track Changes, Accept and reject changes buttons are disabled. Is there any API which we can leverage to enable accept or reject button in protected documents?

track Changes button we are able to do successfully but for accept or reject button is there any API to enable on protected document?

@AjithAsposeAcc You can protect your document with ProtectionType.AllowOnlyRevisions. In this case, the user can only add revision marks to the document.

Document doc = new Document(@"C:\Temp\in.docx");
doc.Protect(ProtectionType.AllowOnlyRevisions, "pass");
doc.Save(@"C:\Temp\out.docx");

Please note, Aspose.Words is limited to what is supported by the document format. As I can see MS Word formats does not allow to protect the document with an ability to accept/reject revisions.

Thanks a lot for reply.

1 Like