Sha256: 03cb18234f08231e45e16c7db5538a8d4a44966b916643c84c77c4d4e5187b66
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
if RUBY_PLATFORM == 'x86_64-linux' wkhtmltopdf_executable = 'wkhtmltopdf-amd64' elsif RUBY_PLATFORM =~ /linux/ wkhtmltopdf_executable = 'wkhtmltopdf-i386' elsif RUBY_PLATFORM =~ /darwin/ wkhtmltopdf_executable = 'wkhtmltopdf-osx' else raise "Unsupported. Must be running linux or intel-based Mac OS." end wkhtmltopdf_path = File.expand_path '../../bin/' + wkhtmltopdf_executable, __FILE__ begin require 'pdfkit' PDFKit.configure do |config| config.wkhtmltopdf = wkhtmltopdf_path end rescue LoadError end begin require 'wicked_pdf' WickedPdf.config[:exe_path] = wkhtmltopdf_path rescue LoadError end begin require 'wisepdf' Wisepdf::Configuration.configure do |config| config.wkhtmltopdf = wkhtmltopdf_path end rescue LoadError end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wkhtmltopdf-hooks-0.0.2 | lib/wkhtmltopdf-hooks.rb |
wkhtmltopdf-hooks-0.0.1 | lib/wkhtmltopdf-hooks.rb |