我在Windows上的Rails中使用wkhtmltopdf gem,但它不起作用。我得到这个错误:"Bad wkhtmltopdf's path: bundler: command not found: this“。它适用于exe,但我不想使用exe_path,我只想使用gem。这是我的wkhtmltopdf配置文件:
# WickedPDF Global Configuration
#
# Use this to set up shared configuration options for your entire application.
# Any of the configuration options shown here can also be applied to single
# models by passing arguments to the `render :pdf` call.
#
# To learn more, check out the README:
#
# https://github.com/mileszs/wicked_pdf/blob/master/README.md
WickedPdf.config = {
# Path to the wkhtmltopdf executable: This usually isn't needed if using
# one of the wkhtmltopdf-binary family of gems.
# exe_path: 'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe'
}我还使用了gem 'wicked_pdf‘gem 'wkhtmltopdf-binary’
https://stackoverflow.com/questions/41350424
复制相似问题