Я пытаюсь сгенерировать отчеты в формате PDF с помощью wicked_pdf gem.Генерация PDF отлично работает в моей среде разработки, но происходит сбой после ее развертывания на Heroku
Это ошибка, которую я получаю:
Failed to execute:
/app/.bundle/gems/ruby/1.9.1/bin/wkhtmltopdf --header-font-name 'Century Gothic' --header-left 'My Test - Neuffen, Germany' --header-right '2012-02-05 15:50:57 -0800' --header-font-size 14 --header-line --footer-center 'Generated by Biowatts - http://biowatts.org' --footer-font-name 'Century Gothic' --footer-font-size 13 --footer-line --toc-font-name 'Century Gothic' --toc-disable-links --toc-disable-back-links --orientation 'Landscape' --no-background -q - -
Error: PDF could not be generated!
.bundle/gems/ruby/1.9.1/gems/wicked_pdf-0.7.2/lib/wicked_pdf.rb:39:in `rescue in pdf_from_string'
Есть идеи, как решить эту проблему?
20120207 - Дополнительные попытки
При добавлении их в мой файл gem я получаю ошибку diffenret:
group :production do
gem "wkhtmltopdf-heroku", :git => 'git://github.com/camdez/wkhtmltopdf-heroku.git'
end
Ошибка:
Location of wkhtmltopdf unknown
.bundle/gems/ruby/1.9.1/gems/wicked_pdf-0.7.2/lib/wicked_pdf.rb:20:in `initialize'