Aspose.Barcode for PHP via Java Generation and Recognition API docs

Static Public Member Functions

static is1D (int $symbology)
 
static isPostal (int $symbology)
 
static is2D (int $symbology)
 
static containsAny (int $decodeType, array $decodeTypes)
 

Public Attributes

const NONE = -1
 
const CODABAR = 0
 
const CODE_11 = 1
 
const CODE_39 = 2
 
const CODE_39_FULL_ASCII = 3
 
const CODE_93 = 5
 
const CODE_128 = 6
 
const GS_1_CODE_128 = 7
 
const EAN_8 = 8
 
const EAN_13 = 9
 
const EAN_14 = 10
 
const SCC_14 = 11
 
const SSCC_18 = 12
 
const UPCA = 13
 
const UPCE = 14
 
const ISBN = 15
 
const STANDARD_2_OF_5 = 16
 
const INTERLEAVED_2_OF_5 = 17
 
const MATRIX_2_OF_5 = 18
 
const ITALIAN_POST_25 = 19
 
const IATA_2_OF_5 = 20
 
const ITF_14 = 21
 
const ITF_6 = 22
 
const MSI = 23
 
const VIN = 24
 
const DEUTSCHE_POST_IDENTCODE = 25
 
const DEUTSCHE_POST_LEITCODE = 26
 
const OPC = 27
 
const PZN = 28
 
const PHARMACODE = 29
 
const DATA_MATRIX = 30
 
const GS_1_DATA_MATRIX = 31
 
const QR = 32
 
const AZTEC = 33
 
const GS_1_AZTEC = 81
 
const PDF_417 = 34
 
const MACRO_PDF_417 = 35
 
const MICRO_PDF_417 = 36
 
const GS_1_MICRO_PDF_417 = 82
 
const CODABLOCK_F = 65
 
const MAILMARK = 66
 
const AUSTRALIA_POST = 37
 
const POSTNET = 38
 
const PLANET = 39
 
const ONE_CODE = 40
 
const RM_4_SCC = 41
 
const DATABAR_OMNI_DIRECTIONAL = 42
 
const DATABAR_TRUNCATED = 43
 
const DATABAR_LIMITED = 44
 
const DATABAR_EXPANDED = 45
 
const DATABAR_STACKED_OMNI_DIRECTIONAL = 53
 
const DATABAR_STACKED = 54
 
const DATABAR_EXPANDED_STACKED = 55
 
const PATCH_CODE = 46
 
const ISSN = 47
 
const ISMN = 48
 
const SUPPLEMENT = 49
 
const AUSTRALIAN_POSTE_PARCEL = 50
 
const SWISS_POST_PARCEL = 51
 
const CODE_16_K = 52
 
const MICRO_QR = 56
 
const RECT_MICRO_QR = 83
 
const COMPACT_PDF_417 = 57
 
const GS_1_QR = 58
 
const MAXI_CODE = 59
 
const MICR_E_13_B = 60
 
const CODE_32 = 61
 
const DATA_LOGIC_2_OF_5 = 62
 
const DOT_CODE = 63
 
const GS_1_DOT_CODE = 77
 
const DUTCH_KIX = 64
 
const HIBC_CODE_39_LIC = 67
 
const HIBC_CODE_128_LIC = 68
 
const HIBC_AZTEC_LIC = 69
 
const HIBC_DATA_MATRIX_LIC = 70
 
const HIBCQRLIC = 71
 
const HIBC_CODE_39_PAS = 72
 
const HIBC_CODE_128_PAS = 73
 
const HIBC_AZTEC_PAS = 74
 
const HIBC_DATA_MATRIX_PAS = 75
 
const HIBCQRPAS = 76
 
const HAN_XIN = 78
 
const GS_1_HAN_XIN = 79
 
const GS_1_COMPOSITE_BAR = 80
 
const TYPES_1D = 97
 
const POSTAL_TYPES = 95
 
const MOST_COMMON_TYPES = 96
 
const TYPES_2D = 98
 
const ALL_SUPPORTED_TYPES = 99
 

Private Attributes

