README.md in pdfkit-0.4.0 vs README.md in pdfkit-0.4.1
- old
+ new
@@ -40,9 +40,13 @@
If you're on Windows or you installed wkhtmltopdf by hand to a location other than /usr/local/bin you will need to tell PDFKit where the binary is. You can configure PDFKit like so:
# config/initializers/pdfkit.rb
PDFKit.configure do |config|
config.wkhtmltopdf = '/path/to/wkhtmltopdf'
+ config.default_options = {
+ :page_size => 'Legal',
+ :print_media_type => true
+ }
end
## Middleware
PDFKit comes with a middleware that allows users to get a PDF view of any page on your site by appending .pdf to the URL.