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


 [C#]
 //Encodes GS1 UCC/EAN-128 non Linked mode 905 with AI 01 (GTIN)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(01)12345678901231");
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText);
 //Encodes GS1 UCC/EAN-128 non Linked modes 903, 904 with any AI
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(241)123456789012345(241)ABCD123456789012345");
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText);
 

Methods

MethodDescription
equals(Object arg0)
getAspectRatio()Height/Width ratio of 2D BarCode module.
getClass()
getColumns()Columns count.
getECIEncoding()Extended Channel Interpretation Identifiers.
getEncodeMode()Identifies Pdf417 encode mode.
getErrorLevel()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.
getMacroCharacters()Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
getMacroPdf417Addressee()MacroPdf417 barcode addressee name (optional field).
getMacroPdf417Checksum()MacroPdf417 barcode checksum (optional field).
getMacroPdf417ECIEncoding()Extended Channel Interpretation Identifiers.
getMacroPdf417FileID()MacroPdf417 barcode’s file ID (Required field).
getMacroPdf417FileName()MacroPdf417 barcode file name (optional field).
getMacroPdf417FileSize()MacroPdf417 file size (optional field).
getMacroPdf417SegmentID()MacroPdf417 barcode’s segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1.
getMacroPdf417SegmentsCount()MacroPdf417 barcode segments count (optional field).
getMacroPdf417Sender()MacroPdf417 barcode sender name (optional field).
getMacroPdf417Terminator()Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.
getMacroPdf417TimeStamp()MacroPdf417 barcode time stamp (optional field).
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.
getTruncate()Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
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.
setECIEncoding(int value)Extended Channel Interpretation Identifiers.
setEncodeMode(Pdf417EncodeMode value)Identifies Pdf417 encode mode.
setErrorLevel(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.
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.
setMacroPdf417Addressee(String value)MacroPdf417 barcode addressee name (optional field).
setMacroPdf417Checksum(int value)MacroPdf417 barcode checksum (optional field).
setMacroPdf417ECIEncoding(int value)Extended Channel Interpretation Identifiers.
setMacroPdf417FileID(int value)MacroPdf417 barcode’s file ID (Required field).
setMacroPdf417FileName(String value)MacroPdf417 barcode file name (optional field).
setMacroPdf417FileSize(int value)MacroPdf417 file size (optional field).
setMacroPdf417SegmentID(int value)MacroPdf417 barcode’s segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1.
setMacroPdf417SegmentsCount(int value)MacroPdf417 barcode segments count (optional field).
setMacroPdf417Sender(String value)MacroPdf417 barcode sender name (optional field).
setMacroPdf417Terminator(Pdf417MacroTerminator value)Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.
setMacroPdf417TimeStamp(LocalDateTime value)MacroPdf417 barcode time stamp (optional field).
setPdf417CompactionMode(Pdf417CompactionMode value)Pdf417 symbology type of BarCode’s compaction mode.
setPdf417ECIEncoding(int value)Extended Channel Interpretation Identifiers.
setPdf417EncodeMode(Pdf417EncodeMode value)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)MacroPdf417 barcode checksum (optional field).
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).
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.
setTruncate(boolean value)Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
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 final float getAspectRatio()

Height/Width ratio of 2D BarCode module.

Returns: float

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColumns()

public final int getColumns()

Columns count.

Returns: int

getECIEncoding()

public final int getECIEncoding()

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

getEncodeMode()

public final Pdf417EncodeMode getEncodeMode()

Identifies Pdf417 encode mode. Default value: Auto.

Returns: Pdf417EncodeMode

getErrorLevel()

public final Pdf417ErrorLevel getErrorLevel()

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

getMacroCharacters()

public final 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


 [C#]
 //Encodes MicroPdf417 with 05 Macro the string: "[)>05abcde1234"
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "abcde1234");
 generator.Parameters.Barcode.Pdf417.MacroCharacters = MacroCharacter.Macro05;
     using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
       foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText);
 //Encodes MicroPdf417 with 06 Macro the string: "[)>06abcde1234"
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "abcde1234");
 generator.Parameters.Barcode.Pdf417.MacroCharacters = MacroCharacter.Macro06;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText);
 

Returns: MacroCharacter

getMacroPdf417Addressee()

public final String getMacroPdf417Addressee()

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

Returns: java.lang.String

getMacroPdf417Checksum()

public final int getMacroPdf417Checksum()

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

getMacroPdf417ECIEncoding()

public final int getMacroPdf417ECIEncoding()

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

Returns: int

getMacroPdf417FileID()

public final int getMacroPdf417FileID()

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

Returns: int

getMacroPdf417FileName()

public final String getMacroPdf417FileName()

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

Returns: java.lang.String

getMacroPdf417FileSize()

public final int getMacroPdf417FileSize()

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

getMacroPdf417SegmentID()

