Class: HexaPDF::Type::Info

Inherits:
Dictionary show all
Defined in:
lib/hexapdf/type/info.rb

Overview

Represents the PDF’s document information dictionary.

The info dictionary is linked via the /Info entry from the Trailer and contains metadata for the document.

See: PDF2.0 s14.3.3, Trailer

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

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

Info dictionaries must always be indirect.

Returns:



64
65
66
# File 'lib/hexapdf/type/info.rb', line 64

def must_be_indirect?
  true
end