NAME
Catalyst::View::GD::Barcode - make it easy to use GD::Barcode in Catalyst's View
SYNOPSIS
Set string to be converted to barcode.
$c->stash->{'barcode_string'} = '123456';
Set barcode type. The default is 'EAN13'.
$c->stash->{'barcode_type'} = 'NW7';
Set any other GD::Barcode options.
$c->stash->{'barcode_option'} = {NoText => 1}
Print the barcode.
$c->forward('Catalyst::View::GD::Barcode');
METHODS
- gen_barcoed
-
Generate barcode using GD::Barcode. You only need to set string and barcode type and no need to bother anything else. If it fails, it returns the string in plain text.
- process
-
Set code in $c->res->body().
- calc_checkdigit
-
Returns the calculated check digit.
SEE ALSO
AUTHOR
Toshimitu Yanagisawa, yanagisawa@shanon.co.jp
COPYRIGHT AND LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.