• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PdfSecurityOptions

Security (encryption + permissions) options for an exported PDF. Excel UI: PDF encryption with permissions.

Inheritance
object
PdfSecurityOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet.Export.Pdf
Assembly: DRIT.Spreadsheet.dll
Syntax
public class PdfSecurityOptions
Remarks

When set on SecurityOptions, the exported PDF is encrypted with the specified user and owner passwords and the granted permissions are enforced for users who open the document with the user password.

Constructors

PdfSecurityOptions()

Security (encryption + permissions) options for an exported PDF. Excel UI: PDF encryption with permissions.

Declaration
public PdfSecurityOptions()
Remarks

When set on SecurityOptions, the exported PDF is encrypted with the specified user and owner passwords and the granted permissions are enforced for users who open the document with the user password.

Properties

EncryptionLevel

Specifies the encryption algorithm and key size. Default: Aes256.

Declaration
public PdfEncryptionLevel EncryptionLevel { get; set; }
Property Value
Type Description
PdfEncryptionLevel
Remarks

When set on SecurityOptions, the exported PDF is encrypted with the specified user and owner passwords and the granted permissions are enforced for users who open the document with the user password.

OwnerPassword

Specifies the owner password that grants full access and overrides all permissions. Falls back to UserPassword when null.

Declaration
public string OwnerPassword { get; set; }
Property Value
Type Description
string
Remarks

When set on SecurityOptions, the exported PDF is encrypted with the specified user and owner passwords and the granted permissions are enforced for users who open the document with the user password.

Permissions

Specifies the permissions granted to users who open the document with the UserPassword.

Declaration
public PdfPermissions Permissions { get; set; }
Property Value
Type Description
PdfPermissions
Remarks

When set on SecurityOptions, the exported PDF is encrypted with the specified user and owner passwords and the granted permissions are enforced for users who open the document with the user password.

UserPassword

Specifies the user password required to open the document. When null or empty, the document can be opened without a password, but the permissions are still enforced.

Declaration
public string UserPassword { get; set; }
Property Value
Type Description
string
Remarks

When set on SecurityOptions, the exported PDF is encrypted with the specified user and owner passwords and the granted permissions are enforced for users who open the document with the user password.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX