We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was having numerous problems while running on Windows. This is how I solved it -
Download the wkhtmltox-0.12.5-1.mxe-cross-win64.7z file from the wkhtmltopdf releases page.
wkhtmltox-0.12.5-1.mxe-cross-win64.7z
Extract and get the full path to the exe file which is located in the bin folder.
bin
In the beginning of my program, I added the following in the IMGKit.configure block.
IMGKit.configure
Path with backslashes escaped -
IMGKit.configure do |config| config.wkhtmltoimage = "D:\\wkhtmltox\\bin\\wkhtmltoimage.exe" end
Or, path with backslashes replaced by forward slashes.
IMGKit.configure do |config| config.wkhtmltoimage = "D:/wkhtmltox/bin/wkhtmltoimage.exe" end
Note: The path can contain spaces. Ruby parses it correctly regardless.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was having numerous problems while running on Windows. This is how I solved it -
Download the
wkhtmltox-0.12.5-1.mxe-cross-win64.7z
file from the wkhtmltopdf releases page.Extract and get the full path to the exe file which is located in the
bin
folder.In the beginning of my program, I added the following in the
IMGKit.configure
block.Path with backslashes escaped -
Or, path with backslashes replaced by forward slashes.
Note: The path can contain spaces. Ruby parses it correctly regardless.
The text was updated successfully, but these errors were encountered: