Constructor
new Pdf417Parameters()
- Source:
Examples
# Encodes GS1 UCC/EAN-128 non Linked mode 905 with AI 01 (GTIN)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(01)12345678901231");
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log( result.getCodeText());
});
# Encodes GS1 UCC/EAN-128 non Linked modes 903, 904 with any AI
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(241)123456789012345(241)ABCD123456789012345");
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log( result.getCodeText());
});
</pre>
</pre>
</p>
Methods
getAspectRatio()
- Source:
getColumns()
- Source:
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
- Source:
Examples
# Encodes MicroPdf417 with 05 Macro the string: "[)>\u001E05\u001Dabcde1234\u001E\u0004"
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_05);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log( result.getCodeText());
});
# Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_06);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText());
});
</pre>
</pre></blockquote></hr></p>
getPdf417CompactionMode()
Default value: Pdf417CompactionMode.AUTO.
- Source:
getPdf417ECIEncoding()
about the used references for encoding the data in the symbol.
Current implementation consists all well known charset encodings.
- Source:
getPdf417EncodeMode()
- Source:
getPdf417ErrorLevel()
ranging from level0 to level8, level0 means no error correction info,
level8 means best error correction which means a larger picture.
- Source:
getPdf417MacroAddressee()
- Source:
getPdf417MacroChecksum()
Returns:
Type | Description |
---|---|
The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial. |
- Source:
getPdf417MacroECIEncoding()
- Source:
getPdf417MacroFileID()
Used for MacroPdf417.
- Source:
getPdf417MacroFileName()
- Source:
getPdf417MacroFileSize()
Returns:
Type | Description |
---|---|
The file size field contains the size in bytes of the entire source file. |
- Source:
getPdf417MacroSegmentID()
- Source:
getPdf417MacroSegmentsCount()
- Source:
getPdf417MacroSender()
- Source:
getPdf417MacroTerminator()
Applied only for Macro PDF417.
- Source:
getPdf417MacroTimeStamp()
- Source:
getPdf417Truncate()
- Source:
getRows()
- Source:
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
- Source:
Examples
# Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "a", mode 908.
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "a\u001d1222322323");
generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(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.
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "99\u001d1222322323");
generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
});
# Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "123456789012345678");
generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
});
</pre>
</pre></blockquote></hr></p>
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
- Source:
Examples
# Encodes GS1 Linked mode 912 with date field AI 11 (Production date) and AI 10 (Lot number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(11)991231(10)ABCD");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(13)991231(21)ABCD");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(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)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(15)991231(10)ABCD");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(17)991231(21)ABCD");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked mode 914 with AI 10 (Lot number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(10)ABCD12345");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked mode 915 with AI 21 (Serial number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(21)ABCD12345");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked modes 906, 907 with any AI
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(240)123456789012345");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes MicroPdf417 NON EAN.UCC Linked mode 918
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "ABCDE123456789012345678");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes Pdf417 NON EAN.UCC Linked mode 918
let generator = new BarcodeGenerator(EncodeTypes.PDF_417, "ABCDE123456789012345678");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
</pre>
</pre></blockquote></hr></p>
isReaderInitialization()
as programming for reader initialization
Returns:
Type | Description |
---|---|
boolean value |
- Source:
setAspectRatio()
- Source:
setCode128Emulation()
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
- Source:
Examples
# Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "a", mode 908.
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "a\u001d1222322323");
generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(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.
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "99\u001d1222322323");
generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
});
# Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "123456789012345678");
generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsCode128Emulation:" + result.getExtended().getPdf417().isCode128Emulation());
});
</pre>
</pre></blockquote></hr></p>
setColumns()
- Source:
setLinked()
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
- Source:
Examples
# Encodes GS1 Linked mode 912 with date field AI 11 (Production date) and AI 10 (Lot number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(11)991231(10)ABCD");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(13)991231(21)ABCD");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(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)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(15)991231(10)ABCD");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(17)991231(21)ABCD");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked mode 914 with AI 10 (Lot number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(10)ABCD12345");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked mode 915 with AI 21 (Serial number)
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(21)ABCD12345");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes GS1 Linked modes 906, 907 with any AI
let generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(240)123456789012345");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.GS_1_MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes MicroPdf417 NON EAN.UCC Linked mode 918
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "ABCDE123456789012345678");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
# Encodes Pdf417 NON EAN.UCC Linked mode 918
let generator = new BarcodeGenerator(EncodeTypes.PDF_417, "ABCDE123456789012345678");
generator.getParameters().getBarcode().getPdf417().setLinked(true);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log(result.getCodeText() + " IsLinked:" + result.getExtended().getPdf417().isLinked();
});
</pre>
</pre></blockquote></hr></p>
setMacroCharacters()
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
- Source:
Examples
# Encodes MicroPdf417 with 05 Macro the string: "[)>\u001E05\u001Dabcde1234\u001E\u0004"
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_05);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log( result.getCodeText());
});
# Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"
let generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_06);
let reader = new BarCodeReader(generator.generateBarCodeImage(BarcodeImageFormat.PNG), null, DecodeType.MICRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log( result.getCodeText());
});
</pre>
</pre></blockquote></hr></p>
setPdf417CompactionMode()
Default value: Pdf417CompactionMode.AUTO.
- Source:
setPdf417ECIEncoding()
about the used references for encoding the data in the symbol.
Current implementation consists all well known charset encodings.
- Source:
setPdf417EncodeMode()
- Source:
setPdf417ErrorLevel()
ranging from level0 to level8, level0 means no error correction info,
level8 means best error correction which means a larger picture.
- Source:
setPdf417MacroAddressee()
- Source:
setPdf417MacroChecksum(value)
Parameters:
Name | Type | Description |
---|---|---|
value |
The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial. |
- Source:
setPdf417MacroECIEncoding()
- Source:
setPdf417MacroFileID()
Used for MacroPdf417.
- Source:
setPdf417MacroFileName()
- Source:
setPdf417MacroFileSize(value)
Parameters:
Name | Type | Description |
---|---|---|
value |
The file size field contains the size in bytes of the entire source file. |
- Source:
setPdf417MacroSegmentID()
- Source:
setPdf417MacroSegmentsCount()
- Source:
setPdf417MacroSender()
- Source:
setPdf417MacroTerminator()
Applied only for Macro PDF417.
- Source:
setPdf417MacroTimeStamp()
- Source:
setPdf417Truncate()
- Source:
setReaderInitialization(value)
as programming for reader initialization
Parameters:
Name | Type | Description |
---|---|---|
value |
- Source:
setRows()
- Source:
toString()
Returns:
Type | Description |
---|---|
A string that represents this Pdf417Parameters. |
- Source: