pdf-writer invalid multibyte char (US-ASCII) expecting keyword_end content = “%PDF-#{@version}\\n%âãÏÓ\\n” Rails 3

此生再无相见时 提交于 2019-12-05 21:39:14

pdf-writer is not compatible with Ruby 1.9. There is a fork which is: https://github.com/metaskills/pdf-writer

Change the pdf-writer line in your Gemfile for:

gem 'pdf-writer', :git => 'git://github.com/metaskills/pdf-writer.git'

I just ported pdf-writer to Ruby 2.0. Pull request sent to metaskills (referenced in previous answer).

If you need it for Ruby 2.0 in the meantime, please find the forked code here:

gem 'pdf-writer', :git => 'git://github.com/mwlang/pdf-writer.git'

The fork of pdf-writer also works on Ruby 2.1, thanks.

gem 'pdf-writer', :git => 'git://github.com/mwlang/pdf-writer.git'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!