class Rabbit::Element::PopplerTitleSlide
Public Class Methods
Source
# File lib/rabbit/element/poppler-title-slide.rb, line 8 def initialize(page, document) @document = document @raw_page = page @page = PopplerPage.new(page) super(@page) end
Calls superclass method
Public Instance Methods
Source
# File lib/rabbit/element/poppler-title-slide.rb, line 23 def size_ratio w, h = @raw_page.size w.to_f / h.to_f end
Source
# File lib/rabbit/element/poppler-title-slide.rb, line 19 def theme super || "pdf" end
Calls superclass method
Source
# File lib/rabbit/element/poppler-title-slide.rb, line 15 def title (@document.title || super).chomp end
Calls superclass method