我有一个dockerfile,它成功地安装了wkhtmltopdf v0.12.4,但我需要将它更新到一个较新的版本(0.12.6),因为它似乎与我所做的一些其他升级不兼容。 下面是可以工作的代码(尽管不兼容) FROM php:7.3.31-apache
...
RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz --no-check-certificate
RUN tar -xJf wkhtml
9.3和rails 3.2.13在我的应用程序中创建了PDF,因此我安装了gem安装wkhtmltopdf和gem安装wkhtmltopdf-二进制-v '0.9.9.1',但是我得到了如何解决这个问题的消息
gem安装wkhtmltopdf
成功安装wkhtmltopdf-0.1.2 1 gem,安装wkhtmltopdf-0.1.2的ri文档。
unable to convert "\x90" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_linux_386, skipping
unable to convert
在我的Rails环境日志文件
PDFKit::NoExecutableError (No wkhtmltopdf executable found at `/` is not writable. Bundler will use `/tmp/bundler/home/unknown' as your home directory temporarily. /home/ubuntu/rails-app/shared/bundle/ruby/2.3.0/bin/wkhtmltopdf
请安装wkhtmltopdf - ):pdfkit (0.8.2) lib/ pdfkit /pdfki
pdfkit创业板成功安装在我的机器上。然后我运行gem install wkhtmltopdf-binary,输出是
Successfully installed wkhtmltopdf-binary-0.9.9.1
1 gem installed
Installing ri documentation for wkhtmltopdf-binary-0.9.9.1...
unable to convert "\xC0" from ASCII-8BIT to UTF-8 for bin/wkhtmltopdf_linux_386, skipping
unable to conv
我在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 con
我正尝试在我的prod服务器上使用wicked_pdf,但它总是失败:
RuntimeError (Failed to execute:
"/usr/bin/wkhtmltopdf" -q "file:////tmp/wicked_pdf20130709-23109-1adqx5g.html" "/tmp/wicked_pdf_generated_file20130709-23109-1ic5dbe.pdf"
Error: PDF could not be generated!
Command Error: wkhtmltopdf