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.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1045 (21.3.35.1045)
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 example.

See Also