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

Static Public Member Functions

static is1D ($symbology)
 
static isPostal ($symbology)
 
static is2D ($symbology)
 

Public Attributes

const NONE = -1
 
const CODABAR = 0
 
const CODE_11 = 1
 
const CODE_39_STANDARD = 2
 
const CODE_39_EXTENDED = 3
 
const CODE_93_STANDARD = 4
 
const CODE_93_EXTENDED = 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 PDF_417 = 34
 
const MACRO_PDF_417 = 35
 
const MICRO_PDF_417 = 36
 
const CODABLOCK_F = 65
 
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 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 DUTCH_KIX = 64
 
const ALL_SUPPORTED_TYPES = 66
 
const TYPES_1D = 67
 
const POSTAL_TYPES = 68
 
const MOST_COMMON_TYPES = 69
 
const TYPES_2D = 70
 

Detailed Description

Specify the type of barcode to read. This sample shows how to detect Code39 and Code128 barcodes. $reader = new BarCodeReader("test.png", DecodeType::CODE_39_STANDARD, DecodeType::CODE_128); foreach($reader->readBarCodes() as $result) { print("BarCode Type: ".$result->getCodeTypeName()); print("BarCode CodeText: ".$result->getCodeText()); }

Member Function Documentation

◆ is1D()

static is1D (   $symbology)
static

Determines if the specified BaseDecodeType contains any 1D barcode symbology

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

◆ is2D()

static is2D (   $symbology)
static

Determines if the specified BaseDecodeType contains any 2D barcode symbology

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

◆ isPostal()

static isPostal (   $symbology)
static

Determines if the specified BaseDecodeType contains any Postal barcode symbology

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

Member Data Documentation

◆ ALL_SUPPORTED_TYPES

const ALL_SUPPORTED_TYPES = 66

Specifies that data will be checked with all available symbologies

◆ AUSTRALIA_POST

const AUSTRALIA_POST = 37

Specifies that the data should be decoded with

<b>Australia Post</b>

barcode specification

◆ AUSTRALIAN_POSTE_PARCEL

const AUSTRALIAN_POSTE_PARCEL = 50

Specifies that the data should be decoded with

<b>Australian Post Domestic eParcel Barcode</b>

barcode specification

◆ AZTEC

const AZTEC = 33

Specifies that the data should be decoded with

<b>Aztec</b>

barcode specification

◆ CODABAR

const CODABAR = 0

Specifies that the data should be decoded with

<b>CODABAR</b>

barcode specification

◆ CODABLOCK_F

const CODABLOCK_F = 65

Specifies that the data should be decoded with

<b>CodablockF</b>

barcode specification

◆ CODE_11

const CODE_11 = 1

Specifies that the data should be decoded with

<b>CODE 11</b>

barcode specification

◆ CODE_128

const CODE_128 = 6

Specifies that the data should be decoded with

<b>CODE 128</b>

barcode specification

◆ CODE_16_K

const CODE_16_K = 52

Specifies that the data should be decoded with

<b>SCode16K</b>

barcode specification

◆ CODE_32

const CODE_32 = 61

Specifies that the data should be decoded with

<b>Code32</b>

blank specification

◆ CODE_39_EXTENDED

const CODE_39_EXTENDED = 3

Specifies that the data should be decoded with

<b>Extended CODE 39</b>

barcode specification

◆ CODE_39_STANDARD

const CODE_39_STANDARD = 2

Specifies that the data should be decoded with

<b>Standard CODE 39</b>

barcode specification

◆ CODE_93_EXTENDED

const CODE_93_EXTENDED = 5

Specifies that the data should be decoded with

<b>Extended CODE 93</b>

barcode specification

◆ CODE_93_STANDARD

const CODE_93_STANDARD = 4

Specifies that the data should be decoded with

<b>Standard CODE 93</b>

barcode specification

◆ COMPACT_PDF_417

const COMPACT_PDF_417 = 57

Specifies that the data should be decoded with

<b>CompactPdf417</b>

(Pdf417Truncated) barcode specification

◆ DATA_LOGIC_2_OF_5

const DATA_LOGIC_2_OF_5 = 62

Specifies that the data should be decoded with

<b>DataLogic 2 of 5</b>

blank specification

◆ DATA_MATRIX

