logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Barcode::DataMatrix - Generate data for Data Matrix barcodes

Attributes

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

   size
       The module size for the data matrix. Can be one of: "AUTO" (default), "10x10", "12x12", "14x14", "16x16",
       "18x18", "20x20", "22x22", "24x24", "26x26", "32x32", "36x36", "40x40", "44x44", "48x48", "52x52",
       "64x64", "72x72", "80x80", "88x88", "96x96", "104x104", "120x120", "132x132", "144x144", "8x18", "8x32",
       "12x26", "12x36", "16x36", "16x48".

   process_tilde
       Boolean. 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>

Authors

       Mons Anderson "<inthrax@gmail.com>" (GD::Barcode::DataMatrix at <https://github.com/Mons/perl-ex/>, from
       which this distribution originates)

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

       Paul Cochrane, <https://github.com/paultcochrane>

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.

Name

       Barcode::DataMatrix - Generate data for Data Matrix barcodes

See Also

Source Repository

Synopsis

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

See Also