Class: HexaPDF::Encryption::EncryptionDictionary
- Inherits:
-
Dictionary
- Object
- Object
- Dictionary
- HexaPDF::Encryption::EncryptionDictionary
- Defined in:
- lib/hexapdf/encryption/security_handler.rb
Overview
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
Direct Known Subclasses
Constant Summary
Constants included from DictionaryFields
DictionaryFields::Boolean, DictionaryFields::PDFByteString, DictionaryFields::PDFDate
Instance Attribute Summary
Attributes inherited from Object
#data, #document, #must_be_indirect
Instance Method Summary collapse
-
#must_be_indirect? ⇒ Boolean
Returns
true
because some PDF readers stumble when encountering a non-indirect encryption dictionary.
Methods inherited from Dictionary
#[], #[]=, define_field, define_type, #delete, #each, each_field, #empty?, field, #key?, #to_hash, type, #type
Methods inherited from Object
#<=>, #==, #cache, #cached?, #clear_cache, deep_copy, #deep_copy, #document?, #eql?, field, #gen, #gen=, #hash, #indirect?, #initialize, #inspect, make_direct, #null?, #oid, #oid=, #type, #validate, #value, #value=
Constructor Details
This class inherits a constructor from HexaPDF::Object
Instance Method Details
#must_be_indirect? ⇒ Boolean
Returns true
because some PDF readers stumble when encountering a non-indirect encryption dictionary.
64 65 66 |
# File 'lib/hexapdf/encryption/security_handler.rb', line 64 def must_be_indirect? true end |