class Html2Pdf::Configuration
Attributes
options[RW]
Public Class Methods
new()
click to toggle source
rubocop:disable MethodLength
# File lib/html2pdf/configuration.rb, line 5 def initialize # see: http://wkhtmltopdf.org/usage/wkhtmltopdf.txt @options = { wkhtmltopdf: (defined?(Bundler::GemfileError) ? `bundle exec which wkhtmltopdf` : `which wkhtmltopdf`).chomp, page_settings: [ "--margin-top 4", "--margin-bottom 4", "--margin-left 4", "--margin-right 4", '--header-center "[webpage] :: [page]/[topage]"', "--header-spacing 1", "--header-font-size 8", "--header-line", "--footer-spacing 1", "--footer-font-size 8", "--footer-line" ] } end