File Content Extraction 26.3
Filter SDK Java Programming Guide

# Document Restrictions

Some applications, and corresponding file formats, allow users to restrict the ways in which a document can be used. For example, you might be able to read a document but additional credentials (such as a password) could be required to modify the document content, add comments, or print the document. The restrictions might not be enforced by encryption, but instead rely on any software that accesses the file to respect the restrictions that have been set.

TIP: These restrictions are not file system permissions (for example, making a file read-only). They are restrictions applied by the software package that created the file.

File Content Extraction can report whether a document is protected by write restrictions, for the following file formats. A write restriction is defined as any restriction, enforced by a password, that prevents a user from editing the document content.

- Adobe Portable Document Format (.PDF)
- Microsoft Word (.DOCX)
- Microsoft Excel (.XLSX)
- Microsoft PowerPoint (.PPTX)

To determine whether a document is protected by restrictions

- In the Java API, use the method `getRestrictions` on the `filter` object. For example:

      Restrictions restrictions = filter.getRestrictions("document.docx");

Copyright 1997-2026 Open Text
Version 26.3 | Last updated July 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.3

Topic Title: Document Restrictions