const DATA_MATRIX = 30

Specifies that the data should be decoded with

<b>DataMatrix</b>

barcode symbology

◆ DATABAR_EXPANDED

const DATABAR_EXPANDED = 45

Specifies that the data should be decoded with

<b>GS1 DATABAR expanded</b>

barcode specification

◆ DATABAR_EXPANDED_STACKED

const DATABAR_EXPANDED_STACKED = 55

Specifies that the data should be decoded with

<b>GS1 DATABAR expanded stacked</b>

barcode specification

◆ DATABAR_LIMITED

const DATABAR_LIMITED = 44

Specifies that the data should be decoded with

<b>GS1 DATABAR limited</b>

barcode specification

◆ DATABAR_OMNI_DIRECTIONAL

const DATABAR_OMNI_DIRECTIONAL = 42

Specifies that the data should be decoded with

<b>GS1 DATABAR omni-directional</b>

barcode specification

◆ DATABAR_STACKED

const DATABAR_STACKED = 54

Specifies that the data should be decoded with

<b>GS1 DATABAR stacked</b>

barcode specification

◆ DATABAR_STACKED_OMNI_DIRECTIONAL

const DATABAR_STACKED_OMNI_DIRECTIONAL = 53

Specifies that the data should be decoded with

<b>GS1 DATABAR stacked omni-directional</b>

barcode specification

◆ DATABAR_TRUNCATED

const DATABAR_TRUNCATED = 43

Specifies that the data should be decoded with

<b>GS1 DATABAR truncated</b>

barcode specification

◆ DEUTSCHE_POST_IDENTCODE

const DEUTSCHE_POST_IDENTCODE = 25

Specifies that the data should be decoded with

<b>DeutschePost Ident code</b>

barcode specification

◆ DEUTSCHE_POST_LEITCODE

const DEUTSCHE_POST_LEITCODE = 26

Specifies that the data should be decoded with

<b>DeutschePost Leit code</b>

barcode specification

◆ DOT_CODE

const DOT_CODE = 63

Specifies that the data should be decoded with

<b>DotCode</b>

blank specification

◆ DUTCH_KIX

const DUTCH_KIX = 64

Specifies that the data should be decoded with

<b>DotCode</b>

blank specification

◆ EAN_13

const EAN_13 = 9

Specifies that the data should be decoded with

<b>EAN-13</b>

barcode specification

◆ EAN_14

const EAN_14 = 10

Specifies that the data should be decoded with

<b>EAN14</b>

barcode specification

◆ EAN_8

const EAN_8 = 8

Specifies that the data should be decoded with

<b>EAN-8</b>

barcode specification

◆ GS_1_CODE_128

const GS_1_CODE_128 = 7

Specifies that the data should be decoded with

<b>GS1 CODE 128</b>

barcode specification

◆ GS_1_DATA_MATRIX

const GS_1_DATA_MATRIX = 31

Specifies that the data should be decoded with

<b>GS1DataMatrix</b>

barcode symbology

◆ GS_1_QR

const GS_1_QR = 58

Specifies that the data should be decoded with

<b>GS1 QR</b>

barcode specification

◆ IATA_2_OF_5

const IATA_2_OF_5 = 20

Specifies that the data should be decoded with

<b>IATA 2 of 5</b>

barcode specification. IATA (International Air Transport Association) uses this barcode for the management of air cargo.

◆ INTERLEAVED_2_OF_5

const INTERLEAVED_2_OF_5 = 17

Specifies that the data should be decoded with

<b>INTERLEAVED 2 of 5</b>

barcode specification

◆ ISBN

const ISBN = 15

Specifies that the data should be decoded with

<b>ISBN</b>

barcode specification

◆ ISMN

const ISMN = 48

Specifies that the data should be decoded with

<b>ISMN</b>

barcode specification

◆ ISSN

const ISSN = 47

Specifies that the data should be decoded with

<b>ISSN</b>

barcode specification

◆ ITALIAN_POST_25

const ITALIAN_POST_25 = 19

Specifies that the data should be decoded with

<b>Italian Post 25</b>

barcode specification

◆ ITF_14

const ITF_14 = 21

Specifies that the data should be decoded with

<b>ITF14</b>

barcode specification

◆ ITF_6

const ITF_6 = 22

