Pdf417Parameters

Inheritance: java.lang.Object

public class Pdf417Parameters

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)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(01)12345678901231");
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for (BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText());

 //Encodes GS1 UCC/EAN-128 non Linked modes 903, 904 with any AI
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(241)123456789012345(241)ABCD123456789012345");
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for (BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText());

Methods

MethodDescription
equals(Object arg0)
getAspectRatio()Height/Width ratio of 2D BarCode module.
getClass()
getColumns()Columns count.
getMacroCharacters()Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
getPdf417CompactionMode()Pdf417 symbology type of BarCode’s compaction mode.
getPdf417ECIEncoding()Extended Channel Interpretation Identifiers.
getPdf417EncodeMode()Identifies Pdf417 encode mode.
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.
getPdf417MacroAddressee()MacroPdf417 barcode addressee name (optional field).
getPdf417MacroChecksum()MacroPdf417 barcode checksum (optional field).
getPdf417MacroECIEncoding()Extended Channel Interpretation Identifiers.
getPdf417MacroFileID()MacroPdf417 barcode’s file ID (Required field).
getPdf417MacroFileName()MacroPdf417 barcode file name (optional field).
getPdf417MacroFileSize()MacroPdf417 file size (optional field).
getPdf417MacroSegmentID()MacroPdf417 barcode’s segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1.
getPdf417MacroSegmentsCount()MacroPdf417 barcode segments count (optional field).
getPdf417MacroSender()MacroPdf417 barcode sender name (optional field).
getPdf417MacroTerminator()Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.
getPdf417MacroTimeStamp()MacroPdf417 barcode time stamp (optional field).
getPdf417Truncate()Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
getRows()Rows count.
hashCode()
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
isLinked()Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 \u201cLinked\u201d UCC/EAN-128 modes With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC
isReaderInitialization()Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
notify()
notifyAll()
setAspectRatio(float value)Height/Width ratio of 2D BarCode module.
setCode128Emulation(boolean 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
setColumns(int value)Columns count.
setLinked(boolean value)Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 \u201cLinked\u201d UCC/EAN-128 modes With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC
setMacroCharacters(MacroCharacter value)Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
setPdf417CompactionMode(Pdf417CompactionMode value)Pdf417 symbology type of BarCode’s compaction mode.
setPdf417ECIEncoding(int value)Extended Channel Interpretation Identifiers.
setPdf417EncodeMode(Pdf417EncodeMode pdf417EncodeMode)Identifies Pdf417 encode mode.
setPdf417ErrorLevel(Pdf417ErrorLevel 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.
setPdf417MacroAddressee(String value)MacroPdf417 barcode addressee name (optional field).
setPdf417MacroChecksum(int value)Sets macro Pdf417 barcode checksum.
setPdf417MacroECIEncoding(int value)Extended Channel Interpretation Identifiers.
setPdf417MacroFileID(int value)MacroPdf417 barcode’s file ID (Required field).
setPdf417MacroFileName(String value)MacroPdf417 barcode file name (optional field).
setPdf417MacroFileSize(int value)MacroPdf417 file size (optional field).
setPdf417MacroSegmentID(int value)MacroPdf417 barcode’s segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1.
setPdf417MacroSegmentsCount(int value)MacroPdf417 barcode segments count (optional field).
setPdf417MacroSender(String value)MacroPdf417 barcode sender name (optional field).
setPdf417MacroTerminator(Pdf417MacroTerminator value)Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.
setPdf417MacroTimeStamp(LocalDateTime value)MacroPdf417 barcode time stamp (optional field).
setPdf417MacroTimeStamp(Date value)MacroPdf417 barcode time stamp (optional field).
setPdf417Truncate(boolean value)Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
setReaderInitialization(boolean value)Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
setRows(int value)Rows count.
toString()Returns a human-readable String representation of this Pdf417Parameters .
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAspectRatio()

public float getAspectRatio()

Height/Width ratio of 2D BarCode module.

Returns: float

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColumns()

public int getColumns()

Columns count.

Returns: int

getMacroCharacters()

public MacroCharacter 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: "[)>05abcde1234"
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
 generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_05);
     BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
       for (BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText());
 //Encodes MicroPdf417 with 06 Macro the string: "[)>06abcde1234"
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
 generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_06);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText());

