class HexaPDF::Encryption::EncryptionDictionary

Parent

Base class for all encryption dictionaries.

Contains entries common to all encryption dictionaries. If a specific security handler needs further fields it should derive a new subclass and add the new fields there.

See: PDF2.0 s7.6.2

Field Definitions

NameType/Allowed ValuesRequiredDefault Value
FilterSymboltruenil
SubFilterSymbolfalsenil
VInteger
One of: 0, 1, 2, 3, 4, 5
truenil
LenthIntegerfalse40
CFHexaPDF::Dictionary or Hashfalsenil
StmFSymbolfalse:Identity
StrFSymbolfalse:Identity
EFFSymbolfalsenil

Public Instance Methods

must_be_indirect?()

Returns true because some PDF readers stumble when encountering a non-indirect encryption dictionary.