Sha256: bed3c2318d2c6d68122c7e2c80466a6c8f470c6f3e7481aaf17387cd526c3ebe

Contents?: true

Size: 475 Bytes

Versions: 22

Compression:

Stored size: 475 Bytes

Contents

# config/initializers/pdfkit.rb
PDFKit.configure do |config|
  if RUBY_PLATFORM =~ /(:?mswin|mingw)/
    # set path to wkhtmltopdf on windows here
    config.wkhtmltopdf = '/opt/local/bin/wkhtmltopdf'
  else
    config.wkhtmltopdf = '/opt/local/bin/wkhtmltopdf'
  end
  
  config.default_options = {
    :page_size => 'Letter',
    :print_media_type => true,
    :disable_smart_shrinking => true,
    :dpi => 300,
    :no_background => true
#    :use_xserver => true
  }
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
erp_tech_svcs-4.0.0 config/initializers/pdfkit.rb
erp_tech_svcs-3.1.8 config/initializers/pdfkit.rb
erp_tech_svcs-3.1.7 config/initializers/pdfkit.rb
erp_tech_svcs-3.1.5 config/initializers/pdfkit.rb
erp_tech_svcs-3.1.4 config/initializers/pdfkit.rb
erp_tech_svcs-3.1.3 config/initializers/pdfkit.rb
erp_tech_svcs-3.1.2 config/initializers/pdfkit.rb
erp_tech_svcs-3.1.1 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.12 config/initializers/pdfkit.rb
erp_tech_svcs-3.1.0 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.11 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.10 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.9 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.8 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.7 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.6 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.5 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.4 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.3 config/initializers/pdfkit.rb
erp_tech_svcs-3.0.2 config/initializers/pdfkit.rb