Returns: MacroCharacter

getPdf417CompactionMode()

public Pdf417CompactionMode getPdf417CompactionMode()

Pdf417 symbology type of BarCode’s compaction mode. Default value: Pdf417CompactionMode.AUTO.

Returns: Pdf417CompactionMode

getPdf417ECIEncoding()

public int 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.

Returns: int

getPdf417EncodeMode()

public Pdf417EncodeMode getPdf417EncodeMode()

Identifies Pdf417 encode mode. Default value: Auto.

Returns: Pdf417EncodeMode

getPdf417ErrorLevel()

public Pdf417ErrorLevel 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.

Returns: Pdf417ErrorLevel

getPdf417MacroAddressee()

public String getPdf417MacroAddressee()

MacroPdf417 barcode addressee name (optional field). MicroPDF417 barcode addressee name (optional field for Structured Append mode)

Returns: java.lang.String

getPdf417MacroChecksum()

public int getPdf417MacroChecksum()

MacroPdf417 barcode checksum (optional field). MicroPDF417 barcode checksum (optional field for Structured Append mode) The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial. x^16 + x^12 + x^5 + 1

Returns: int

getPdf417MacroECIEncoding()

public int getPdf417MacroECIEncoding()

Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.

Returns: int

getPdf417MacroFileID()

public int getPdf417MacroFileID()

MacroPdf417 barcode’s file ID (Required field). MicroPDF417 barcode’s file ID (Required field for Structured Append mode).

Returns: int

getPdf417MacroFileName()

public String getPdf417MacroFileName()

MacroPdf417 barcode file name (optional field). MicroPDF417 barcode file name (optional field for Structured Append mode)

Returns: java.lang.String

getPdf417MacroFileSize()

public int getPdf417MacroFileSize()

MacroPdf417 file size (optional field). MicroPDF417 file size (optional field for Structured Append mode) The file size field contains the size in bytes of the entire source file.

Returns: int

getPdf417MacroSegmentID()

public int getPdf417MacroSegmentID()

MacroPdf417 barcode’s segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1. MicroPDF417 barcode’s segment ID (Required field for Structured Append mode)

Returns: int

getPdf417MacroSegmentsCount()

public int getPdf417MacroSegmentsCount()

MacroPdf417 barcode segments count (optional field). MicroPDF417 barcode segments count (optional field for Structured Append mode)

Returns: int

getPdf417MacroSender()

public String getPdf417MacroSender()

MacroPdf417 barcode sender name (optional field). MicroPDF417 barcode sender name (optional field for Structured Append mode)

Returns: java.lang.String

getPdf417MacroTerminator()

public Pdf417MacroTerminator getPdf417MacroTerminator()

Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.

Returns: Pdf417MacroTerminator

getPdf417MacroTimeStamp()

public LocalDateTime getPdf417MacroTimeStamp()

MacroPdf417 barcode time stamp (optional field). MicroPDF417 barcode time stamp (optional field for Structured Append mode)

Returns: java.time.LocalDateTime

getPdf417Truncate()

public boolean getPdf417Truncate()

Whether Pdf417 symbology type of BarCode is truncated (to reduce space). Also known as CompactPDF417. Rigth row indicator and right stop pattern are removed in this mode.

Returns: boolean

getRows()

public int getRows()

Rows count.

Returns: int

hashCode()

public native int hashCode()

Returns: int

isCode128Emulation()

public boolean 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.
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "a1222322323");
 generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsCode128Emulation:" + Boolean.parseBoolean(result.getExtended().getPdf417().isCode128Emulation()));
 //Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "99", mode 909.
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "991222322323");
 generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsCode128Emulation:" + Boolean.parseBoolean(result.getExtended().getPdf417().isCode128Emulation()));
 //Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "123456789012345678");
 generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsCode128Emulation:" + result.Extended.Pdf417.IsCode128Emulation().toString());

