Class: PDF::Reader::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/reader/html.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



9
10
11
12
13
# File 'lib/pdf/reader/html.rb', line 9

def to_html
  self.text.split("\n").map do |paragraph|
    HtmlWriter.new.write_inline { |html| html.p paragraph }
  end
end