I'm trying to generate a PDF file based on an HTML file in a Rails app. I search and I found this wkhtmltopdf engine, but when I try to generate a pdf appending the '.pdf' sufix in my pages it seems to be in a loop that never ends unless I stop the server, which show this error:
command failed: "/usr/bin/wkhtmltopdf" "--page-size" "Letter" "--margin-left" "0.75in" "--margin-right" "0.75in" "--margin-bottom" "0.75in" "--margin-top" "0.75in" "--encoding" "UTF-8" "--quiet" "-" "-"
I'm using pdfkit and wkhtmltopdf-binary gems and MacOS Lion. Does anyone knows how to solve this issue? Thanks