In contracts, application forms, report templates, and other Word documents, you may need to prevent users from changing certain content while still leaving selected areas editable. For example, a document can be made read-only, restricted to tracked changes or comments, or configured so that only form fields can be filled in. You can also protect most of the document while leaving specific ranges open for editing. These restrictions are different from a document open password. An open password controls whether someone can access the file at all, while editing restrictions control what users can do after the document has been opened. This article shows how to apply editing restrictions to Word documents in Java and how to define editable exceptions inside a protected document. Add the Dependency The examples below use Spire.Doc for Java to work with Word documents. For Maven projects, add its repository and dependency to pom.xml : <repositories> <repository> ...
File APIs for Word/Excel/PowerPoint/PDF
A blog about Microsoft Office and PDF document development using .NET and Java.