const javaClassName = "com.aspose.mw.barcode.recognition.MwDecodeTypeUtils"
 

Detailed Description

Specify the type of barcode to read.

This sample shows how to detect Code39 and Code128 barcodes.

$reader = new BarCodeReader("test.png", null, array(DecodeType::CODE_39, DecodeType::CODE_128));
foreach($reader->readBarCodes() as $result)
{
print("BarCode Type: ".$result->getCodeTypeName());
print("BarCode CodeText: ".$result->getCodeText());
}

Member Function Documentation

◆ containsAny()

static DecodeType::containsAny ( int  $decodeType,
array  $decodeTypes 
)
static

Determines if the BaseDecodeType array contains specified barcode symbology

Parameters
int$decodeTypespecified barcode symbology
array$decodeTypesthe BaseDecodeType array
Returns
bool
Exceptions
BarcodeException

◆ is1D()

static DecodeType::is1D ( int  $symbology)
static

Determines if the specified BaseDecodeType contains any 1D barcode symbology

Parameters
int$symbologybarcode symbology
Returns
bool true if BaseDecodeType contains any 1D barcode symbology; otherwise, returns false.

◆ is2D()

static DecodeType::is2D ( int  $symbology)
static

Determines if the specified BaseDecodeType contains any 2D barcode symbology

Parameters
intsymbology The BaseDecodeType to test.
Returns
bool Returns true if BaseDecodeType contains any 2D barcode symbology; otherwise, returns false.

◆ isPostal()

static DecodeType::isPostal ( int  $symbology)
static

Determines if the specified BaseDecodeType contains any Postal barcode symbology

Parameters
intsymbology The BaseDecodeType to test
Returns
bool Returns true if BaseDecodeType contains any Postal barcode symbology; otherwise, returns false.

Member Data Documentation

◆ ALL_SUPPORTED_TYPES

const DecodeType::ALL_SUPPORTED_TYPES = 99

Specifies that data will be checked with all available symbologies

◆ AUSTRALIA_POST

const DecodeType::AUSTRALIA_POST = 37

Specifies that the data should be decoded with { Australia Post} barcode specification

◆ AUSTRALIAN_POSTE_PARCEL

const DecodeType::AUSTRALIAN_POSTE_PARCEL = 50

Specifies that the data should be decoded with { Australian Post Domestic eParcel Barcode} barcode specification

◆ AZTEC

const DecodeType::AZTEC = 33

Specifies that the data should be decoded with { Aztec} barcode specification

◆ CODABAR

const DecodeType::CODABAR = 0

Specifies that the data should be decoded with { CODABAR} barcode specification

◆ CODABLOCK_F

const DecodeType::CODABLOCK_F = 65

Specifies that the data should be decoded with { CodablockF} barcode specification

◆ CODE_11

const DecodeType::CODE_11 = 1

Specifies that the data should be decoded with { CODE 11} barcode specification

◆ CODE_128

const DecodeType::CODE_128 = 6

Specifies that the data should be decoded with { CODE 128} barcode specification

◆ CODE_16_K

const DecodeType::CODE_16_K = 52

Specifies that the data should be decoded with { SCode16K} barcode specification

◆ CODE_32

const DecodeType::CODE_32 = 61

Specifies that the data should be decoded with { Code32} blank specification

◆ CODE_39

const DecodeType::CODE_39 = 2

Specifies that the data should be decoded with

<b>Code 39</b>

basic charset barcode specification: ISO/IEC 16388

◆ CODE_39_FULL_ASCII

const DecodeType::CODE_39_FULL_ASCII = 3

Specifies that the data should be decoded with

<b>Code 39</b>

full ASCII charset barcode specification: ISO/IEC 16388

◆ CODE_93

const DecodeType::CODE_93 = 5

Specifies that the data should be decoded with

<b>CODE 93</b>

barcode specification

◆ COMPACT_PDF_417

const DecodeType::COMPACT_PDF_417 = 57

Specifies that the data should be decoded with { CompactPdf417} (Pdf417Truncated) barcode specification

◆ DATA_LOGIC_2_OF_5

