# File lib/pdf/writer/object/annotation.rb, line 16 16: def initialize(parent, type, rect, label) 17: super(parent) 18: 19: @type = type 20: @rect = rect 21: 22: case @type 23: when :link 24: @action = PDF::Writer::Object::Action.new(parent, label) 25: when :ilink 26: @action = PDF::Writer::Object::Action.new(parent, label, type) 27: end 28: parent.current_page.add_annotation(self) 29: end