Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 494 Bytes

README.rdoc

File metadata and controls

26 lines (17 loc) · 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.