Update README.md

This commit is contained in:
Erwann Mest 2013-05-29 23:16:36 +02:00
parent 7dd749efb8
commit b8aad1b7d8

View file

@ -10,12 +10,15 @@ Convertion to PDF takes care of `@media print` CSS rules and preserves links to
Download and install wkhtmltopdf from the [project page][wkhtmltopdf_dl]. Download and install wkhtmltopdf from the [project page][wkhtmltopdf_dl].
Make sure `wkhtmltopdf` is accessible from your `PATH` (Try `wkhtmltopdf -V` in your Terminal). Make sure `wkhtmltopdf` is accessible from your `PATH` (Try `wkhtmltopdf -V` in your Terminal).
I'm on Mas OS X, so I created the following symlink to my `/usr/local/bin/` folder: I'm on Mac OS X, so I created the following symlink to my `/usr/local/bin/` folder:
``` ```
ln -s /usr/local/bin/wkhtmltopdf.app/Contents/MacOS/wkhtmltopdf /usr/local/bin/wkhtmltopdf ln -s /usr/local/bin/wkhtmltopdf.app/Contents/MacOS/wkhtmltopdf /usr/local/bin/wkhtmltopdf
``` ```
You can also install it via homebrew: `$ brew install wkhtmltopdf`.
### Use it with grunt ### Use it with grunt
Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-wkhtmltopdf` Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-wkhtmltopdf`