jjzjj

ruby - 无法使用 pdfkit 创建 pdf - PDFKit::NoExecutableError

我安装了pdfkit,甚至还安装了wkhtmltopdf,但是每次我尝试创建pdf时都会收到以下错误。PDFKit::NoExecutableErrorNowkhtmltopdfexecutablefoundatbundler:commandnotfound:whichInstallmissinggemexecutableswith`bundleinstall`>>Pleaseinstallwkhtmltopdf-https://github.com/jdpace/PDFKit/wiki/Installing-WKHTMLTOPDF我的Gemfile有以下内容:gem'jquery-r

ruby-on-rails - pdfkit 命令失败 : "/usr/bin/wkhtmltopdf" "--page-size" "Letter" ".... "--quiet" "-" "-"

当我生成pdf时,我正在使用pdfkit生成pdf,但出现以下错误。commandfailed:"/usr/bin/wkhtmltopdf""--page-size""Letter""--margin-top""0.75in""--margin-right""0.75in""--margin-bottom""0.75in""--margin-left""0.75in""--encoding""UTF-8""--print-media-type""--quiet""-""-"有什么帮助吗?阿特克 最佳答案 大家好,我在谷歌上搜索了它,