Limitations
Read only.
PDF only.
Specifies how a document can be accessed after it has been loaded. If a valid master password has been specified with the Master
Introduced: X14.
public DocumentAccessPermissions DocumentAccessPermissions { get; }
Public Property DocumentAccessPermissions() As DocumentAccessPermissions
Member | Description |
---|---|
None | Allows none of the possible permissions. |
Allow |
Allows all of the possible permissions. |
Allow |
Allows authoring comments and fill in interactive form fields (including signature fields). |
Allow |
Fill-in existing interactive form fields (including signature fields) is allowed. |
Allow |
Allows content access for the visually impaired only. |
Allow |
Allows to assemble the document (insert, rotate or delete pages and create bookmarks or thumbnails). |
Allow |
Copying or otherwise extracting text and/or graphics is allowed. |
Allow |
Allows modifying the document's contents. |
Allow |
Printing the document is fully allowed. |
Allow |
Printing the document is allowed (low-level). |
This example describes a simple way of using the 'TXText
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
Read only.
PDF only.