const DecodeType::DATA_LOGIC_2_OF_5 = 62

Specifies that the data should be decoded with { DataLogic 2 of 5} blank specification

◆ DATA_MATRIX

const DecodeType::DATA_MATRIX = 30

Specifies that the data should be decoded with { DataMatrix} barcode symbology

◆ DATABAR_EXPANDED

const DecodeType::DATABAR_EXPANDED = 45

Specifies that the data should be decoded with { GS1 DATABAR expanded} barcode specification

◆ DATABAR_EXPANDED_STACKED

const DecodeType::DATABAR_EXPANDED_STACKED = 55

Specifies that the data should be decoded with { GS1 DATABAR expanded stacked} barcode specification

◆ DATABAR_LIMITED

const DecodeType::DATABAR_LIMITED = 44

Specifies that the data should be decoded with { GS1 DATABAR limited} barcode specification

◆ DATABAR_OMNI_DIRECTIONAL

const DecodeType::DATABAR_OMNI_DIRECTIONAL = 42

Specifies that the data should be decoded with { GS1 DATABAR omni-directional} barcode specification

◆ DATABAR_STACKED

const DecodeType::DATABAR_STACKED = 54

Specifies that the data should be decoded with { GS1 DATABAR stacked} barcode specification

◆ DATABAR_STACKED_OMNI_DIRECTIONAL

const DecodeType::DATABAR_STACKED_OMNI_DIRECTIONAL = 53

Specifies that the data should be decoded with { GS1 DATABAR stacked omni-directional} barcode specification

◆ DATABAR_TRUNCATED

const DecodeType::DATABAR_TRUNCATED = 43

Specifies that the data should be decoded with { GS1 DATABAR truncated} barcode specification

◆ DEUTSCHE_POST_IDENTCODE

const DecodeType::DEUTSCHE_POST_IDENTCODE = 25

Specifies that the data should be decoded with { DeutschePost Ident code} barcode specification

◆ DEUTSCHE_POST_LEITCODE

const DecodeType::DEUTSCHE_POST_LEITCODE = 26

Specifies that the data should be decoded with { DeutschePost Leit code} barcode specification

◆ DOT_CODE

const DecodeType::DOT_CODE = 63

Specifies that the data should be decoded with { DotCode} blank specification

◆ DUTCH_KIX

const DecodeType::DUTCH_KIX = 64

Specifies that the data should be decoded with { DotCode} blank specification

◆ EAN_13

const DecodeType::EAN_13 = 9

Specifies that the data should be decoded with { EAN-13} barcode specification

◆ EAN_14

const DecodeType::EAN_14 = 10

Specifies that the data should be decoded with { EAN14} barcode specification

◆ EAN_8

const DecodeType::EAN_8 = 8

Specifies that the data should be decoded with { EAN-8} barcode specification

◆ GS_1_AZTEC

const DecodeType::GS_1_AZTEC = 81

Specifies that the data should be decoded with

<b>GS1 Aztec</b>

barcode specification

◆ GS_1_CODE_128

const DecodeType::GS_1_CODE_128 = 7

Specifies that the data should be decoded with { GS1 CODE 128} barcode specification

◆ GS_1_COMPOSITE_BAR

const DecodeType::GS_1_COMPOSITE_BAR = 80

Specifies that the data should be decoded with

<b>GS1 Composite Bar</b>

barcode specification

◆ GS_1_DATA_MATRIX

const DecodeType::GS_1_DATA_MATRIX = 31

Specifies that the data should be decoded with { GS1DataMatrix} barcode symbology

◆ GS_1_DOT_CODE

const DecodeType::GS_1_DOT_CODE = 77

Specifies that the data should be decoded with

<b>GS1 DotCode</b>

blank specification

◆ GS_1_HAN_XIN

const DecodeType::GS_1_HAN_XIN = 79

Specifies that the data should be decoded with Han Xin Code blank specification

◆ GS_1_MICRO_PDF_417

const DecodeType::GS_1_MICRO_PDF_417 = 82

Specifies that the data should be decoded with MicroPdf417 barcode specification

◆ GS_1_QR

