Table of Contents

Method GetOrAddStandardCryptFilter

Namespace
PdfSharp.Pdf.Security
Assembly
PdfSharp.dll

GetOrAddStandardCryptFilter(bool)

Returns the StdCF as it shall be used in encryption version 4 and 5. If not yet existing, it is created regarding the asDefaultIfNew parameter, which will set StdCF as default for streams, strings, and embedded file streams.

public PdfCryptFilter GetOrAddStandardCryptFilter(bool asDefaultIfNew = true)

Parameters

asDefaultIfNew bool

If true and the crypt filter is newly created, the crypt filter is referred to as default for any strings, and streams in StmF, StrF and EFF keys.

Returns

PdfCryptFilter