Sha256: 4f8084b568859683ecf4bbff43dd61e1e5ac754098d4b80748579c2b0081c2a2
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 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 Documentalist::Error.new("PdfTools failed") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
documentalist-0.1.4 | lib/backends/pdf_tools.rb |
documentalist-0.1.3 | lib/backends/pdf_tools.rb |