```ruby
# config/pdfkit.rb
PDFKit.configure do |config|
  # path to wkhtmltopdf on Windows since wkhtmltopdf-binary gem doesn't work on Windows
  config.wkhtmltopdf = 'c:/Program Files (x86)/wkhtmltopdf/wkhtmltopdf.exe'
end
```

Change wkhtmltopdf path to a path without spaces
user
```ruby
# config/pdfkit.rb
PDFKit.configure do |config|
  # path to wkhtmltopdf.exe on Windows since wkhtmltopdf-binary gem doesn't work on Windows
  config.wkhtmltopdf = 'c:/tools/wkhtmltopdf/wkhtmltopdf.exe'
end
```
assistant