Sha256: b866687a36958983c4fdd4c6ec17113b362d40d4380711444f77b14c2edcf2de

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

module Documentalist
  module PdfTools
    include Documentalist::Dependencies

    depends_on_binaries! "pdftotext" => "install pdftools package"

    def self.convert(origin, options)
      if system("pdftotext #{origin} #{options[:destination]} > /dev/null 2>&1")
        options[:destination]
      else
        raise "PdfTools failed"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
documentalist-0.1.2 lib/backends/pdf_tools.rb