Skip to main content
Skip table of contents

PdfEncryptor

PdfEncryptor Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.PdfEncryptor[[PdfEncryptor]]
  end

Members

Methods

Public Static methods
ReturnsName
voidEncrypt(...)
stringGetPermissionsVerbose(int permissions)
boolIsAssemblyAllowed(int permissions)
boolIsCopyAllowed(int permissions)
boolIsDegradedPrintingAllowed(int permissions)
boolIsFillInAllowed(int permissions)
boolIsModifyAnnotationsAllowed(int permissions)
boolIsModifyContentsAllowed(int permissions)
boolIsPrintingAllowed(int permissions)
boolIsScreenReadersAllowed(int permissions)

Details

Methods

Encrypt [1/6]

Source code

public static void Encrypt(PdfReader reader, Stream os, byte[] userPassword, byte[] ownerPassword, int permissions, bool strength128Bits)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
byte``[]userPassword
byte``[]ownerPassword
intpermissions
boolstrength128Bits
Encrypt [2/6]

Source code

public static void Encrypt(PdfReader reader, Stream os, byte[] userPassword, byte[] ownerPassword, int permissions, bool strength128Bits, Dictionary<string, string> newInfo)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
byte``[]userPassword
byte``[]ownerPassword
intpermissions
boolstrength128Bits
Dictionary<string, string>newInfo
Encrypt [3/6]

Source code

public static void Encrypt(PdfReader reader, Stream os, bool strength, string userPassword, string ownerPassword, int permissions)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
boolstrength
stringuserPassword
stringownerPassword
intpermissions
Encrypt [4/6]

Source code

public static void Encrypt(PdfReader reader, Stream os, bool strength, string userPassword, string ownerPassword, int permissions, Dictionary<string, string> newInfo)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
boolstrength
stringuserPassword
stringownerPassword
intpermissions
Dictionary<string, string>newInfo
Encrypt [5/6]

Source code

public static void Encrypt(PdfReader reader, Stream os, int type, string userPassword, string ownerPassword, int permissions, Dictionary<string, string> newInfo)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
inttype
stringuserPassword
stringownerPassword
intpermissions
Dictionary<string, string>newInfo
Encrypt [6/6]

Source code

public static void Encrypt(PdfReader reader, Stream os, int type, string userPassword, string ownerPassword, int permissions)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
inttype
stringuserPassword
stringownerPassword
intpermissions
GetPermissionsVerbose

Source code

public static string GetPermissionsVerbose(int permissions)
Arguments
TypeNameDescription
intpermissions
IsPrintingAllowed

Source code

public static bool IsPrintingAllowed(int permissions)
Arguments
TypeNameDescription
intpermissions
IsModifyContentsAllowed

Source code

public static bool IsModifyContentsAllowed(int permissions)
Arguments
TypeNameDescription
intpermissions
IsCopyAllowed

Source code

public static bool IsCopyAllowed(int permissions)
Arguments
TypeNameDescription
intpermissions
IsModifyAnnotationsAllowed

Source code

public static bool IsModifyAnnotationsAllowed(int permissions)
Arguments
TypeNameDescription
intpermissions
IsFillInAllowed

Source code

public static bool IsFillInAllowed(int permissions)
Arguments
TypeNameDescription
intpermissions
IsScreenReadersAllowed

Source code

public static bool IsScreenReadersAllowed(int permissions)
Arguments
TypeNameDescription
intpermissions
IsAssemblyAllowed

Source code

public static bool IsAssemblyAllowed(int permissions)
Arguments
TypeNameDescription
intpermissions
IsDegradedPrintingAllowed

Source code

public static bool IsDegradedPrintingAllowed(int permissions)
Arguments
TypeNameDescription
intpermissions

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.