NAME

Barcode::DataMatrix - Generate data for Data Matrix barcodes

SYNOPSIS

use Barcode::DataMatrix;
my $data = Barcode::DataMatrix->new->barcode('MONKEY');
for my $row (@$data) {
    print for map { $_ ? "#" : ' ' } @$row;
    print "\n";
}

DESCRIPTION

This class is used to generate data for Data Matrix barcodes. It is primarily useful as a data source for barcode modules that do rendering, such as HTML::Barcode::DataMatrix. You can easily make a version that renders an image, PDF, or anything else.

METHODS

new (%attributes)

Instantiate a new Barcode::DataMatrix object. The %attributes hash can take any of the other attributes listed below.

barcode ($text)

Generate barcode data representing the $text string. This returns an array ref of rows in the data matrix, each containing array refs of cells within that row. The cells are true and false values that represent filled or empty squares.

This can throw an exception if it's unable to generate the barcode data.

ATTRIBUTES

encoding_mode

The encoding mode for the data matrix. Can be one of: AUTO (default), ASCII, C40, TEXT, BASE256, or NONE.

process_tilde

Set to true to indicate the tilde character "~" is being used to recognize special characters. See this page for more information: http://www.idautomation.com/datamatrixfaq.html

AUTHOR

Mons Anderson <inthrax@gmail.com> (GD::Barcode::DataMatrix at http://code.google.com/p/perl-ex/, from which this distribution originates)

Mark A. Stratman, <stratman@gmail.com>

SOURCE REPOSITORY

http://github.com/mstratman/Barcode-DataMatrix

SEE ALSO

HTML::Barcode::DataMatrix
"/grandzebu.net/index.php?page=/informatique/codbar-en/datamatrix.htm " in http:
http://www.idautomation.com/datamatrixfaq.html

LICENSE AND COPYRIGHT

Copyright 2011 the AUTHORs listed above.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 122:

L<> starts or ends with whitespace