const DecodeType::GS_1_QR = 58

Specifies that the data should be decoded with { GS1 QR} barcode specification

◆ HAN_XIN

const DecodeType::HAN_XIN = 78

Specifies that the data should be decoded with Han Xin Code blank specification

◆ HIBC_AZTEC_LIC

const DecodeType::HIBC_AZTEC_LIC = 69

Specifies that the data should be decoded with

<b>HIBC LIC Aztec</b>

blank specification

◆ HIBC_AZTEC_PAS

const DecodeType::HIBC_AZTEC_PAS = 74

Specifies that the data should be decoded with

<b>HIBC PAS Aztec</b>

blank specification

◆ HIBC_CODE_128_LIC

const DecodeType::HIBC_CODE_128_LIC = 68

Specifies that the data should be decoded with

<b>HIBC LIC Code128</b>

blank specification

◆ HIBC_CODE_128_PAS

const DecodeType::HIBC_CODE_128_PAS = 73

Specifies that the data should be decoded with

<b>HIBC PAS Code128</b>

blank specification

◆ HIBC_CODE_39_LIC

const DecodeType::HIBC_CODE_39_LIC = 67

Specifies that the data should be decoded with

<b>HIBC LIC Code39</b>

blank specification

◆ HIBC_CODE_39_PAS

const DecodeType::HIBC_CODE_39_PAS = 72

Specifies that the data should be decoded with

<b>HIBC PAS Code39</b>

blank specification

◆ HIBC_DATA_MATRIX_LIC

const DecodeType::HIBC_DATA_MATRIX_LIC = 70

Specifies that the data should be decoded with

<b>HIBC LIC DataMatrix</b>

blank specification

◆ HIBC_DATA_MATRIX_PAS

const DecodeType::HIBC_DATA_MATRIX_PAS = 75

Specifies that the data should be decoded with

<b>HIBC PAS DataMatrix</b>

blank specification

◆ HIBCQRLIC

const DecodeType::HIBCQRLIC = 71

Specifies that the data should be decoded with

<b>HIBC LIC QR</b>

blank specification

◆ HIBCQRPAS

const DecodeType::HIBCQRPAS = 76

Specifies that the data should be decoded with

<b>HIBC PAS QR</b>

blank specification

◆ IATA_2_OF_5

const DecodeType::IATA_2_OF_5 = 20

Specifies that the data should be decoded with { IATA 2 of 5} barcode specification. IATA (International Air Transport Association) uses this barcode for the management of air cargo.

◆ INTERLEAVED_2_OF_5

const DecodeType::INTERLEAVED_2_OF_5 = 17

Specifies that the data should be decoded with { INTERLEAVED 2 of 5} barcode specification

◆ ISBN

const DecodeType::ISBN = 15

Specifies that the data should be decoded with { ISBN} barcode specification

◆ ISMN

const DecodeType::ISMN = 48

Specifies that the data should be decoded with { ISMN} barcode specification

◆ ISSN

const DecodeType::ISSN = 47

Specifies that the data should be decoded with { ISSN} barcode specification

◆ ITALIAN_POST_25

const DecodeType::ITALIAN_POST_25 = 19

Specifies that the data should be decoded with { Italian Post 25} barcode specification

◆ ITF_14

const DecodeType::ITF_14 = 21

Specifies that the data should be decoded with { ITF14} barcode specification

◆ ITF_6

const DecodeType::ITF_6 = 22

Specifies that the data should be decoded with { ITF6} barcode specification

◆ javaClassName

const DecodeType::javaClassName = "com.aspose.mw.barcode.recognition.MwDecodeTypeUtils"
private

◆ MACRO_PDF_417

const DecodeType::MACRO_PDF_417 = 35

Specifies that the data should be decoded with { MacroPdf417} barcode specification

◆ MAILMARK

const DecodeType::MAILMARK = 66

Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.

◆ MATRIX_2_OF_5

const DecodeType::MATRIX_2_OF_5 = 18

Specifies that the data should be decoded with { Matrix 2 of 5} barcode specification

◆ MAXI_CODE

const DecodeType::MAXI_CODE = 59

