Module: Documentalist::PdfTools
- Includes:
- Dependencies
- Defined in:
- lib/backends/pdf_tools.rb
Class Method Summary collapse
Methods included from Dependencies
Class Method Details
.convert(origin, options) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/backends/pdf_tools.rb', line 7 def self.convert(origin, ) if system("pdftotext #{origin} #{[:destination]} > /dev/null 2>&1") [:destination] else raise Documentalist::Error.new("PdfTools failed") end end |