lib/pdfkit/pdfkit.rb in pdfkit-0.2.2 vs lib/pdfkit/pdfkit.rb in pdfkit-0.2.3
- old
+ new
@@ -1,10 +1,10 @@
class PDFKit
class NoExecutableError < StandardError
def initialize
- super('Could not locate wkhtmltopdf executable')
+ super('Could not locate wkhtmltopdf-proxy executable')
end
end
attr_accessor :html, :stylesheets
attr_reader :options
@@ -21,10 +21,10 @@
:margin_bottom => '0.75in',
:margin_left => '0.75in'
}
@options = normalize_options(options.reverse_merge(default_options))
- @cmd = `which wkhtmltopdf`.chomp
+ @cmd = `which wkhtmltopdf-proxy`.chomp
raise NoExecutableError.new if @cmd.blank?
end
def command
args = [@cmd]
\ No newline at end of file