lib/pdfkit/configuration.rb in pdfkit-0.4.0 vs lib/pdfkit/configuration.rb in pdfkit-0.4.1
- old
+ new
@@ -1,11 +1,19 @@
class PDFKit
class Configuration
- attr_accessor :meta_tag_prefix, :wkhtmltopdf
+ attr_accessor :meta_tag_prefix, :wkhtmltopdf, :default_options
def initialize
@meta_tag_prefix = 'pdfkit-'
@wkhtmltopdf = '/usr/local/bin/wkhtmltopdf'
+ @default_options = {
+ :disable_smart_shrinking => true,
+ :page_size => 'Letter',
+ :margin_top => '0.75in',
+ :margin_right => '0.75in',
+ :margin_bottom => '0.75in',
+ :margin_left => '0.75in'
+ }
end
end
class << self
attr_accessor :configuration
\ No newline at end of file