The following code example shows how to mark the whole document as read-only and specify editable regions in it: So, anyone who opens your document will be able to access these unrestricted parts and make changes to the content.Īspose.Words allows you to mark the parts that can be changed in your document using the StartEditableRange and EndEditableRange methods. You can restrict editing of your document and at the same time allow changes to selected parts of it. The following code example shows how to remove protection from your document: Specify Unrestricted Editable Regions You can either remove the document protection without knowing the actual password or provide the correct password to unlock the document by using the Unprotect method. The following code example shows how to restrict editing in a document so only editing in form fields is possible: Remove Document ProtectionĪspose.Words allows you to remove protection from a document with simple and direct document modification. The following code example shows how to add password protection to your document: Alternative feature – “Restrict Editing” (Review → Protect → Restrict Editing).Restrict Editing (File → Info → Protect Document).In Microsoft Word, you can restrict editing in a similar way using both: If you did not set a password when choosing the security type, other users can simply ignore the protection of your document. Thus, if your document is returned to you without a requirement to provide the necessary password, this is a sign that something is wrong. This will enable you to select an exact type of protection such as the following:Īll types are password-secured, and if this password is not entered correctly, a user will not be able to legally change the content of your document. Select Editing Restriction TypeĪspose.Words allows you to control the way you restrict the content using the ProtectionType enumeration parameter. This article explains how to use Aspose.Words to select a restriction type, how to add or remove protection, and how to make unrestricted editable regions. In addition, Aspose.Words also enables you to specify write protection settings for a document. This can be useful to prevent other people from editing sensitive and confidential information in your document.Īspose.Words allows you to restrict editing a document by setting a restriction type. Sometimes you may need to limit the ability to edit a document and only allow certain actions with it. Aspose.Total Product Family Aspose.Words Product Solution Aspose.PDF Product Solution Aspose.Cells Product Solution Aspose.Email Product Solution Aspose.Slides Product Solution Aspose.Imaging Product Solution Aspose.BarCode Product Solution Aspose.Diagram Product Solution Aspose.Tasks Product Solution Aspose.OCR Product Solution Aspose.Note Product Solution Aspose.CAD Product Solution Aspose.3D Product Solution Aspose.HTML Product Solution Aspose.GIS Product Solution Aspose.ZIP Product Solution Aspose.Page Product Solution Aspose.PSD Product Solution Aspose.OMR Product Solution Aspose.PUB Product Solution Aspose.SVG Product Solution Aspose.Finance Product Solution Aspose.Drawing Product Solution Aspose.Font Product Solution Aspose.TeX Product Solution
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |