Adds a qrcode functionality to prawn that draws a QRCode from rqrcode
Pull request Compare This branch is even with torandi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
README.rdoc
Rakefile
prawn-qrcode.gemspec

README.rdoc

A plugin that adds a qrcode-function to Prawn::Document

Dependencies

  • Prawn

  • RQRCode

Usage

On your pdf, do: pdf.qrcode(@qrcode) and your qrcode will be drawn in the pdf.

Documentation

Prawn::Document::qrcode(qrcode,module_size=4,module_factor=1.1)

Renders a qrcode.

qrcode: An object of the module RQRCode

module_size: The size of the black and white blocks in the qrcode

module_factor: The size of the drawn blocks (the black ones) are multiplied with this factor.