Specifies how a document can be accessed after it has been loaded. If a valid master password has been specified with the MasterPassword property, the document can be accessed without any restrictions. The property's value can be a bitwise combination of more than one of the described values.

Introduced: X14.

Syntax

public DocumentAccessPermissions DocumentAccessPermissions { get; }

Members

Member Description
None Allows none of the possible permissions.
AllowAll Allows all of the possible permissions.
AllowAuthoring Allows authoring comments and fill in interactive form fields (including signature fields).
AllowAuthoringFields Fill-in existing interactive form fields (including signature fields) is allowed.
AllowContentAccessibility Allows content access for the visually impaired only.
AllowDocumentAssembly Allows to assemble the document (insert, rotate or delete pages and create bookmarks or thumbnails).
AllowExtractContents Copying or otherwise extracting text and/or graphics is allowed.
AllowGeneralEditing Allows modifying the document's contents.
AllowHighLevelPrinting Printing the document is fully allowed.
AllowLowLevelPrinting Printing the document is allowed (low-level).

Examples

This example describes a simple way of using the 'TXTextControl.LoadSettings.DocumentAccessPermissions' property. Here, it is stored in a variable of the type 'TXTextControl.DocumentAccessPermissions'.

TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
TXTextControl.DocumentAccessPermissions MyPermissions = ls.DocumentAccessPermissions;

if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowAll) {
    System.Windows.Forms.MessageBox.Show("You have all of the possible permissions in this document!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.None) {
    System.Windows.Forms.MessageBox.Show("You have none of the possible permissions in this document!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowAuthoring) {
    System.Windows.Forms.MessageBox.Show("You are allowed to author comments and fill in interactive form fields (including signature fields)!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowAuthoringFields) {
    System.Windows.Forms.MessageBox.Show("You are allowed to fill-in existing interactive form fields (including signature fields)!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowContentAccessibility) {
    System.Windows.Forms.MessageBox.Show("You are allowed to accesss content for the visually impaired only!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowDocumentAssembly) {
    System.Windows.Forms.MessageBox.Show("You are allowed to assemble the document (insert, rotate or delete pages and create bookmarks or thumbnails)!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowExtractContents) {
    System.Windows.Forms.MessageBox.Show("You are allowed to copy or otherwise extracting text and/or graphics!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowGeneralEditing) {
    System.Windows.Forms.MessageBox.Show("You are allowed to modify the document's contents.!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowHighLevelPrinting) {
    System.Windows.Forms.MessageBox.Show("Printing the document is fully allowed!");
}
else if (MyPermissions == TXTextControl.DocumentAccessPermissions.AllowLowLevelPrinting) {
    System.Windows.Forms.MessageBox.Show("Printing the document is allowed (low-level)!");
}

Limitations

Read only.

PDF only.