Class: DocRipper::Formats::PdfRipper

Inherits:
Ripper::Base show all
Defined in:
lib/doc_ripper/formats/pdf_ripper.rb

Instance Attribute Summary

Attributes inherited from Ripper::Base

#text

Instance Method Summary collapse

Methods inherited from Ripper::Base

#initialize, #read_type

Constructor Details

This class inherits a constructor from DocRipper::Ripper::Base

Instance Method Details

#ripObject



5
6
7
# File 'lib/doc_ripper/formats/pdf_ripper.rb', line 5

def rip
  @text ||= system(%Q[ pdftotext #{to_shell(@file_path)} > #{to_shell(@text_file_path)} ])
end