PDF::Objects::Indirect
Inherits PDF::Objects::Base < Reference < Object
Represents a PDF indirect object.
An indirect object is a labeled object that can be referenced from elsewhere in the PDF. It consists of:
- Object number (positive integer)
- Generation number (non-negative integer)
- The object value
dict = PDF::Objects::Dictionary.new
dict["Type"] = PDF::Objects::Name::PAGE
obj = PDF::Objects::Indirect.new(5, 0, dict)
obj.to_pdf
# => "5 0 obj\n<</Type /Page>>\nendobj"
obj.reference.to_pdf
# => "5 0 R"
Constructors
Instance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
generation
Sourcehash(hasher)
See Object#hash(hasher)
object_number
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.
value
Source