Barcode::DataMatrix::Engine - The engine which generates the data matrix bitmap.
Turn on/off general debugging information.
Represent the ASCII encoding type.
Represent the C40 encoding type. (upper case alphanumeric)
Represent the TEXT encoding type. (lower case alphanumeric)
Represent the BASE256 encoding type.
Represent the when there is no encoding type.
Represent the when the encoding type is automatically set.
Return a list of encoding types.
Return the integer representing the type from the type name.
Return the type name from the integer representing the type.
Convert a "width x height" format string into an internal format specification.
Set the encoding type from the given type name.
Construct a Barcode::DataMatrix::Engine object.
Barcode::DataMatrix::Engine
Initialize some of the basic Barcode::DataMatrix::Engine data.
Handle special or control characters, which are prefixed by a tilde ~ when encoding.
~
Return the message as a Reed-Solomon encoded array.
Return padding codewords via the 253-state algorithm.
For more information see http://grandzebu.net/informatique/codbar-en/datamatrix.htm.
The relevant text for this algorithm is reproduced here.
If the symbol is not full, pad CWs are required. After the last data CW, the 254 CW indicates the end of the datas or the return to ASCII method. First padding CW is 129 and next padding CWs are computed with the 253-state algorithm.
CW
Let P be the number of data CWs from the beginning of the data, R a pseudo random number and CW the required pad CW.
P
R
R = ((149 * P) MOD 253) + 1 CW = (129 + R) MOD 254
Generate and return the bitmap representing the message.
Return the ECC200 (DataMatrix) array, formatted for the appropriate matrix size.
Return true if the character code represents a digit.
Return true if the character code represents a lower case letter.
Return true if the character code represents an upper case letter.
Detect the encoding type.
Encode the message as ASCII.
Select a new encoding type for the message.
Encode the message as C40/TEXT.
The 255-state algorithm. Used when encoding strings with the BASE256 type.
This information originally from http://grandzebu.net/informatique/codbar-en/datamatrix.htm.
Let P the number of data CWs from the beginning of datas (CW = code word). Let R be a pseudo random number, V the base 256 CW value and CW the required CW.
V
R = ((149 * P) MOD 255) + 1 CW = (V + R) MOD 256
Return a string representation of the input hexadecimal number.
Encode the message as BASE256.
Generate and return the data for the DataMatrix bitmap from the input array.
Fill the border of the ECC200 data matrix bitmap.
Fill the data matrix with the character data in the given message array.
To install Barcode::DataMatrix, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Barcode::DataMatrix
CPAN shell
perl -MCPAN -e shell install Barcode::DataMatrix
For more information on module installation, please visit the detailed CPAN module installation guide.