Method: PDFReader#raw_text

Defined in:
lib/pdf_reader.rb

#raw_textObject

extracts all raw text



9
10
11
12
13
14
15
16
17
18
# File 'lib/pdf_reader.rb', line 9

def raw_text
  text = ''

  objects = get_objects(get_data(@file))
  objects = decode_objects(objects)

  objects.each { |o| text += o[:data] if(o[:data] and is_text_header?(o[:header])) }

  text
end