Skip to content

Commit

Permalink
adds mime type and path to wkhtmltopdf config docs
Browse files Browse the repository at this point in the history
This is needed to avoid errors under rails 2.3
  • Loading branch information
bwlang committed Aug 3, 2012
1 parent 934bf12 commit d63b2e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ _Wicked PDF has been verified to work on Ruby 1.8.7 and 1.9.2; Rails 2 and Rails
### Installation

First, be sure to install [wkhtmltopdf](http://code.google.com/p/wkhtmltopdf/).
If your wkhtmltopdf executable is not on your webserver's path, configure it in an initializer:
WickedPdf.config = {
:exe_path => '/usr/local/bin/wkhtmltopdf'
}
Note that versions before 0.9.0 [have problems](http://code.google.com/p/wkhtmltopdf/issues/detail?id=82&q=vodnik) on some machines with reading/writing to streams.
This plugin relies on streams to communicate with wkhtmltopdf.

Expand All @@ -22,6 +26,10 @@ Next:
or add this to your Gemfile:

gem 'wicked_pdf'

You may also need to add
Mime::Type.register "application/pdf", :pdf
to config/initializers/mime_types.rb

### Basic Usage

Expand Down

0 comments on commit d63b2e6

Please sign in to comment.