Sha256: a08a7740eacda414156c1dfc01359ed0eb637d16f9b79ceae1b263218b6af9e6

Contents?: true

Size: 420 Bytes

Versions: 31

Compression:

Stored size: 420 Bytes

Contents

require 'rabbit/element/title-slide'
require 'rabbit/element/poppler-page'

module Rabbit
  module Element
    class PopplerTitleSlide < TitleSlide

      def initialize(page, document)
        @document = document
        @page = PopplerPage.new(page)
        super(@page)
      end

      def title
        (@document.title || super).chomp
      end

      def theme
        super || "pdf"
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rabbit-2.1.3 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.1.2 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.1.1 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.1.0 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.9 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.8 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.7 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.6 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.5 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.4 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.3 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.2 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.1 lib/rabbit/element/poppler-title-slide.rb
rabbit-2.0.0 lib/rabbit/element/poppler-title-slide.rb
rabbit-1.0.9 lib/rabbit/element/poppler-title-slide.rb
rabbit-1.0.8 lib/rabbit/element/poppler-title-slide.rb
rabbit-1.0.7 lib/rabbit/element/poppler-title-slide.rb
rabbit-1.0.6 lib/rabbit/element/poppler-title-slide.rb
rabbit-1.0.5 lib/rabbit/element/poppler-title-slide.rb
rabbit-1.0.4 lib/rabbit/element/poppler-title-slide.rb