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);
-
Method Summary
Modifier and TypeMethodDescriptionfinal floatHeight/Width ratio of 2D BarCode module.final intColumns count.final intExtended Channel Interpretation Identifiers.final Pdf417EncodeModeIdentifies Pdf417 encode mode.final Pdf417ErrorLevelGets 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.final MacroCharacterMacro Characters 05 and 06 values are used to obtain more compact encoding in special modes.final StringMacroPdf417 barcode addressee name (optional field).final intMacroPdf417 barcode checksum (optional field).final intExtended Channel Interpretation Identifiers.final intMacroPdf417 barcode's file ID (Required field).final StringMacroPdf417 barcode file name (optional field).final intMacroPdf417 file size (optional field).final intMacroPdf417 barcode's segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1.final intMacroPdf417 barcode segments count (optional field).final StringMacroPdf417 barcode sender name (optional field).final Pdf417MacroTerminatorUsed to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.final LocalDateTimeMacroPdf417 barcode time stamp (optional field).final Pdf417CompactionModeDeprecated.This property is obsolete and will be removed in future releases.final intDeprecated.Use ECIEncoding insteadfinal Pdf417EncodeModeDeprecated.Use EncodeMode insteadfinal Pdf417ErrorLevelDeprecated.Use ErrorLevel insteadfinal StringDeprecated.Use MacroPdf417Addressee insteadfinal intDeprecated.Use MacroPdf417Checksum insteadfinal intDeprecated.Use MacroPdf417ECIEncoding insteadfinal intDeprecated.Use MacroPdf417FileID insteadfinal StringDeprecated.Use MacroPdf417FileName insteadfinal intDeprecated.Use MacroPdf417FileSize insteadfinal intDeprecated.Use MacroPdf417SegmentID insteadfinal intDeprecated.Use MacroPdf417SegmentsCount insteadfinal StringDeprecated.Use MacroPdf417Sender insteadfinal Pdf417MacroTerminatorDeprecated.Use MacroPdf417Terminator insteadfinal LocalDateTimeDeprecated.Use MacroPdf417TimeStamp insteadfinal booleanDeprecated.Use Truncate insteadfinal intgetRows()Rows count.final booleanWhether Pdf417 symbology type of BarCode is truncated (to reduce space).final booleanCan 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 128final booleanisLinked()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.UCCfinal booleanUsed to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.final voidsetAspectRatio(float value) Height/Width ratio of 2D BarCode module.final voidsetCode128Emulation(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 128final voidsetColumns(int value) Columns count.final voidsetECIEncoding(int value) Extended Channel Interpretation Identifiers.final voidsetEncodeMode(Pdf417EncodeMode value) Identifies Pdf417 encode mode.final voidsetErrorLevel(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.final voidsetLinked(boolean value) Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCCfinal voidsetMacroCharacters(MacroCharacter value) Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.final voidsetMacroPdf417Addressee(String value) MacroPdf417 barcode addressee name (optional field).final voidsetMacroPdf417Checksum(int value) MacroPdf417 barcode checksum (optional field).final voidsetMacroPdf417ECIEncoding(int value) Extended Channel Interpretation Identifiers.final voidsetMacroPdf417FileID(int value) MacroPdf417 barcode's file ID (Required field).final voidsetMacroPdf417FileName(String value) MacroPdf417 barcode file name (optional field).final voidsetMacroPdf417FileSize(int value) MacroPdf417 file size (optional field).final voidsetMacroPdf417SegmentID(int value) MacroPdf417 barcode's segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1.final voidsetMacroPdf417SegmentsCount(int value) MacroPdf417 barcode segments count (optional field).final voidsetMacroPdf417Sender(String value) MacroPdf417 barcode sender name (optional field).final voidUsed to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.final voidMacroPdf417 barcode time stamp (optional field).final voidDeprecated.This property is obsolete and will be removed in future releases.final voidsetPdf417ECIEncoding(int value) Deprecated.Use ECIEncoding insteadfinal voidDeprecated.Use EncodeMode insteadfinal voidDeprecated.Use ErrorLevel insteadfinal voidsetPdf417MacroAddressee(String value) Deprecated.Use MacroPdf417Addressee insteadfinal voidsetPdf417MacroChecksum(int value) Deprecated.Use MacroPdf417Checksum insteadfinal voidsetPdf417MacroECIEncoding(int value) Deprecated.Use MacroPdf417ECIEncoding insteadfinal voidsetPdf417MacroFileID(int value) Deprecated.Use MacroPdf417FileID insteadfinal voidsetPdf417MacroFileName(String value) Deprecated.Use MacroPdf417FileName insteadfinal voidsetPdf417MacroFileSize(int value) Deprecated.Use MacroPdf417FileSize insteadfinal voidsetPdf417MacroSegmentID(int value) Deprecated.Use MacroPdf417SegmentID insteadfinal voidsetPdf417MacroSegmentsCount(int value) Deprecated.Use MacroPdf417SegmentsCount insteadfinal voidsetPdf417MacroSender(String value) Deprecated.Use MacroPdf417Sender insteadfinal voidDeprecated.Use MacroPdf417Terminator insteadfinal voidDeprecated.Use MacroPdf417TimeStamp insteadfinal voidsetPdf417Truncate(boolean value) Deprecated.Use Truncate insteadfinal voidsetReaderInitialization(boolean value) Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.final voidsetRows(int value) Rows count.final voidsetTruncate(boolean value) Whether Pdf417 symbology type of BarCode is truncated (to reduce space).toString()Returns a human-readable string representation of thisPdf417Parameters.
-
Method Details
-
getPdf417CompactionMode
Deprecated.This property is obsolete and will be removed in future releases. Instead, use the Pdf417EncodeMode property.Pdf417 symbology type of BarCode's compaction mode. Default value: Pdf417CompactionMode.Auto.
-
setPdf417CompactionMode
Deprecated.This property is obsolete and will be removed in future releases. Instead, use the Pdf417EncodeMode property.Pdf417 symbology type of BarCode's compaction mode. Default value: Pdf417CompactionMode.Auto.
-
getEncodeMode
Identifies Pdf417 encode mode. Default value: Auto.
-
setEncodeMode
Identifies Pdf417 encode mode. Default value: Auto.
-
getPdf417EncodeMode
Deprecated.Use EncodeMode insteadIdentifies Pdf417 encode mode. Default value: Auto.
-
setPdf417EncodeMode
Deprecated.Use EncodeMode insteadIdentifies Pdf417 encode mode. Default value: Auto.
-
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:
- 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.
-
setErrorLevel
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:
value- 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.
-
getPdf417ErrorLevel
Deprecated.Use ErrorLevel insteadGets 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:
- 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.
-
setPdf417ErrorLevel
Deprecated.Use ErrorLevel insteadSets 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:
value- 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.
-
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.
-
setTruncate
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.
-
getPdf417Truncate
Deprecated.Use Truncate insteadWhether 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.
-
setPdf417Truncate
Deprecated.Use Truncate insteadWhether 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.
-
getColumns
public final int getColumns()Columns count.
-
setColumns
public final void setColumns(int value) Columns count.
-
getRows
public final int getRows()Rows count.
-
setRows
public final void setRows(int value) Rows count.
-
getAspectRatio
public final float getAspectRatio()Height/Width ratio of 2D BarCode module.
-
setAspectRatio
public final void setAspectRatio(float value) Height/Width ratio of 2D BarCode module.
-
getMacroPdf417FileID
public final int getMacroPdf417FileID()MacroPdf417 barcode's file ID (Required field). MicroPDF417 barcode's file ID (Required field for Structured Append mode)
-
setMacroPdf417FileID
public final void setMacroPdf417FileID(int value) MacroPdf417 barcode's file ID (Required field). MicroPDF417 barcode's file ID (Required field for Structured Append mode)
-
getPdf417MacroFileID
Deprecated.Use MacroPdf417FileID insteadMacroPdf417 barcode's file ID (Required field). MicroPDF417 barcode's file ID (Required field for Structured Append mode)
-
setPdf417MacroFileID
Deprecated.Use MacroPdf417FileID insteadMacroPdf417 barcode's file ID (Required field). MicroPDF417 barcode's file ID (Required field for Structured Append mode)
-
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)
-
setMacroPdf417SegmentID
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)
-
getPdf417MacroSegmentID
Deprecated.Use MacroPdf417SegmentID insteadMacroPdf417 barcode's segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1. MicroPDF417 barcode's segment ID (Required field for Structured Append mode)
-
setPdf417MacroSegmentID
Deprecated.Use MacroPdf417SegmentID insteadMacroPdf417 barcode's segment ID (Required field), which starts from 0, to MacroSegmentsCount - 1. MicroPDF417 barcode's segment ID (Required field for Structured Append mode)
-
getMacroPdf417SegmentsCount
public final int getMacroPdf417SegmentsCount()MacroPdf417 barcode segments count (optional field). MicroPDF417 barcode segments count (optional field for Structured Append mode)
-
setMacroPdf417SegmentsCount
public final void setMacroPdf417SegmentsCount(int value) MacroPdf417 barcode segments count (optional field). MicroPDF417 barcode segments count (optional field for Structured Append mode)
-
getPdf417MacroSegmentsCount
Deprecated.Use MacroPdf417SegmentsCount insteadMacroPdf417 barcode segments count (optional field). MicroPDF417 barcode segments count (optional field for Structured Append mode)
-
setPdf417MacroSegmentsCount
Deprecated.Use MacroPdf417SegmentsCount insteadMacroPdf417 barcode segments count (optional field). MicroPDF417 barcode segments count (optional field for Structured Append mode)
-
getMacroPdf417FileName
MacroPdf417 barcode file name (optional field). MicroPDF417 barcode file name (optional field for Structured Append mode)
-
setMacroPdf417FileName
MacroPdf417 barcode file name (optional field). MicroPDF417 barcode file name (optional field for Structured Append mode)
-
getPdf417MacroFileName
Deprecated.Use MacroPdf417FileName insteadMacroPdf417 barcode file name (optional field). MicroPDF417 barcode file name (optional field for Structured Append mode)
-
setPdf417MacroFileName
Deprecated.Use MacroPdf417FileName insteadMacroPdf417 barcode file name (optional field). MicroPDF417 barcode file name (optional field for Structured Append mode)
-
getMacroPdf417TimeStamp
MacroPdf417 barcode time stamp (optional field). MicroPDF417 barcode time stamp (optional field for Structured Append mode)
-
setMacroPdf417TimeStamp
MacroPdf417 barcode time stamp (optional field). MicroPDF417 barcode time stamp (optional field for Structured Append mode)
-
getPdf417MacroTimeStamp
Deprecated.Use MacroPdf417TimeStamp insteadMacroPdf417 barcode time stamp (optional field). MicroPDF417 barcode time stamp (optional field for Structured Append mode)
-
setPdf417MacroTimeStamp
Deprecated.Use MacroPdf417TimeStamp insteadMacroPdf417 barcode time stamp (optional field). MicroPDF417 barcode time stamp (optional field for Structured Append mode)
-
getMacroPdf417Sender
MacroPdf417 barcode sender name (optional field). MicroPDF417 barcode sender name (optional field for Structured Append mode)
-
setMacroPdf417Sender
MacroPdf417 barcode sender name (optional field). MicroPDF417 barcode sender name (optional field for Structured Append mode)
-
getPdf417MacroSender
Deprecated.Use MacroPdf417Sender insteadMacroPdf417 barcode sender name (optional field). MicroPDF417 barcode sender name (optional field for Structured Append mode)
-
setPdf417MacroSender
Deprecated.Use MacroPdf417Sender insteadMacroPdf417 barcode sender name (optional field). MicroPDF417 barcode sender name (optional field for Structured Append mode)
-
getMacroPdf417Addressee
MacroPdf417 barcode addressee name (optional field). MicroPDF417 barcode addressee name (optional field for Structured Append mode)
-
setMacroPdf417Addressee
MacroPdf417 barcode addressee name (optional field). MicroPDF417 barcode addressee name (optional field for Structured Append mode)
-
getPdf417MacroAddressee
Deprecated.Use MacroPdf417Addressee insteadMacroPdf417 barcode addressee name (optional field). MicroPDF417 barcode addressee name (optional field for Structured Append mode)
-
setPdf417MacroAddressee
Deprecated.Use MacroPdf417Addressee insteadMacroPdf417 barcode addressee name (optional field). MicroPDF417 barcode addressee name (optional field for Structured Append mode)
-
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.
-
setMacroPdf417FileSize
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.
-
getPdf417MacroFileSize
Deprecated.Use MacroPdf417FileSize insteadMacroPdf417 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.
-
setPdf417MacroFileSize
Deprecated.Use MacroPdf417FileSize insteadMacroPdf417 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.
-
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
-
setMacroPdf417Checksum
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
-
getPdf417MacroChecksum
Deprecated.Use MacroPdf417Checksum insteadMacroPdf417 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
-
setPdf417MacroChecksum
Deprecated.Use MacroPdf417Checksum insteadMacroPdf417 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
-
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.
-
setECIEncoding
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.
-
getPdf417ECIEncoding
Deprecated.Use ECIEncoding insteadExtended 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.
-
setPdf417ECIEncoding
Deprecated.Use ECIEncoding insteadExtended 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.
-
getMacroPdf417ECIEncoding
public final int getMacroPdf417ECIEncoding()Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
-
setMacroPdf417ECIEncoding
public final void setMacroPdf417ECIEncoding(int value) Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
-
getPdf417MacroECIEncoding
Deprecated.Use MacroPdf417ECIEncoding insteadExtended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
-
setPdf417MacroECIEncoding
Deprecated.Use MacroPdf417ECIEncoding insteadExtended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
-
getMacroPdf417Terminator
Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.
-
setMacroPdf417Terminator
Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.
-
getPdf417MacroTerminator
Deprecated.Use MacroPdf417Terminator insteadUsed to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.
-
setPdf417MacroTerminator
Deprecated.Use MacroPdf417Terminator insteadUsed to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.
-
isReaderInitialization
public final boolean isReaderInitialization()Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
-
setReaderInitialization
public final void setReaderInitialization(boolean value) Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
-
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); -
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
[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); -
isLinked
public final boolean 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
[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()); -
setLinked
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 “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
[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()); -
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()); -
setCode128Emulation
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()); -
toString
Returns a human-readable string representation of this
Pdf417Parameters.- Overrides:
toStringin classObject- Returns:
- A string that represents this
Pdf417Parameters.
-