Class: Textractor::Extractors::PDFExtractor
- Inherits:
-
Object
- Object
- Textractor::Extractors::PDFExtractor
- Defined in:
- lib/textractor/extractors/pdf_extractor.rb
Instance Method Summary collapse
Instance Method Details
#text_from_path(path) ⇒ Object
5 6 7 |
# File 'lib/textractor/extractors/pdf_extractor.rb', line 5 def text_from_path(path) `pdftotext #{Escape.shell_single_word(path)} - 2>/dev/null`.strip end |