Skip to content

Commit

Permalink
use wkhtmltopdf-binary gem instead of vendor'd binary. fixes #61
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed May 23, 2013
1 parent 3dc9799 commit 66ddedc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -4,3 +4,4 @@ gem 'pdfkit'
gem 'rake'
gem 'redcarpet', '~> 2.0'
gem 'sinatra'
gem 'wkhtmltopdf-binary', :require => false
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -12,6 +12,7 @@ GEM
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
tilt (1.3.3)
wkhtmltopdf-binary (0.9.9.1)

PLATFORMS
ruby
Expand All @@ -21,3 +22,4 @@ DEPENDENCIES
rake
redcarpet (~> 2.0)
sinatra
wkhtmltopdf-binary
4 changes: 0 additions & 4 deletions book.rb
Expand Up @@ -12,10 +12,6 @@ def build(pdf=false)
doc << toc
doc << content
if pdf
PDFKit.configure { |config|
config.wkhtmltopdf = File.join(File.dirname(__FILE__),
'vendor', 'wkhtmltopdf')
}
kit = PDFKit.new(doc, :page_size=>'Letter')
kit.stylesheets << "#{ASSETS_DIR}/print.css"
pdf = kit.to_pdf
Expand Down
Binary file removed vendor/wkhtmltopdf
Binary file not shown.

0 comments on commit 66ddedc

Please sign in to comment.