Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\PdfFourOneSeven
abstract class Data
Source: src/Type/Square/PdfFourOneSeven/Data.php:36
Data for PdfFourOneSeven Barcode type class
Constants
CLUSTERS
Clusters of codewords (0, 3, 6).
Values are hex equivalents of binary representation of bars (1 = bar, 0 = space). The codewords numbered from 900 to 928 have special meaning, some enable to switch between modes in order to optimise the code:
900 : Switch to "Text" mode
901 : Switch to "Byte" mode
902 : Switch to "Numeric" mode
903 - 912 : Reserved
913 : Switch to "Octet" only for the next codeword
914 - 920 : Reserved
921 : Initialization
922 : Terminator codeword for Macro PDF control block
923 : Sequence tag to identify the beginning of optional fields in the Macro PDF control block
924 : Switch to "Byte" mode (If the total number of byte is multiple of 6)
925 : Identifier for a user defined Extended Channel Interpretation (ECI)
926 : Identifier for a general purpose ECI format
927 : Identifier for an ECI of a character set or code page
928 : Macro marker codeword to indicate the beginning of a Macro PDF Control Block
public const CLUSTERS = [[
// cluster 0 -----------------------------------------------------------------------
0x1d5c0,
0x1eaf0,
0x1f57c,
0x1d4e0,
0x1ea78,
0x1f53e,
0x1a8c0,
0x1d470,
0x1a860,
0x15040,
// … truncated, see source
Source: src/Type/Square/PdfFourOneSeven/Data.php:235
RS_FACTORS
Array of factors of the Reed-Solomon polynomial equations used for error correction; One sub array for each correction level (0-8).
public const RS_FACTORS = [[
// ECL 0 (2 factors) -------------------------------------------------------------------------------
0x1b,
0x395,
], [
// ECL 1 (4 factors) -------------------------------------------------------------------------------
0x20a,
0x238,
0x2d3,
0x329,
], [
// ECL 2 (8 factors) -------------------------------------------------------------------------------
// … truncated, see source
Source: src/Type/Square/PdfFourOneSeven/Data.php:3316
START_PATTERN
Start pattern
public const START_PATTERN = '11111111010101000'
Source: src/Type/Square/PdfFourOneSeven/Data.php:43
STOP_PATTERN
Stop pattern
public const STOP_PATTERN = '111111101000101001'
Source: src/Type/Square/PdfFourOneSeven/Data.php:50
TEXT_LATCH
Array of switching codes for Text Compaction Sub-Modes
public const TEXT_LATCH = ['01' => [27], '02' => [28], '03' => [28, 25], '10' => [28, 28], '12' => [28], '13' => [28, 25], '20' => [28], '21' => [27], '23' => [25], '30' => [29], '31' => [29, 27], '32' => [29, 28]]
Source: src/Type/Square/PdfFourOneSeven/Data.php:197
TEXT_SUB_MODES
Array of text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers)
public const TEXT_SUB_MODES = [[
// Alpha
0x41,
0x42,
0x43,
0x44,
0x45,
0x46,
0x47,
0x48,
0x49,
0x4a,
// … truncated, see source