Returns: boolean

isLinked()

public boolean isLinked()

Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 \u201cLinked\u201d 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)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(11)991231(10)ABCD");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(13)991231(21)ABCD");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 912 with date field AI 15 (Sell-by date) and AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(15)991231(10)ABCD");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(17)991231(21)ABCD");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 914 with AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(10)ABCD12345");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 915 with AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(21)ABCD12345");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked modes 906, 907 with any AI
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(240)123456789012345");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes MicroPdf417 NON EAN.UCC Linked mode 918
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "ABCDE123456789012345678");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes Pdf417 NON EAN.UCC Linked mode 918
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.PDF_417, "ABCDE123456789012345678");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));

Returns: boolean

isReaderInitialization()

public boolean isReaderInitialization()

Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAspectRatio(float value)

public void setAspectRatio(float value)

Height/Width ratio of 2D BarCode module.

Parameters:

ParameterTypeDescription
valuefloat

setCode128Emulation(boolean value)

public void setCode128Emulation(boolean 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.
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "a1222322323");
 generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(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.
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "991222322323");
 generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsCode128Emulation:" + Boolean.parseBoolean(result.getExtended().getPdf417().isCode128Emulation()));
 //Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "123456789012345678");
 generator.getParameters().getBarcode().getPdf417().setCode128Emulation(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsCode128Emulation:" + Boolean.parseBoolean(result.getExtended().getPdf417().isCode128Emulation()));

Parameters:

ParameterTypeDescription
valueboolean

setColumns(int value)

public void setColumns(int value)

Columns count.

Parameters:

ParameterTypeDescription
valueint

setLinked(boolean value)

public void setLinked(boolean value)

Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 \u201cLinked\u201d 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)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(11)991231(10)ABCD");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(13)991231(21)ABCD");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 912 with date field AI 15 (Sell-by date) and AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(15)991231(10)ABCD");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(17)991231(21)ABCD");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 914 with AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(10)ABCD12345");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked mode 915 with AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(21)ABCD12345");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes GS1 Linked modes 906, 907 with any AI
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS_1_MICRO_PDF_417, "(240)123456789012345");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes MicroPdf417 NON EAN.UCC Linked mode 918
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "ABCDE123456789012345678");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));
 //Encodes Pdf417 NON EAN.UCC Linked mode 918
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.PDF_417, "ABCDE123456789012345678");
 generator.getParameters().getBarcode().getPdf417().setLinked(true);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText() + " IsLinked:" + Boolean.parseBoolean(result.getExtended().getPdf417().isLinked()));

Parameters:

ParameterTypeDescription
valueboolean

setMacroCharacters(MacroCharacter value)

public void setMacroCharacters(MacroCharacter 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: "[)>05abcde1234"
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
 generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_05);
     BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
       for (BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText());
 //Encodes MicroPdf417 with 06 Macro the string: "[)>06abcde1234"
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MICRO_PDF_417, "abcde1234");
 generator.getParameters().getBarcode().getPdf417().setMacroCharacters(MacroCharacter.MACRO_06);
 BarCodeReader reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.MICRO_PDF_417);
     for(BarCodeResult result : reader.readBarCodes())
         System.out.println(result.getCodeText());

Parameters:

ParameterTypeDescription
valueMacroCharacter

setPdf417CompactionMode(Pdf417CompactionMode value)

public void setPdf417CompactionMode(Pdf417CompactionMode value)

Pdf417 symbology type of BarCode’s compaction mode. Default value: Pdf417CompactionMode.AUTO.

Parameters:

ParameterTypeDescription
valuePdf417CompactionMode

setPdf417ECIEncoding(int value)

public void 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.

Parameters:

ParameterTypeDescription
valueint

setPdf417EncodeMode(Pdf417EncodeMode pdf417EncodeMode)

public void setPdf417EncodeMode(Pdf417EncodeMode pdf417EncodeMode)