public final int getMacroPdf417SegmentID()

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

getMacroPdf417SegmentsCount()

public final int getMacroPdf417SegmentsCount()

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

Returns: int

getMacroPdf417Sender()

public final String getMacroPdf417Sender()

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

Returns: java.lang.String

getMacroPdf417Terminator()

public final Pdf417MacroTerminator getMacroPdf417Terminator()

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

Returns: Pdf417MacroTerminator

getMacroPdf417TimeStamp()

public final LocalDateTime getMacroPdf417TimeStamp()

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

Returns: java.time.LocalDateTime

getPdf417CompactionMode()

public final Pdf417CompactionMode getPdf417CompactionMode()

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

Returns: Pdf417CompactionMode

getPdf417ECIEncoding()

public final 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 final Pdf417EncodeMode getPdf417EncodeMode()

Identifies Pdf417 encode mode. Default value: Auto.

Returns: Pdf417EncodeMode

getPdf417ErrorLevel()

public final 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 - 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()

public final String getPdf417MacroAddressee()

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

Returns: java.lang.String

getPdf417MacroChecksum()

public final 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 final int getPdf417MacroECIEncoding()

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

Returns: int

getPdf417MacroFileID()

public final int getPdf417MacroFileID()

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

Returns: int

getPdf417MacroFileName()

public final String getPdf417MacroFileName()

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

Returns: java.lang.String

getPdf417MacroFileSize()

public final 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 final 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 final int getPdf417MacroSegmentsCount()

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

Returns: int

getPdf417MacroSender()

public final String getPdf417MacroSender()

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

Returns: java.lang.String

getPdf417MacroTerminator()

public final 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 final LocalDateTime getPdf417MacroTimeStamp()

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

Returns: java.time.LocalDateTime

getPdf417Truncate()

public final 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 final int getRows()

Rows count.

Returns: int

getTruncate()

public final boolean getTruncate()

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

hashCode()

public native int hashCode()

Returns: int

isCode128Emulation()

public final 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


 [C#]
 //Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "a", mode 908.
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "a1222322323");
 generator.Parameters.Barcode.Pdf417.IsCode128Emulation = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsCode128Emulation:" + result.Extended.Pdf417.IsCode128Emulation.ToString());
 //Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "99", mode 909.
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "991222322323");
 generator.Parameters.Barcode.Pdf417.IsCode128Emulation = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsCode128Emulation:" + result.Extended.Pdf417.IsCode128Emulation.ToString());
 //Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "123456789012345678");
 generator.Parameters.Barcode.Pdf417.IsCode128Emulation = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsCode128Emulation:" + result.Extended.Pdf417.IsCode128Emulation.ToString());
 

Returns: boolean

isLinked()

public final 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


 [C#]
 //Encodes GS1 Linked mode 912 with date field AI 11 (Production date) and AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(11)991231(10)ABCD");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(13)991231(21)ABCD");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 912 with date field AI 15 (Sell-by date) and AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(15)991231(10)ABCD");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(17)991231(21)ABCD");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 914 with AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(10)ABCD12345");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 915 with AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(21)ABCD12345");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked modes 906, 907 with any AI
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(240)123456789012345");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes MicroPdf417 NON EAN.UCC Linked mode 918
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "ABCDE123456789012345678");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes Pdf417 NON EAN.UCC Linked mode 918
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Pdf417, "ABCDE123456789012345678");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.Pdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 

Returns: boolean

isReaderInitialization()

public final 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 final void setAspectRatio(float value)

Height/Width ratio of 2D BarCode module.

Parameters:

ParameterTypeDescription
valuefloat

setCode128Emulation(boolean value)

public final 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


 [C#]
 //Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "a", mode 908.
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "a1222322323");
 generator.Parameters.Barcode.Pdf417.IsCode128Emulation = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsCode128Emulation:" + result.Extended.Pdf417.IsCode128Emulation.ToString());
 //Encodes MicroPdf417 in Code 128 emulation mode with FNC1 in second position and Application Indicator "99", mode 909.
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "991222322323");
 generator.Parameters.Barcode.Pdf417.IsCode128Emulation = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsCode128Emulation:" + result.Extended.Pdf417.IsCode128Emulation.ToString());
 //Encodes MicroPdf417 in Code 128 emulation mode, modes 910, 911
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "123456789012345678");
 generator.Parameters.Barcode.Pdf417.IsCode128Emulation = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsCode128Emulation:" + result.Extended.Pdf417.IsCode128Emulation.ToString());
 

Parameters:

ParameterTypeDescription
valueboolean

setColumns(int value)

public final void setColumns(int value)

Columns count.

Parameters:

ParameterTypeDescription
valueint

setECIEncoding(int value)

