Vector::QRCode::EPS - A generator class for vector data of QRCode
use Vector::QRCode::EPS; my $ps = Vector::QRCode::EPS->generate( text => 'Hello, world!', colour => [255, 0, 0], bgcolour => [150, 150, 150], transparent => 0, size => 6, unit => 'cm', qrcode_options => { version => 5, level => 'H', }, ); $ps->output('qrcode.ps');
Vector::QRCode::EPS is a generator that returns a QRCode data as PostScript::Simple object.
You have to install libqrencode into your host before installing this module.
Returns a PostScript::Simple object that contains a vector data of QRCode.
$ps_obj = Vector::QRCode::EPS->generate(%options);
Options are followings.
Required. Text that will be implemented into QRCode.
Optional. Multiple of unit. Default is 10.
Optional. Unit from 'mm', 'cm', 'in', 'pt', and 'bp'. Default is 'cm'.
Please see more datail for CONSTRUCTOR Paragraph of the PostScript::Simple documentation.
Optional. RGB colour specification in arrayref. Default is [10, 10, 10].
Optional. RGP colour specification for background color in arrayref. Default is [255, 255, 255].
Optional. Transparent background when true value is specified. Default is undef.
Optional. Options as Text::QRCode. Default is undef.
Copyright (C) ytnobody.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ytnobody <ytnobody@gmail.com>
libqrencode
PostScript::Simple
Text::QRCode
To install Vector::QRCode::EPS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Vector::QRCode::EPS
CPAN shell
perl -MCPAN -e shell install Vector::QRCode::EPS
For more information on module installation, please visit the detailed CPAN module installation guide.