Mark A. Stratman > HTML-Barcode-0.11 > HTML::Barcode::2D

Download:
HTML-Barcode-0.11.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

HTML::Barcode::2D - A base class for HTML representations of 2D barcodes

DESCRIPTION ^

This is a base class for creating HTML representations of one-dimensional barcodes. Do not use it directly.

If you are looking to generate a barcode, please see one of the following modules instead:

Known Types

Here are some of the types of barcodes you can scan with the modules in this distribution. Others may exist, so try searching CPAN.

HTML::Barcode::QRCode - Two dimensional QR codes.
HTML::Barcode::Code93 - Code 93 barcodes.
HTML::Barcode::Code128 - Code 128 barcodes.

Subclassing

barcode_data

You need to either override this, or override the render_barcode method so it does not use this.

This should return a 2-dimensional arrayref of true and false values (for "on" and "off").

It is not recommended to publish this method in your API.

ATTRIBUTES ^

In addition to those provided by HTML::Barcode, a 2D barcode has these:

module_size

This is a CSS value for width and height of a square block within the barcode.

It is simply a convenience method that sets both the bar_height and bar_width attributes.

AUTHOR ^

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

SOURCE REPOSITORY ^

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

SEE ALSO ^

HTML::Barcode

LICENSE AND COPYRIGHT ^

Copyright 2011 Mark A. Stratman.

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.

syntax highlighting: