Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (17 sloc) 494 Bytes

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.