I am having a problem creating a PDF file on an html page.
I am using PDFkit. I also installed wkhtmltopdf in accordance with the installation instructions. In 'usr / local / bin /' there is now a file called 'wkhtmltopdf'
When I run PDF with PDFkit, it now gives an error:
command failed: "/usr/local/bin/wkhtmltopdf" "--margin-right" "0.75in" "--page-size" "Letter" "--margin-top" "0.75in" "--margin-bottom" "0.75in" "--encoding" "UTF-8" "--margin-left" "0.75in" "--quiet" "-" "-"
Also, when I try to generate a PDF directly, it gives an error:
wkhtmltopdf --page-size A4--quiet http://localhost/invoices/22 - '/usr/local/bin/wkhtmltopdf: cannot execute binary file'
Any idea what this could be? Here's what the PDFkit configuration file looks like:
PDFKit.configure do |config| config.wkhtmltopdf = '/usr/local/bin/wkhtmltopdf' end
source share