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: PDF1.7 s14.3.3, Trailer

Constant Summary

Constants included from DictionaryFields

DictionaryFields::Boolean, DictionaryFields::PDFByteString, DictionaryFields::PDFDate

Constants inherited from Object

Object::NOT_DUPLICATABLE_CLASSES

Instance Attribute Summary

Attributes inherited from Object

#data, #document, #must_be_indirect

Instance Method Summary collapse

Methods inherited from Dictionary

#[], #[]=, define_field, #delete, #each, each_field, #empty?, field, #key?, #to_hash

Methods inherited from Object

#<=>, #==, #deep_copy, deep_copy, #document?, #eql?, #gen, #gen=, #hash, #indirect?, #initialize, #inspect, #null?, #oid, #oid=, #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.



58
59
60
# File 'lib/hexapdf/type/info.rb', line 58

def must_be_indirect?
  true
end

#typeObject

Returns :XXInfo.



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

def type
  :XXInfo
end