Use wkhtmltopdf-binary gem instead of bundled binary

This commit is contained in:
Artur Beljajev 2019-10-16 13:11:07 +03:00
parent 9a8c37a49b
commit 4a6a605801
4 changed files with 3 additions and 5 deletions

View file

@ -1,9 +1,4 @@
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,