Skip to content

Adds a qrcode functionality to prawn that draws a QRCode from rqrcode

Notifications You must be signed in to change notification settings

technicool/prawn-qrcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Adds a qrcode functionality to prawn that draws a QRCode from rqrcode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published