Parent

PDFKit::Configuration

Attributes

default_options[RW]
meta_tag_prefix[RW]
root_url[RW]
wkhtmltopdf[W]

Public Class Methods

new() click to toggle source
# File lib/pdfkit/configuration.rb, line 6
def initialize
  @meta_tag_prefix = 'pdfkit-'
  @default_options = {
    :disable_smart_shrinking => false,
    :page_size => 'Letter',
    :margin_top => '0.75in',
    :margin_right => '0.75in',
    :margin_bottom => '0.75in',
    :margin_left => '0.75in',
    :encoding => "UTF-8"
  }
end

Public Instance Methods

wkhtmltopdf() click to toggle source
# File lib/pdfkit/configuration.rb, line 19
def wkhtmltopdf
  @wkhtmltopdf ||= (defined?(Bundler::GemfileError) ? `bundle exec which wkhtmltopdf` : `which wkhtmltopdf`).chomp
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.