PDF::Objects::Dictionary
Inherits PDF::Objects::Base < Reference < Object
Represents a PDF dictionary object.
A PDF dictionary is an associative table of name-value pairs. Keys must be Name objects; values can be any PDF object type.
dict = PDF::Objects::Dictionary.new
dict[PDF::Objects::Name::TYPE] = PDF::Objects::Name::PAGE
dict[PDF::Objects::Name.new("Count")] = PDF::Objects::Number.new(5)
dict.to_pdf # => "<</Type /Page /Count 5>>"
Constructors
new
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
clear
Sourceempty?
Sourcehash(hasher)
See Object#hash(hasher)
size
SourceSerializes this object to an IO.
By default, this writes the result of #to_pdf to the IO.
Subclasses may override for more efficient streaming.