This class provides information about the encryption settings of the specified PDF file, such as user and owner passwords, encryption algorithm etc.

Constructors

Properties

_algorithm?: string
_bitLength?: number
_encryptAttachmentsOnly?: boolean
_encryptMetadata?: boolean
_hasOwnerPassword?: boolean
_hasUserPassword?: boolean

Accessors

  • get algorithm(): undefined | string
  • Returns a string specifying the encryption algorithm used to encrypt the specified PDF file - e.g. "AES" etc.

    Returns undefined | string

    A String denoting the name of the encryption algorithm used to encrypt the specified PDF file.

  • get bitLength(): undefined | number
  • Returns the number of bits in the key used by a cryptographic algorithm to encrypt the specified PDF file.

    Returns undefined | number

    An Integer denoting the number of bits in the key used by a cryptographic algorithm.

  • get isMetadataEncrypted(): undefined | boolean
  • Returns a boolean specifying whether the metadata of the specified PDF file is encrypted or not.

    Returns undefined | boolean

    true if the metadata of the specified PDF file is encrypted. False otherwise.

  • get isOwnerPasswordSet(): undefined | boolean
  • Returns a boolean specifying whether the owner password is set for the specified PDF file.

    Returns undefined | boolean

    true if the owner password is set for the specified PDF file. False otherwise.

  • get isUserPasswordSet(): undefined | boolean
  • Returns a boolean specifying whether the user password is set for the specified PDF file.

    Returns undefined | boolean

    true if the user password is set for the specified PDF file. False otherwise.

  • get onlyAttachmentsEncrypted(): undefined | boolean
  • Returns a boolean specifying whether only the file attachments in the specified PDF file are encrypted.

    Returns undefined | boolean

    true if only the file attachments in the specified PDF file are encrypted. False otherwise.

Generated using TypeDoc