Merge pull request #6271 from okriuchykhin/ok_SCI_7548

Fix missing fonts in PDF reports [SCI-7548]
This commit is contained in:
Alex Kriuchykhin 2023-09-22 10:16:26 +02:00 committed by GitHub
commit 912b5862d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -413,7 +413,7 @@ GEM
mini_magick (4.12.0) mini_magick (4.12.0)
mini_mime (1.1.2) mini_mime (1.1.2)
mini_portile2 (2.8.4) mini_portile2 (2.8.4)
minitest (5.18.1) minitest (5.20.0)
momentjs-rails (2.17.1) momentjs-rails (2.17.1)
railties (>= 3.1) railties (>= 3.1)
msgpack (1.7.1) msgpack (1.7.1)
@ -693,7 +693,7 @@ GEM
websocket-extensions (>= 0.1.0) websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5) websocket-extensions (0.1.5)
whacamole (1.2.0) whacamole (1.2.0)
wicked_pdf (2.6.3) wicked_pdf (2.7.0)
activesupport activesupport
xpath (3.2.0) xpath (3.2.0)
nokogiri (~> 1.8) nokogiri (~> 1.8)

View file

@ -5,4 +5,5 @@ WickedPdf.config ||= {}
ENV['PATH'].split(':').each do |path| ENV['PATH'].split(':').each do |path|
exe_path = File.join(path, 'wkhtmltopdf') exe_path = File.join(path, 'wkhtmltopdf')
WickedPdf.config[:exe_path] = File.join(path, 'wkhtmltopdf') if File.file?(exe_path) WickedPdf.config[:exe_path] = File.join(path, 'wkhtmltopdf') if File.file?(exe_path)
WickedPdf.config[:allow] = Rails.public_path
end end