After reading around it seemed to me that Prawn is out and wkhtmltopdf is in. It also seems like the PDFKit and wicked_pdf gems for Rails are the new co
Exact same symptoms but using WickedPdf
currently. At this point, I believe the issue lies with wkhtmltopdf
as well.
Unfortunately, neither of the recommendations I've been able to find in Stack/Google worked for me. Instead, I needed to combine several suggestions, including some found in this post.
Solution was:
brew uninstall wkhtmltopdf
wkhtmltopdf
in /usr/bin
WickedPdf.config
line in config/initializers
config.threadsafe!
to development.rb
wkhtmltopdf-binary
to gemfileMime::Type.register_alias "application/pdf", :pdf
to config/initializers/mime_types.rb
(for me, this causes 'warning: already initialized constant PDF')My set-up was: Mac OSX Mountain Lion with Rails 3.2.1, Webrick, Postgres and wkhtmltopdf-binary (0.9.9.1).