Table of Contents

Class PdfCryptFilters

Namespace
PdfSharp.Pdf.Security
Assembly
PdfSharp.dll

Represents the CF dictionary of a security handler.

public class PdfCryptFilters : PdfDictionary, ICloneable, IEnumerable<KeyValuePair<string, PdfItem?>>, IEnumerable
Inheritance
PdfCryptFilters
Implements
Inherited Members

Constructors

PdfCryptFilters()

Initializes a new instance of the PdfCryptFilters class.

public PdfCryptFilters()

Methods

AddCryptFilter(string, PdfCryptFilter)

Adds a crypt filter with the given name.

public void AddCryptFilter(string name, PdfCryptFilter cryptFilter)

Parameters

name string
cryptFilter PdfCryptFilter

GetCryptFilter(string)

Gets the crypt filter with the given name.

public PdfCryptFilter? GetCryptFilter(string name)

Parameters

name string

Returns

PdfCryptFilter

GetCryptFilters()

Enumerates all crypt filters.

public IEnumerable<(string Name, PdfCryptFilter CryptFilter)> GetCryptFilters()

Returns

IEnumerable<(string Name, PdfCryptFilter CryptFilter)>

GetCryptFiltersAsDictionary()

Returns a dictionary containing all crypt filters.

public Dictionary<string, PdfCryptFilter> GetCryptFiltersAsDictionary()

Returns

Dictionary<string, PdfCryptFilter>

IsEmpty()

Determines whether this instance is empty.

public bool IsEmpty()

Returns

bool

RemoveCryptFilter(string)

Removes the crypt filter with the given name.

public bool RemoveCryptFilter(string name)

Parameters

name string

Returns

bool