Merge pull request #1367 from internetee/tune-pdfkit-gem

Tune `pdfkit` gem
This commit is contained in:
Timo Võhmar 2019-10-21 15:22:45 +03:00 committed by GitHub
commit b80d43fcae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 13 deletions

View file

@ -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