diff --git a/Gemfile b/Gemfile index a58648a1c..a52da641d 100644 --- a/Gemfile +++ b/Gemfile @@ -79,6 +79,7 @@ gem 'e_invoice', github: 'internetee/e_invoice', branch: :master gem 'lhv', github: 'internetee/lhv', tag: 'v0.1.0' gem 'domain_name' gem 'haml' +gem 'wkhtmltopdf-binary' group :development do # deploy diff --git a/Gemfile.lock b/Gemfile.lock index cc822dab7..69d2ba476 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -417,6 +417,7 @@ GEM hashdiff (>= 0.4.0, < 2.0.0) whenever (0.9.4) chronic (>= 0.6.3) + wkhtmltopdf-binary (0.12.4) xpath (3.2.0) nokogiri (~> 1.8) @@ -480,6 +481,7 @@ DEPENDENCIES webdrivers webmock whenever (= 0.9.4) + wkhtmltopdf-binary BUNDLED WITH 1.17.3 diff --git a/config/initializers/pdfkit.rb b/config/initializers/pdfkit.rb deleted file mode 100644 index eb0828729..000000000 --- a/config/initializers/pdfkit.rb +++ /dev/null @@ -1,13 +0,0 @@ -PDFKit.configure do |config| - installed = %x(which wkhtmltopdf).chomp - if installed == "" then - installed = "#{Rails.root}/vendor/bin/wkhtmltopdf" - end - config.wkhtmltopdf = installed - config.default_options = { - page_size: 'A4', - quiet: true, - encoding: 'utf-8', - # :print_media_type => true - } -end diff --git a/vendor/bin/wkhtmltopdf b/vendor/bin/wkhtmltopdf deleted file mode 100755 index 018966446..000000000 Binary files a/vendor/bin/wkhtmltopdf and /dev/null differ