Identifies Pdf417 encode mode. Default value: Auto.

Parameters:

ParameterTypeDescription
pdf417EncodeModePdf417EncodeMode

setPdf417ErrorLevel(Pdf417ErrorLevel value)

public void setPdf417ErrorLevel(Pdf417ErrorLevel 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.

Parameters:

ParameterTypeDescription
valuePdf417ErrorLevel

setPdf417MacroAddressee(String value)

public void setPdf417MacroAddressee(String value)

MacroPdf417 barcode addressee name (optional field). MicroPDF417 barcode addressee name (optional field for Structured Append mode)

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPdf417MacroChecksum(int value)

public void setPdf417MacroChecksum(int value)

Sets macro Pdf417 barcode checksum.

Parameters:

ParameterTypeDescription
valueintThe checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial.

setPdf417MacroECIEncoding(int value)

public void setPdf417MacroECIEncoding(int value)

Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.

Parameters:

ParameterTypeDescription
valueint

setPdf417MacroFileID(int value)

public void setPdf417MacroFileID(int value)

MacroPdf417 barcode’s file ID (Required field). MicroPDF417 barcode’s file ID (Required field for Structured Append mode).

Parameters:

ParameterTypeDescription
valueint

setPdf417MacroFileName(String value)

public void setPdf417MacroFileName(String value)

MacroPdf417 barcode file name (optional field). MicroPDF417 barcode file name (optional field for Structured Append mode)

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPdf417MacroFileSize(int value)

public void setPdf417MacroFileSize(int value)

MacroPdf417 file size (optional field). MicroPDF417 file size (optional field for Structured Append mode) The file size field contains the size in bytes of the entire source file.

Parameters:

ParameterTypeDescription
valueint

setPdf417MacroSegmentID(int value)

public void setPdf417MacroSegmentID(int value)

MacroPdf417 barcode’s segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1. MicroPDF417 barcode’s segment ID (Required field for Structured Append mode)

Parameters:

ParameterTypeDescription
valueint

setPdf417MacroSegmentsCount(int value)

public void setPdf417MacroSegmentsCount(int value)

MacroPdf417 barcode segments count (optional field). MicroPDF417 barcode segments count (optional field for Structured Append mode)

Parameters:

ParameterTypeDescription
valueint

setPdf417MacroSender(String value)

public void setPdf417MacroSender(String value)

MacroPdf417 barcode sender name (optional field). MicroPDF417 barcode sender name (optional field for Structured Append mode)

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPdf417MacroTerminator(Pdf417MacroTerminator value)

public void setPdf417MacroTerminator(Pdf417MacroTerminator value)

Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.

Parameters:

ParameterTypeDescription
valuePdf417MacroTerminator

setPdf417MacroTimeStamp(LocalDateTime value)

public void setPdf417MacroTimeStamp(LocalDateTime value)

MacroPdf417 barcode time stamp (optional field). MicroPDF417 barcode time stamp (optional field for Structured Append mode)

Parameters:

ParameterTypeDescription
valuejava.time.LocalDateTime

setPdf417MacroTimeStamp(Date value)

public void setPdf417MacroTimeStamp(Date value)

MacroPdf417 barcode time stamp (optional field). MicroPDF417 barcode time stamp (optional field for Structured Append mode)

Parameters:

ParameterTypeDescription
valuejava.util.Date

setPdf417Truncate(boolean value)

public void setPdf417Truncate(boolean value)

Whether Pdf417 symbology type of BarCode is truncated (to reduce space). Also known as CompactPDF417. Rigth row indicator and right stop pattern are removed in this mode.

Parameters:

ParameterTypeDescription
valueboolean

setReaderInitialization(boolean value)

public void setReaderInitialization(boolean value)

Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.

Parameters:

ParameterTypeDescription
valueboolean

setRows(int value)

public void setRows(int value)

Rows count.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns a human-readable String representation of this Pdf417Parameters .

Returns: java.lang.String - A String that represents this Pdf417Parameters .

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int