public final void setECIEncoding(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

setEncodeMode(Pdf417EncodeMode value)

public final void setEncodeMode(Pdf417EncodeMode value)

Identifies Pdf417 encode mode. Default value: Auto.

Parameters:

ParameterTypeDescription
valuePdf417EncodeMode

setErrorLevel(Pdf417ErrorLevel value)

public final void setErrorLevel(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
valuePdf417ErrorLevelPdf417 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.

setLinked(boolean value)

public final 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


 [C#]
 //Encodes GS1 Linked mode 912 with date field AI 11 (Production date) and AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(11)991231(10)ABCD");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 912 with date field AI 13 (Packaging date) and AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(13)991231(21)ABCD");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 912 with date field AI 15 (Sell-by date) and AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(15)991231(10)ABCD");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 912 with date field AI 17 (Expiration date) and AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(17)991231(21)ABCD");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 914 with AI 10 (Lot number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(10)ABCD12345");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked mode 915 with AI 21 (Serial number)
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(21)ABCD12345");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes GS1 Linked modes 906, 907 with any AI
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1MicroPdf417, "(240)123456789012345");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.GS1MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes MicroPdf417 NON EAN.UCC Linked mode 918
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "ABCDE123456789012345678");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 //Encodes Pdf417 NON EAN.UCC Linked mode 918
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Pdf417, "ABCDE123456789012345678");
 generator.Parameters.Barcode.Pdf417.IsLinked = true;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.Pdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText + " IsLinked:" + result.Extended.Pdf417.IsLinked.ToString());
 

Parameters:

ParameterTypeDescription
valueboolean

setMacroCharacters(MacroCharacter value)

public final 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


 [C#]
 //Encodes MicroPdf417 with 05 Macro the string: "[)>05abcde1234"
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "abcde1234");
 generator.Parameters.Barcode.Pdf417.MacroCharacters = MacroCharacter.Macro05;
     using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
       foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText);
 //Encodes MicroPdf417 with 06 Macro the string: "[)>06abcde1234"
 BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MicroPdf417, "abcde1234");
 generator.Parameters.Barcode.Pdf417.MacroCharacters = MacroCharacter.Macro06;
 using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.MicroPdf417))
     foreach (BarCodeResult result in reader.ReadBarCodes())
         Console.WriteLine(result.CodeText);
 

Parameters:

ParameterTypeDescription
valueMacroCharacter

setMacroPdf417Addressee(String value)

public final void setMacroPdf417Addressee(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.String

setMacroPdf417Checksum(int value)

public final void setMacroPdf417Checksum(int value)

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

Parameters:

ParameterTypeDescription
valueint

setMacroPdf417ECIEncoding(int value)

public final void setMacroPdf417ECIEncoding(int value)

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

Parameters:

ParameterTypeDescription
valueint

setMacroPdf417FileID(int value)

public final void setMacroPdf417FileID(int value)

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

Parameters:

ParameterTypeDescription
valueint

setMacroPdf417FileName(String value)

public final void setMacroPdf417FileName(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.String

setMacroPdf417FileSize(int value)

public final void setMacroPdf417FileSize(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

setMacroPdf417SegmentID(int value)

public final void setMacroPdf417SegmentID(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

setMacroPdf417SegmentsCount(int value)

public final void setMacroPdf417SegmentsCount(int value)

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

Parameters:

ParameterTypeDescription
valueint

setMacroPdf417Sender(String value)

public final void setMacroPdf417Sender(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.String

setMacroPdf417Terminator(Pdf417MacroTerminator value)

public final void setMacroPdf417Terminator(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

setMacroPdf417TimeStamp(LocalDateTime value)

public final void setMacroPdf417TimeStamp(LocalDateTime value)

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

Parameters:

ParameterTypeDescription
valuejava.time.LocalDateTime

setPdf417CompactionMode(Pdf417CompactionMode value)

public final void setPdf417CompactionMode(Pdf417CompactionMode value)

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

Parameters:

ParameterTypeDescription
valuePdf417CompactionMode

setPdf417ECIEncoding(int value)

public final 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 value)

public final void setPdf417EncodeMode(Pdf417EncodeMode value)

Identifies Pdf417 encode mode. Default value: Auto.

Parameters:

ParameterTypeDescription
valuePdf417EncodeMode

setPdf417ErrorLevel(Pdf417ErrorLevel value)

public final 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
valuePdf417ErrorLevelPdf417 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)

public final 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 final void setPdf417MacroChecksum(int value)

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

Parameters:

ParameterTypeDescription
valueint

setPdf417MacroECIEncoding(int value)

public final void setPdf417MacroECIEncoding(int value)

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

Parameters:

ParameterTypeDescription
valueint

setPdf417MacroFileID(int value)

public final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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

setPdf417Truncate(boolean value)

public final 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 final 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 final void setRows(int value)

Rows count.

Parameters:

ParameterTypeDescription
valueint

setTruncate(boolean value)

public final void setTruncate(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

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