Specifies that the data should be decoded with { MaxiCode} barcode specification

◆ MICR_E_13_B

const DecodeType::MICR_E_13_B = 60

Specifies that the data should be decoded with { MICR E-13B} blank specification

◆ MICRO_PDF_417

const DecodeType::MICRO_PDF_417 = 36

Specifies that the data should be decoded with { MicroPdf417} barcode specification

◆ MICRO_QR

const DecodeType::MICRO_QR = 56

Specifies that the data should be decoded with { MicroQR Code} barcode specification

◆ MOST_COMMON_TYPES

const DecodeType::MOST_COMMON_TYPES = 96

Specifies that data will be checked with most commonly used symbologies

◆ MSI

const DecodeType::MSI = 23

Specifies that the data should be decoded with { MSI Plessey} barcode specification

◆ NONE

const DecodeType::NONE = -1

Unspecified decode type.

◆ ONE_CODE

const DecodeType::ONE_CODE = 40

Specifies that the data should be decoded with USPS { OneCode} barcode specification

◆ OPC

const DecodeType::OPC = 27

Specifies that the data should be decoded with { OPC} barcode specification

◆ PATCH_CODE

const DecodeType::PATCH_CODE = 46

Specifies that the data should be decoded with { Patch code} barcode specification. Barcode symbology is used for automated scanning

◆ PDF_417

const DecodeType::PDF_417 = 34

Specifies that the data should be decoded with { Pdf417} barcode symbology

◆ PHARMACODE

const DecodeType::PHARMACODE = 29

Specifies that the data should be decoded with { Pharmacode} barcode. This symbology is also known as Pharmaceutical BINARY Code

◆ PLANET

const DecodeType::PLANET = 39

Specifies that the data should be decoded with { Planet} barcode specification

◆ POSTAL_TYPES

const DecodeType::POSTAL_TYPES = 95

Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX

◆ POSTNET

const DecodeType::POSTNET = 38

Specifies that the data should be decoded with { Postnet} barcode specification

◆ PZN

const DecodeType::PZN = 28

Specifies that the data should be decoded with { PZN} barcode specification. This symbology is also known as Pharma Zentral Nummer

◆ QR

const DecodeType::QR = 32

Specifies that the data should be decoded with { QR Code} barcode specification

◆ RECT_MICRO_QR

const DecodeType::RECT_MICRO_QR = 83

Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification

◆ RM_4_SCC

const DecodeType::RM_4_SCC = 41

Specifies that the data should be decoded with { RM4SCC} barcode specification. RM4SCC (Royal Mail 4-state Customer Code) is used for automated mail sort process in UK.

◆ SCC_14

const DecodeType::SCC_14 = 11

Specifies that the data should be decoded with { SCC14} barcode specification

◆ SSCC_18

const DecodeType::SSCC_18 = 12

Specifies that the data should be decoded with { SSCC18} barcode specification

◆ STANDARD_2_OF_5

const DecodeType::STANDARD_2_OF_5 = 16

Specifies that the data should be decoded with { Standard 2 of 5} barcode specification

◆ SUPPLEMENT

const DecodeType::SUPPLEMENT = 49

Specifies that the data should be decoded with { Supplement(EAN2, EAN5)} barcode specification

◆ SWISS_POST_PARCEL

const DecodeType::SWISS_POST_PARCEL = 51

Specifies that the data should be decoded with { Swiss Post Parcel Barcode} barcode specification

◆ TYPES_1D

const DecodeType::TYPES_1D = 97

Specifies that data will be checked with all of 1D barcode symbologies

◆ TYPES_2D

const DecodeType::TYPES_2D = 98

Specifies that data will be checked with all of 2D barcode symbologies

◆ UPCA

const DecodeType::UPCA = 13

Specifies that the data should be decoded with { UPC-A} barcode specification

◆ UPCE

const DecodeType::UPCE = 14

Specifies that the data should be decoded with { UPC-E} barcode specification

◆ VIN

const DecodeType::VIN = 24

Specifies that the data should be decoded with { VIN} (Vehicle Identification Number) barcode specification