mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
13 lines
321 B
Ruby
13 lines
321 B
Ruby
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
|