Click or drag to resize
PdfSaveOptionsPermissions Property
Gets or sets the operations that are allowed to a user on an encrypted PDF document.

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1213
Syntax
public PdfPermissions Permissions { get; set; }

Property Value

Type: PdfPermissions
The operations that are allowed to a user on an encrypted PDF document.
Remarks

Generated PDF document will be encrypted if any of the following conditions are satisfied:

  • Permissions is different than All.
  • PermissionsPassword is not or Empty.
  • DocumentOpenPassword is not or Empty.

Both PermissionsPassword and DocumentOpenPassword are optional but with the following consequences:

DocumentOpenPassword and PermissionsPassword cannot be equal, otherwise exception is thrown.

For more information, see PDF Encryption sample.

See Also