{
    "mode": "perldoc",
    "parameter": "GD::Barcode::Matrix2of5",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/GD%3A%3ABarcode%3A%3AMatrix2of5/json",
    "generated": "2026-06-13T19:08:42Z",
    "synopsis": "*ex. CGI*\nuse GD::Barcode::Matrix2of5;\nbinmode(STDOUT);\nprint \"Content-Type: image/png\\n\\n\";\nprint GD::Barcode::Matrix2of5->new('1234567890')->plot->png;\n*with Error Check*\nmy $oGdBar = GD::Barcode::Matrix2of5->new('A12345678');\ndie $GD::Barcode::Matrix2of5::errStr unless($oGdBar); #Invalid Characters\n$oGdBar->plot->png;",
    "sections": {
        "NAME": {
            "content": "GD::Barcode::Matrix2of5 - Create Matrix2of5 barcode image with GD\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "*ex. CGI*\n\nuse GD::Barcode::Matrix2of5;\nbinmode(STDOUT);\nprint \"Content-Type: image/png\\n\\n\";\nprint GD::Barcode::Matrix2of5->new('1234567890')->plot->png;\n\n*with Error Check*\n\nmy $oGdBar = GD::Barcode::Matrix2of5->new('A12345678');\ndie $GD::Barcode::Matrix2of5::errStr unless($oGdBar); #Invalid Characters\n$oGdBar->plot->png;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "GD::Barcode::Matrix2of5 is a subclass of GD::Barcode and allows you to create Matrix2of5 barcode\nimage with GD.\n\nnew\n*$oGdBar* = GD::Barcode::Matrix2of5->new(*$sTxt*);\n\nConstructor. Creates a GD::Barcode::Matrix2of5 object for *$sTxt*. *$sTxt* has numeric",
            "subsections": [
                {
                    "name": "characters",
                    "content": "plot()\n*$oGd* = $oGdBar->plot([Height => *$iHeight*, NoText => *0 | 1*]);\n\ncreates GD object with barcode image for the *$sTxt* specified at new method. *$iHeight* is\nheight of the image. If *NoText* is 1, the image has no text image of *$sTxt*.\n\nex.\nmy $oGdB = GD::Barcode::Matrix2of5->new('12345678');\nmy $oGD = $oGdB->plot(NoText=>1, Height => 20);\n# $sGD is a GD image with Height=>20 pixels, with no text.\n\nbarcode()\n*$sPtn* = $oGdBar->barcode();\n\nreturns a barcode pattern in string with '1' and '0'. '1' means black, '0' means white.\n\nex.\nmy $oGdB = GD::Barcode::Matrix2of5->new('12345678');\nmy $sPtn = $oGdB->barcode();\n\n$errStr\n$GD::Barcode::Matrix2of5::errStr\n\nhas error message.\n\n$text\n$oGdBar->{$text}\n\nhas barcode text based on *$sTxt* specified in new method.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "Kawai Takanori GCD00051@nifty.ne.jp\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "The GD::Barocde::Matrix2of5 module is Copyright (c) 2000 Kawai Takanori. Japan. All rights\nreserved.\n\nYou may distribute under the terms of either the GNU General Public License or the Artistic\nLicense, as specified in the Perl README file.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "GD::Barcode\n",
            "subsections": []
        }
    },
    "summary": "GD::Barcode::Matrix2of5 - Create Matrix2of5 barcode image with GD",
    "flags": [],
    "examples": [],
    "see_also": []
}