Module: QDA::Filters::PDFReader

Included in:
PDFFileDocumentFilter
Defined in:
lib/weft/filters/input.rb

Instance Method Summary collapse

Instance Method Details

#read(file) ⇒ Object



79
80
81
82
83
84
85
86
87
# File 'lib/weft/filters/input.rb', line 79

def read(file)
  file = "\"#{file}\"" if file =~ /\s/
  cmd = "#{PDF_TO_TEXT_EXEC} -nopgbrk #{file} -"
  if defined? Win32Process
    do_read_win32(cmd)
  else
    do_read_unixy(cmd)
  end
end