Fix missing fonts in PDF reports [SCI-7548]

This commit is contained in:
Oleksii Kriuchykhin 2023-09-22 10:11:18 +02:00
parent 46b4bfd4d7
commit f6dbd45746
2 changed files with 3 additions and 2 deletions

View file

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

View file

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