Sha256: a106c76b5dae18dcf2085d963f1794c7bd76f478a3dfacff174fd0f3bdd3c4d9

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

module Documentalist
  module WkHtmlToPdf
    include Documentalist::Dependencies

    depends_on_binaries! "wkhtmltopdf" => "install wkhtmltopdf package"

    def self.convert(file, options)
      command = "wkhtmltopdf #{options[:backend_options] and options[:backend_options].join(" ")} #{file} #{options[:to]} > #{Documentalist.config[:log_file]} 2>&1"
      Documentalist.logger.debug("Going to run WkHtmlToPdf backend with command : #{command}")
      system(command)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
documentalist-0.1.4 lib/backends/wkhtmltopdf.rb