mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Basic pdf generating
This commit is contained in:
parent
e987e201ad
commit
727d1226ad
15 changed files with 298 additions and 3 deletions
7
config/initializers/pdfkit.rb
Normal file
7
config/initializers/pdfkit.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
PDFKit.configure do |config|
|
||||
config.wkhtmltopdf = "#{Rails.root}/vendor/bin/wkhtmltopdf"
|
||||
config.default_options = {
|
||||
page_size: 'A4'
|
||||
# :print_media_type => true
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue