I'm running Rails on Windows and installed wkhtmltopdf(path - C:\Users\User\local\bin). I'm trying to configure it using documentation - https://github.com/pdfkit/pdfkit#configuration. But it gives me errors about path.
I create pdfkit.rb file in initializers folder and wrote this:
PDFKit.configure do |config|
config.wkhtmltopdf = "C:Users/User/local/bin"
config.default_options = {
:page_size => 'Legal',
:print_media_type => true
}
end
but it gives me error
No wkhtmltopdf executable found at C:Users/User/local/bin
>> Please install wkhtmltopdf - https://github.com/jdpace/PDFKit/wiki/Installing-WKHTMLTOPDF