mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Use wkhtmltopdf-binary
gem instead of bundled binary
This commit is contained in:
parent
9a8c37a49b
commit
4a6a605801
4 changed files with 3 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue