class Rabbit::Element::PopplerPage
Public Class Methods
Source
# File lib/rabbit/element/poppler-page.rb, line 26 def initialize(page) @page = page super() end
Calls superclass method
Rabbit::Element::Base::new
Public Instance Methods
Source
# File lib/rabbit/element/poppler-page.rb, line 46 def clear_theme super @width, @height = @page.size end
Calls superclass method
Rabbit::Element::BlockHorizontalCentering#clear_theme
Source
# File lib/rabbit/element/poppler-page.rb, line 31 def draw_element(canvas, x, y, w, h, simulation) unless simulation canvas.draw_poppler_page(@page, x, y, :width => w, :height => h) end [x, y + height, w, h - height] end
Source
# File lib/rabbit/element/poppler-page.rb, line 38 def title text.split(/\r?\n/, 2).first end