iText 8.0.2 API
iText.Kernel.Pdf.EncryptionConstants Class Reference

Encryption constants for WriterProperties.SetStandardEncryption(byte[], byte[], int, int). More...

Static Public Attributes

const int  STANDARD_ENCRYPTION_40 = 0
  Type of encryption. More...
 
const int  STANDARD_ENCRYPTION_128 = 1
  Type of encryption. More...
 
const int  ENCRYPTION_AES_128 = 2
  Type of encryption. More...
 
const int  ENCRYPTION_AES_256 = 3
  Type of encryption. More...
 
const int  DO_NOT_ENCRYPT_METADATA = 8
  Add this to the mode to keep the metadata in clear text. More...
 
const int  EMBEDDED_FILES_ONLY = 24
  Add this to the mode to keep encrypt only the embedded files. More...
 
const int  ALLOW_PRINTING = 4 + 2048
  The operation permitted when the document is opened with the user password. More...
 
const int  ALLOW_MODIFY_CONTENTS = 8
  The operation permitted when the document is opened with the user password. More...
 
const int  ALLOW_COPY = 16
  The operation permitted when the document is opened with the user password. More...
 
const int  ALLOW_MODIFY_ANNOTATIONS = 32
  The operation permitted when the document is opened with the user password. More...
 
const int  ALLOW_FILL_IN = 256
  The operation permitted when the document is opened with the user password. More...
 
const int  ALLOW_SCREENREADERS = 512
  The operation permitted when the document is opened with the user password. More...
 
const int  ALLOW_ASSEMBLY = 1024
  The operation permitted when the document is opened with the user password. More...
 
const int  ALLOW_DEGRADED_PRINTING = 4
  The operation permitted when the document is opened with the user password. More...
 

Detailed Description

Member Data Documentation

◆ ALLOW_ASSEMBLY

const int iText.Kernel.Pdf.EncryptionConstants.ALLOW_ASSEMBLY = 1024
static

The operation permitted when the document is opened with the user password.

◆ ALLOW_COPY

const int iText.Kernel.Pdf.EncryptionConstants.ALLOW_COPY = 16
static

The operation permitted when the document is opened with the user password.

◆ ALLOW_DEGRADED_PRINTING

const int iText.Kernel.Pdf.EncryptionConstants.ALLOW_DEGRADED_PRINTING = 4
static

The operation permitted when the document is opened with the user password.

◆ ALLOW_FILL_IN

const int iText.Kernel.Pdf.EncryptionConstants.ALLOW_FILL_IN = 256
static

The operation permitted when the document is opened with the user password.

◆ ALLOW_MODIFY_ANNOTATIONS

const int iText.Kernel.Pdf.EncryptionConstants.ALLOW_MODIFY_ANNOTATIONS = 32
static

The operation permitted when the document is opened with the user password.

◆ ALLOW_MODIFY_CONTENTS

const int iText.Kernel.Pdf.EncryptionConstants.ALLOW_MODIFY_CONTENTS = 8
static

The operation permitted when the document is opened with the user password.

◆ ALLOW_PRINTING

const int iText.Kernel.Pdf.EncryptionConstants.ALLOW_PRINTING = 4 + 2048
static

The operation permitted when the document is opened with the user password.

◆ ALLOW_SCREENREADERS

const int iText.Kernel.Pdf.EncryptionConstants.ALLOW_SCREENREADERS = 512
static

The operation permitted when the document is opened with the user password.

◆ DO_NOT_ENCRYPT_METADATA

const int iText.Kernel.Pdf.EncryptionConstants.DO_NOT_ENCRYPT_METADATA = 8
static

Add this to the mode to keep the metadata in clear text.

◆ EMBEDDED_FILES_ONLY

const int iText.Kernel.Pdf.EncryptionConstants.EMBEDDED_FILES_ONLY = 24
static

Add this to the mode to keep encrypt only the embedded files.

◆ ENCRYPTION_AES_128

const int iText.Kernel.Pdf.EncryptionConstants.ENCRYPTION_AES_128 = 2
static

Type of encryption.

Type of encryption. AES encryption algorithm will be used with the key length of 128 bits.

◆ ENCRYPTION_AES_256

const int iText.Kernel.Pdf.EncryptionConstants.ENCRYPTION_AES_256 = 3
static

Type of encryption.

Type of encryption. AES encryption algorithm will be used with the key length of 256 bits.

◆ STANDARD_ENCRYPTION_128

const int iText.Kernel.Pdf.EncryptionConstants.STANDARD_ENCRYPTION_128 = 1
static

Type of encryption.

Type of encryption. RC4 encryption algorithm will be used with the key length of 128 bits.

◆ STANDARD_ENCRYPTION_40

const int iText.Kernel.Pdf.EncryptionConstants.STANDARD_ENCRYPTION_40 = 0
static

Type of encryption.

Type of encryption. RC4 encryption algorithm will be used with the key length of 40 bits.