Class: PDFKit::Configuration
- Inherits:
-
Object
- Object
- PDFKit::Configuration
- Defined in:
- lib/pdfkit/configuration.rb
Instance Attribute Summary collapse
-
#default_options ⇒ Object
Returns the value of attribute default_options.
-
#meta_tag_prefix ⇒ Object
Returns the value of attribute meta_tag_prefix.
-
#wkhtmltopdf ⇒ Object
Returns the value of attribute wkhtmltopdf.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pdfkit/configuration.rb', line 5 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', :encoding => "UTF-8" } end |
Instance Attribute Details
#default_options ⇒ Object
Returns the value of attribute default_options.
3 4 5 |
# File 'lib/pdfkit/configuration.rb', line 3 def @default_options end |
#meta_tag_prefix ⇒ Object
Returns the value of attribute meta_tag_prefix.
3 4 5 |
# File 'lib/pdfkit/configuration.rb', line 3 def @meta_tag_prefix end |
#wkhtmltopdf ⇒ Object
Returns the value of attribute wkhtmltopdf.
3 4 5 |
# File 'lib/pdfkit/configuration.rb', line 3 def wkhtmltopdf @wkhtmltopdf end |