Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Inherits BaseJavaClass.
Protected Member Functions | |
init () | |
Protected Member Functions inherited from BaseJavaClass | |
setJavaClass ($javaClass) | |
PDF417 parameters. Contains PDF417, MacroPDF417, MicroPDF417 and GS1MicroPdf417 parameters. MacroPDF417 requires two fields: Pdf417MacroFileID and Pdf417MacroSegmentID. All other fields are optional. MicroPDF417 in Structured Append mode (same as MacroPDF417 mode) requires two fields: Pdf417MacroFileID and Pdf417MacroSegmentID. All other fields are optional.
These samples show how to encode UCC/EAN-128 non Linked modes in GS1MicroPdf417# Encodes GS1 UCC/EAN-128 non Linked mode 905 with AI 01 (GTIN) $generator = new BarcodeGenerator(EncodeTypes::GS_1_MICRO_PDF_417, "(01)12345678901231"); $reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417); foreach ($reader->readBarCodes() as $result) echo $result->getCodeText(); # Encodes GS1 UCC/EAN-128 non Linked modes 903, 904 with any AI $generator = new BarcodeGenerator(EncodeTypes::GS_1_MICRO_PDF_417, "(241)123456789012345(241)ABCD123456789012345"); $reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417); foreach ($reader->readBarCodes() as $result) echo $result->getCodeText();
Pdf417Parameters::getAspectRatio | ( | ) |
Height/Width ratio of 2D BarCode module.
Pdf417Parameters::getColumns | ( | ) |
Columns count.
Pdf417Parameters::getMacroCharacters | ( | ) |
Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes Default value: MacroCharacters.None.
These samples show how to encode Macro Characters in MicroPdf417# Encodes MicroPdf417 with 05 Macro the string: "[)>\u001E05\u001Dabcde1234\u001E\u0004"$generator->getParameters()->getBarcode()->getPdf417()->setMacroCharacters(MacroCharacter::MACRO_05);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText();# Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"$generator->getParameters()->getBarcode()->getPdf417()->setMacroCharacters(MacroCharacter::MACRO_06);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText());
Pdf417Parameters::getPdf417CompactionMode | ( | ) |
Pdf417 symbology type of BarCode's compaction mode. Default value: Pdf417CompactionMode::AUTO.
Pdf417Parameters::getPdf417ECIEncoding | ( | ) |
Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Not applied for Macro PDF417 text fields. Current implementation consists all well known charset encodings.
Pdf417Parameters::getPdf417EncodeMode | ( | ) |
Identifies Pdf417 encode mode. Default value: Auto.
Pdf417Parameters::getPdf417ErrorLevel | ( | ) |
Gets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.
Pdf417Parameters::getPdf417MacroAddressee | ( | ) |
Gets macro Pdf417 barcode addressee name.
Pdf417Parameters::getPdf417MacroChecksum | ( | ) |
Gets macro Pdf417 barcode checksum.
Pdf417Parameters::getPdf417MacroECIEncoding | ( | ) |
Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
Pdf417Parameters::getPdf417MacroFileID | ( | ) |
Getsmacro Pdf417 barcode's file ID. Used for MacroPdf417.
Pdf417Parameters::getPdf417MacroFileName | ( | ) |
Gets macro Pdf417 barcode file name.
Pdf417Parameters::getPdf417MacroFileSize | ( | ) |
Gets macro Pdf417 file size.
Pdf417Parameters::getPdf417MacroSegmentID | ( | ) |
Gets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
Pdf417Parameters::getPdf417MacroSegmentsCount | ( | ) |
Gets macro Pdf417 barcode segments count.
Pdf417Parameters::getPdf417MacroSender | ( | ) |
Gets macro Pdf417 barcode sender name.
Pdf417Parameters::getPdf417MacroTerminator | ( | ) |
Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.
Pdf417Parameters::getPdf417MacroTimeStamp | ( | ) |
Gets macro Pdf417 barcode time stamp.
Pdf417Parameters::getPdf417Truncate | ( | ) |
Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
Pdf417Parameters::getRows | ( | ) |
Rows count.
|
protected |
Reimplemented from BaseJavaClass.
Pdf417Parameters::isCode128Emulation | ( | ) |
Can be used only with MicroPdf417 and encodes Code 128 emulation modes Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128
These samples show how to encode Code 128 emulation modes with FNC1 in second position and without. In this way MicroPdf417 can be decoded as Code 128 barcode# Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "a", mode 908.$generator->getParameters()->getBarcode()->getPdf417()->setCode128Emulation(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsCode128Emulation:" . $result->getExtended()->getPdf417()->isCode128Emulation();# Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "99", mode 909.$generator->getParameters()->getBarcode()->getPdf417()->setCode128Emulation(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsCode128Emulation:" . $result->getExtended()->getPdf417()->isCode128Emulation();# Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911$generator->getParameters()->getBarcode()->getPdf417()->setCode128Emulation(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsCode128Emulation:" + result.Extended.Pdf417.IsCode128Emulation().toString());
Pdf417Parameters::isLinked | ( | ) |
Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC
These samples show how to encode "Linked" UCC/EAN-128 modes in GS1MicroPdf417 and Linkage Flag (918) in MicroPdf417 and Pdf417 barcodes# Encodes GS1 Linked mode 912 with date field AI 11 (Production date) and AI 10 (Lot number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 912 with date field AI 15 (Sell-by date) and AI 10 (Lot number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 914 with AI 10 (Lot number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 915 with AI 21 (Serial number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked modes 906, 907 with any AI$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes MicroPdf417 NON EAN.UCC Linked mode 918$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes Pdf417 NON EAN.UCC Linked mode 918$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();
Pdf417Parameters::isReaderInitialization | ( | ) |
Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization
Pdf417Parameters::setAspectRatio | ( | float | $value | ) |
Height/Width ratio of 2D BarCode module.
Pdf417Parameters::setCode128Emulation | ( | bool | $value | ) |
Can be used only with MicroPdf417 and encodes Code 128 emulation modes Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128
These samples show how to encode Code 128 emulation modes with FNC1 in second position and without. In this way MicroPdf417 can be decoded as Code 128 barcode# Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "a", mode 908.$generator->getParameters()->getBarcode()->getPdf417()->setCode128Emulation(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsCode128Emulation:" + result.Extended.Pdf417.IisCode128Emulation().toString());# Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "99", mode 909.$generator->getParameters()->getBarcode()->getPdf417()->setCode128Emulation(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsCode128Emulation:" . $result->getExtended()->getPdf417()->isCode128Emulation();# Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911$generator->getParameters()->getBarcode()->getPdf417()->setCode128Emulation(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsCode128Emulation:" . $result->getExtended()->getPdf417()->isCode128Emulation()));
Pdf417Parameters::setColumns | ( | int | $value | ) |
Columns count.
Pdf417Parameters::setLinked | ( | bool | $value | ) |
Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC
These samples show how to encode "Linked" UCC/EAN-128 modes in GS1MicroPdf417 and Linkage Flag (918) in MicroPdf417 and Pdf417 barcodes# Encodes GS1 Linked mode 912 with date field AI 11 (Production date) and AI 10 (Lot number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 912 with date field AI 15 (Sell-by date) and AI 10 (Lot number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 914 with AI 10 (Lot number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked mode 915 with AI 21 (Serial number)$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes GS1 Linked modes 906, 907 with any AI$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::GS_1_MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes MicroPdf417 NON EAN.UCC Linked mode 918$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();# Encodes Pdf417 NON EAN.UCC Linked mode 918$generator->getParameters()->getBarcode()->getPdf417()->setLinked(true);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText() . " IsLinked:" . $result->getExtended()->getPdf417()->isLinked();
Pdf417Parameters::setMacroCharacters | ( | int | $value | ) |
Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes Default value: MacroCharacters.None.
These samples show how to encode Macro Characters in MicroPdf417# Encodes MicroPdf417 with 05 Macro the string: "[)>\u001E05\u001Dabcde1234\u001E\u0004"$generator->getParameters()->getBarcode()->getPdf417()->setMacroCharacters(MacroCharacter::MACRO_05);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText();# Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"$generator->getParameters()->getBarcode()->getPdf417()->setMacroCharacters(MacroCharacter::MACRO_06);$reader = new BarCodeReader($generator->generateBarCodeImage(BarcodeImageFormat::PNG), null, DecodeType::MICRO_PDF_417);foreach($reader->readBarCodes() as $result)echo $result->getCodeText();
Pdf417Parameters::setPdf417CompactionMode | ( | int | $value | ) |
Pdf417 symbology type of BarCode's compaction mode. Default value: Pdf417CompactionMode::AUTO.
Pdf417Parameters::setPdf417ECIEncoding | ( | int | $value | ) |
Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Not applied for Macro PDF417 text fields. Current implementation consists all well known charset encodings.
Pdf417Parameters::setPdf417EncodeMode | ( | int | $pdf417EncodeMode | ) |
Identifies Pdf417 encode mode. Default value: Auto.
Pdf417Parameters::setPdf417ErrorLevel | ( | int | $value | ) |
Sets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.
Pdf417Parameters::setPdf417MacroAddressee | ( | string | $value | ) |
Sets macro Pdf417 barcode addressee name.
Pdf417Parameters::setPdf417MacroChecksum | ( | int | $value | ) |
Sets macro Pdf417 barcode checksum.
int | $value | The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial. |
Pdf417Parameters::setPdf417MacroECIEncoding | ( | int | $value | ) |
Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
Pdf417Parameters::setPdf417MacroFileID | ( | int | $value | ) |
Sets macro Pdf417 barcode's file ID. Used for MacroPdf417.
Pdf417Parameters::setPdf417MacroFileName | ( | string | $value | ) |
Sets macro Pdf417 barcode file name.
string | $value |
Pdf417Parameters::setPdf417MacroFileSize | ( | int | $value | ) |
Sets macro Pdf417 file size.
int | $value | The file size field contains the size in bytes of the entire source file. |
Pdf417Parameters::setPdf417MacroSegmentID | ( | int | $value | ) |
Sets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
Pdf417Parameters::setPdf417MacroSegmentsCount | ( | int | $value | ) |
Sets macro Pdf417 barcode segments count.
Pdf417Parameters::setPdf417MacroSender | ( | string | $value | ) |
Sets macro Pdf417 barcode sender name.
Pdf417Parameters::setPdf417MacroTerminator | ( | int | $value | ) |
Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.
Pdf417Parameters::setPdf417MacroTimeStamp | ( | DateTime | $value | ) |
Sets macro Pdf417 barcode time stamp.
Pdf417Parameters::setPdf417Truncate | ( | bool | $value | ) |
Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
Pdf417Parameters::setReaderInitialization | ( | bool | $value | ) |
Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization
bool | $value |
Pdf417Parameters::setRows | ( | int | $value | ) |
Rows count.
Pdf417Parameters::toString | ( | ) |
Returns a human-readable String representation of this Pdf417Parameters.