Specifies that the data should be decoded with

<b>ITF6</b>

barcode specification

◆ MACRO_PDF_417

const MACRO_PDF_417 = 35

Specifies that the data should be decoded with

<b>MacroPdf417</b>

barcode specification

◆ MATRIX_2_OF_5

const MATRIX_2_OF_5 = 18

Specifies that the data should be decoded with

<b>Matrix 2 of 5</b>

barcode specification

◆ MAXI_CODE

const MAXI_CODE = 59

Specifies that the data should be decoded with

<b>MaxiCode</b>

barcode specification

◆ MICR_E_13_B

const MICR_E_13_B = 60

Specifies that the data should be decoded with

<b>MICR E-13B</b>

blank specification

◆ MICRO_PDF_417

const MICRO_PDF_417 = 36

Specifies that the data should be decoded with

<b>MicroPdf417</b>

barcode specification

◆ MICRO_QR

const MICRO_QR = 56

Specifies that the data should be decoded with

<b>MicroQR Code</b>

barcode specification

◆ MOST_COMMON_TYPES

const MOST_COMMON_TYPES = 69

Specifies that data will be checked with most commonly used symbologies

◆ MSI

const MSI = 23

Specifies that the data should be decoded with

<b>MSI Plessey</b>

barcode specification

◆ NONE

const NONE = -1

Unspecified decode type.

◆ ONE_CODE

const ONE_CODE = 40

Specifies that the data should be decoded with USPS

<b>OneCode</b>

barcode specification

◆ OPC

const OPC = 27

Specifies that the data should be decoded with

<b>OPC</b>

barcode specification

◆ PATCH_CODE

const PATCH_CODE = 46

Specifies that the data should be decoded with

<b>Patch code</b>

barcode specification. Barcode symbology is used for automated scanning

◆ PDF_417

const PDF_417 = 34

Specifies that the data should be decoded with

<b>Pdf417</b>

barcode symbology

◆ PHARMACODE

const PHARMACODE = 29

Specifies that the data should be decoded with

<b>Pharmacode</b>

barcode. This symbology is also known as Pharmaceutical BINARY Code

◆ PLANET

const PLANET = 39

Specifies that the data should be decoded with

<b>Planet</b>

barcode specification

◆ POSTAL_TYPES

const POSTAL_TYPES = 68

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

◆ POSTNET

const POSTNET = 38

Specifies that the data should be decoded with

<b>Postnet</b>

barcode specification

◆ PZN

const PZN = 28

Specifies that the data should be decoded with

<b>PZN</b>

barcode specification. This symbology is also known as Pharma Zentral Nummer

◆ QR

const QR = 32

Specifies that the data should be decoded with

<b>QR Code</b>

barcode specification

◆ RM_4_SCC

const RM_4_SCC = 41

Specifies that the data should be decoded with

<b>RM4SCC</b>

barcode specification. RM4SCC (Royal Mail 4-state Customer Code) is used for automated mail sort process in UK.

◆ SCC_14

const SCC_14 = 11

Specifies that the data should be decoded with

<b>SCC14</b>

barcode specification

◆ SSCC_18

const SSCC_18 = 12

Specifies that the data should be decoded with

<b>SSCC18</b>

barcode specification

◆ STANDARD_2_OF_5

const STANDARD_2_OF_5 = 16

Specifies that the data should be decoded with

<b>Standard 2 of 5</b>

barcode specification

◆ SUPPLEMENT

const SUPPLEMENT = 49

Specifies that the data should be decoded with

<b>Supplement(EAN2, EAN5)</b>

barcode specification

◆ SWISS_POST_PARCEL

const SWISS_POST_PARCEL = 51

Specifies that the data should be decoded with

<b>Swiss Post Parcel Barcode</b>

barcode specification

◆ TYPES_1D

const TYPES_1D = 67

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

◆ TYPES_2D

const TYPES_2D = 70

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

◆ UPCA

const UPCA = 13

Specifies that the data should be decoded with

<b>UPC-A</b>

barcode specification

◆ UPCE

const UPCE = 14

Specifies that the data should be decoded with

<b>UPC-E</b>

barcode specification

◆ VIN

const VIN = 24

Specifies that the data should be decoded with

<b>VIN</b>

(Vehicle Identification Number) barcode specification