wicked_pdf.rb 817 B

1234567891011121314151617181920212223
  1. # WickedPDF Global Configuration
  2. #
  3. # Use this to set up shared configuration options for your entire application.
  4. # Any of the configuration options shown here can also be applied to single
  5. # models by passing arguments to the `render :pdf` call.
  6. #
  7. # To learn more, check out the README:
  8. #
  9. # https://github.com/mileszs/wicked_pdf/blob/master/README.md
  10. WickedPdf.config = {
  11. # Path to the wkhtmltopdf executable: This usually isn't needed if using
  12. # one of the wkhtmltopdf-binary family of gems.
  13. # exe_path: '/usr/local/bin/wkhtmltopdf',
  14. # or
  15. # exe_path: Gem.bin_path('wkhtmltopdf-binary', 'wkhtmltopdf')
  16. # Layout file to be used for all PDFs
  17. # (but can be overridden in `render :pdf` calls)
  18. layout: 'receipt.html.erb',
  19. margin: { top: 1, bottom: 1, left: 1, right: 1 },
  20. orientation: 'Portrait'
  21. }