Sha256: 113406d402be59d5a905cebeb345e710899bc1d7f79c1c683822e1a8e1b04451
Contents?: true
Size: 258 Bytes
Versions: 5
Compression:
Stored size: 258 Bytes
Contents
class String def strip_space gsub(/\s/, '') end end def pdf_to_text(pdf_stream) file = Tempfile.new('pdf', :encoding => 'ascii-8bit') file.write pdf_stream file.close pdf = PDF::Toolkit.open(file) pdf.to_text.read ensure file.unlink end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
medivo-0.1.5 | spec/support/helper.rb |
medivo-0.1.4 | spec/support/helper.rb |
medivo-0.1.3 | spec/support/helper.rb |
medivo-0.1.2 | spec/support/helper.rb |
medivo-0.1.1 | spec/support/helper.rb |