mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
Merge pull request #6271 from okriuchykhin/ok_SCI_7548
Fix missing fonts in PDF reports [SCI-7548]
This commit is contained in:
commit
912b5862d6
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue