class Rabbit::Element::PopplerTitleSlide

Public Class Methods

new(page, document) click to toggle source
Calls superclass method
# 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

Public Instance Methods

size_ratio() click to toggle 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
theme() click to toggle source
Calls superclass method
# File lib/rabbit/element/poppler-title-slide.rb, line 19
def theme
  super || "pdf"
end
title() click to toggle source
Calls superclass method
# File lib/rabbit/element/poppler-title-slide.rb, line 15
def title
  (@document.title || super).chomp
end