Method GetOrAddStandardCryptFilter
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
asDefaultIfNewboolIf 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.