Table of Contents

Method SetEncryption

Namespace
PdfSharp.Pdf.Security
Assembly
PdfSharp.dll

SetEncryption(DefaultEncryption)

Set the encryption according to the given DefaultEncryption. Allows setting the encryption automized using one single parameter.

[Obsolete("Use SetEncryption(PdfDefaultEncryption encryption) instead.")]
public void SetEncryption(PdfStandardSecurityHandler.DefaultEncryption encryption)

Parameters

encryption PdfStandardSecurityHandler.DefaultEncryption

SetEncryption(PdfDefaultEncryption)

Set the encryption according to the given PdfDefaultEncryption. Allows setting the encryption automized using one single parameter.

public void SetEncryption(PdfDefaultEncryption encryption)

Parameters

encryption PdfDefaultEncryption