Sha256: 760bde223ef4000c2c936df91a0c121c12a252cb976be26e3597dae37c90d4dc
Contents?: true
Size: 561 Bytes
Versions: 5
Compression:
Stored size: 561 Bytes
Contents
#!/usr/bin/env ruby executable = `which wkhtmltopdf`.chomp if executable.empty? binary = case RUBY_PLATFORM when /linux/ 'wkhtmltopdf-linux-i386-0-9-9' when /darwin/ 'wkhtmltopdf-osx-i386-0-9-9' else raise "No bundled binaries found for your system. Please install wkhtmltopdf." end executable = File.join(File.dirname(__FILE__), binary) end arguments = $*.map { |arg| arg.include?(' ') ? %Q("#{arg}") : arg } system(executable + " " + arguments.join(" "))
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pdfkit-0.3.3 | bin/wkhtmltopdf-proxy |
pdfkit-0.3.2 | bin/wkhtmltopdf-proxy |
pdfkit-0.3.1 | bin/wkhtmltopdf-proxy |
pdfkit-0.3.0 | bin/wkhtmltopdf-proxy |
pdfkit-0.2.3 | bin/wkhtmltopdf-proxy |