Prawn-qr is a prawn extension for creating QR Codes inside of a prawn document thanks to rqrcode.
Installation
Add this line to your application's Gemfile:
gem 'prawn-qr'
And then execute:
$ bundle
Usage
require 'prawn-qr'
Prawn::Document.generate "test.pdf" do
qrcode "http://codegram.com"
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request