Table of Contents

Method SetEncryptionToRC4ForV4

Namespace
PdfSharp.Pdf.Security
Assembly
PdfSharp.dll

SetEncryptionToRC4ForV4(int)

Encrypt with RC4 and the given file encryption key length, using the algorithms of encryption V4 (PDF 1.5). For encryption V4 the file encryption key length shall be 128 bits.

public void SetEncryptionToRC4ForV4(int length = 128)

Parameters

length int

The file encryption key length - a multiple of 8 from 40 to 256 bit.