Object
Class representing a Reference Object. Reference are like symbolic links pointing to a particular object into the file.
# File lib/origami/reference.rb, line 90 def <=>(ref) #:nodoc self.to_a <=> ref.to_a end
# File lib/origami/reference.rb, line 82 def eql?(ref) #:nodoc ref.is_a?(Reference) and ref.refno == @refno and ref.refgen == @refgen end
# File lib/origami/reference.rb, line 66 def solve pdfdoc = self.pdf if pdfdoc.nil? raise InvalidReferenceError, "Not attached to any PDF" end target = pdfdoc.get_object(self) if target.nil? and not Origami::OPTIONS[:ignore_bad_references] raise InvalidReferenceError, "Cannot resolve reference : #{self.to_s}" end target or Null.new end
Returns a Ruby array with the object number and the generation this reference is pointing to.
# File lib/origami/reference.rb, line 97 def to_a [@refno, @refgen] end
Generated with the Darkfish Rdoc Generator 2.