Specifies how a document can be accessed after it has been loaded. If a valid master password has been specified with the LoadSettings.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; }
Public Property DocumentAccessPermissions() As DocumentAccessPermissions

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)!");
}
Dim ls As TXTextControl.LoadSettings = New TXTextControl.LoadSettings()
Dim MyPermissions As TXTextControl.DocumentAccessPermissions = ls.DocumentAccessPermissions

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

Limitations

Read only.

PDF only.