It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Class UpcE


UpcE Barcode type class UPC-E

UPC-E is a variation of UPC-A which allows for a more compact barcode by eliminating "extra" zeros. Since the resulting UPC-E barcode is about half the size as an UPC-A barcode, UPC-E is generally used on products with very small packaging where a full UPC-A barcode couldn't reasonably fit.

Extended by Com\Tecnick\Barcode\Type
Extended by Com\Tecnick\Barcode\Type\Linear
Extended by Com\Tecnick\Barcode\Type\Linear\EanOneThree
Extended by Com\Tecnick\Barcode\Type\Linear\UpcA
Extended by Com\Tecnick\Barcode\Type\Linear\UpcE
Namespace: Com\Tecnick\Barcode\Type\Linear
Package: Barcode
Category: Library
Copyright: 2010-2016 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni [email protected]
Since: 2015-02-21
Located at Type/Linear/UpcE.php
Methods summary
protected string
# convertUpceCode( string $code )

Get the pre-formatted code

# setBars( )

Get the bars array

Methods inherited from Com\Tecnick\Barcode\Type\Linear\UpcA
Methods inherited from Com\Tecnick\Barcode\Type\Linear\EanOneThree
Methods inherited from Com\Tecnick\Barcode\Type
__construct(), getArray(), getBarsArray(), getExtendedCode(), getGd(), getGrid(), getHtmlDiv(), getPng(), getPngData(), getPngDataImagick(), getRgbColorObject(), getSvg(), getSvgCode(), setBackgroundColor(), setColor(), setPadding(), setParameters(), setSize()
Methods inherited from Com\Tecnick\Barcode\Type\Convert
convertDecToHex(), convertHexToDec(), getBarRectXYWH(), getBarRectXYXY(), getGridArray(), getRotatedBarArray(), processBinarySequence()
Properties summary
protected string $format

Barcode format

# 'UPCE'
protected integer $code_length

Fixed code length

# 12
protected array $parities

Map parities

# array( 0 => array( '0' => array('B','B','B','A','A','A'), '1' => array('B','B','A','B','A','A'), '2' => array('B','B','A','A','B','A'), '3' => array('B','B','A','A','A','B'), '4' => array('B','A','B','B','A','A'), '5' => array('B','A','A','B','B','A'), '6' => array('B','A','A','A','B','B'), '7' => array('B','A','B','A','B','A'), '8' => array('B','A','B','A','A','B'), '9' => array('B','A','A','B','A','B') ), 1 => array( '0' => array('A','A','A','B','B','B'), '1' => array('A','A','B','A','B','B'), '2' => array('A','A','B','B','A','B'), '3' => array('A','A','B','B','B','A'), '4' => array('A','B','A','A','B','B'), '5' => array('A','B','B','A','A','B'), '6' => array('A','B','B','B','A','A'), '7' => array('A','B','A','B','A','B'), '8' => array('A','B','A','B','B','A'), '9' => array('A','B','B','A','B','A') ) )
Properties inherited from Com\Tecnick\Barcode\Type\Linear\EanOneThree
$chbar, $check
Properties inherited from Com\Tecnick\Barcode\Type\Linear
Properties inherited from Com\Tecnick\Barcode\Type
$bars, $bg_color_obj, $code, $color_obj, $extcode, $height, $height_ratio, $ncols, $nrows, $padding, $params, $width, $width_ratio

? 2004-2019 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy