aspose.barcode 24.4.0 → 24.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Generation.js CHANGED
@@ -128,11 +128,22 @@ class BarcodeGenerator extends joint.BaseJavaClass
128
128
  }
129
129
 
130
130
  /**
131
- * Text to be encoded.
131
+ * <p>
132
+ * Encodes codetext with byte order mark (BOM) using specified encoding.
133
+ * </p>
134
+ * @param codeText CodeText string | Bytes of codetext
135
+ * @param encoding Applied encoding
132
136
  */
133
- setCodeText(value)
137
+ setCodeText(codeText, encoding)
134
138
  {
135
- this.getJavaClass().setCodeTextSync(value);
139
+ if(Array.isArray(codeText))
140
+ {
141
+ this.getJavaClass().setCodeBytesSync(Buffer.from(codeText));
142
+ }
143
+ else
144
+ {
145
+ this.getJavaClass().setCodeTextSync(codeText, encoding);
146
+ }
136
147
  }
137
148
 
138
149
  /**
@@ -739,9 +750,14 @@ class BaseGenerationParameters extends joint.BaseJavaClass
739
750
  * Background color of the barcode image.<br>
740
751
  * Default value: #FFFFFF<br>
741
752
  */
742
- setBackColor(hexValue)
753
+ setBackColor(colorValue)
743
754
  {
744
- this.getJavaClass().setBackColorSync((parseInt(hexValue.substr(1), 16) << 8) / 256);
755
+ let hexValue = colorValue.substring(1, colorValue.length)
756
+ if(!(/^[0-9A-Fa-f]+$/.test(hexValue)))
757
+ {
758
+ throw new joint.BarcodeException("Illegal color value: " + hexValue);
759
+ }
760
+ this.getJavaClass().setBackColorSync((parseInt(hexValue, 16) << 8) / 256);
745
761
  }
746
762
 
747
763
  /**
@@ -859,7 +875,7 @@ class BaseGenerationParameters extends joint.BaseJavaClass
859
875
  */
860
876
  setAutoSizeMode(value)
861
877
  {
862
- this.getJavaClass().setAutoSizeModeSync(value + "");
878
+ this.getJavaClass().setAutoSizeModeSync(value);
863
879
  }
864
880
 
865
881
 
@@ -2133,24 +2149,6 @@ class DataMatrixParameters extends joint.BaseJavaClass
2133
2149
  this.getJavaClass().setAspectRatioSync(java.newFloat(value));
2134
2150
  }
2135
2151
 
2136
- /**
2137
- * Gets the encoding of codetext.<br>
2138
- * Default value: UTF-16
2139
- */
2140
- getCodeTextEncoding()
2141
- {
2142
- return this.getJavaClass().getCodeTextEncodingSync();
2143
- }
2144
-
2145
- /**
2146
- * Sets the encoding of codetext.<br>
2147
- * Default value: UTF-16
2148
- */
2149
- setCodeTextEncoding(value)
2150
- {
2151
- this.getJavaClass().setCodeTextEncodingSync(value);
2152
- }
2153
-
2154
2152
  /**
2155
2153
  * <p>
2156
2154
  * Gets ECI encoding. Used when DataMatrixEncodeMode is Auto.
@@ -2839,24 +2837,6 @@ class QrParameters extends joint.BaseJavaClass
2839
2837
  this.getJavaClass().setAspectRatioSync(java.newFloat(value));
2840
2838
  }
2841
2839
 
2842
- /**
2843
- * Gets the encoding of codetext.<br>
2844
- * Default value: UTF-8
2845
- */
2846
- getCodeTextEncoding()
2847
- {
2848
- return this.getJavaClass().getCodeTextEncodingSync();
2849
- }
2850
-
2851
- /**
2852
- * Sets the encoding of codetext.<br>
2853
- * Default value: UTF-8
2854
- */
2855
- setCodeTextEncoding(value)
2856
- {
2857
- this.getJavaClass().setCodeTextEncodingSync(value);
2858
- }
2859
-
2860
2840
  /**
2861
2841
  * Returns a human-readable string representation of this QrParameters.<br>
2862
2842
  * @return A string that represents this QrParameters.
@@ -2928,6 +2908,24 @@ class Pdf417Parameters extends joint.BaseJavaClass
2928
2908
  this.getJavaClass().setPdf417CompactionModeSync(value);
2929
2909
  }
2930
2910
 
2911
+ /**
2912
+ * Identifies Pdf417 encode mode.
2913
+ * Default value: Auto.
2914
+ */
2915
+ getPdf417EncodeMode()
2916
+ {
2917
+ return this.getJavaClass().getPdf417EncodeModeSync();
2918
+ }
2919
+
2920
+ /**
2921
+ * Identifies Pdf417 encode mode.
2922
+ * Default value: Auto.
2923
+ */
2924
+ setPdf417EncodeMode(pdf417EncodeMode)
2925
+ {
2926
+ this.getJavaClass().setPdf417EncodeModeSync(pdf417EncodeMode);
2927
+ }
2928
+
2931
2929
  /**
2932
2930
  * Gets Pdf417 symbology type of BarCode's error correction level<br>
2933
2931
  * ranging from level0 to level8, level0 means no error correction info,<br>
@@ -3162,24 +3160,6 @@ class Pdf417Parameters extends joint.BaseJavaClass
3162
3160
  this.getJavaClass().setPdf417MacroChecksumSync(value);
3163
3161
  }
3164
3162
 
3165
- /**
3166
- * Gets the encoding of codetext.<br>
3167
- * Default value: UTF-8
3168
- */
3169
- getCodeTextEncoding()
3170
- {
3171
- return this.getJavaClass().getCodeTextEncodingSync();
3172
- }
3173
-
3174
- /**
3175
- * Sets the encoding of codetext.<br>
3176
- * Default value: UTF-8
3177
- */
3178
- setCodeTextEncoding(value)
3179
- {
3180
- this.getJavaClass().setCodeTextEncodingSync(value);
3181
- }
3182
-
3183
3163
  /**
3184
3164
  * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details<br>
3185
3165
  * about the used references for encoding the data in the symbol.<br>
@@ -4053,30 +4033,6 @@ class AztecParameters extends joint.BaseJavaClass
4053
4033
  this.getJavaClass().setAspectRatioSync(java.newFloat(value));
4054
4034
  }
4055
4035
 
4056
- /**
4057
- * <p>
4058
- * Gets the encoding of codetext.
4059
- * Default value: UTF-8
4060
- * </p>
4061
- */
4062
- getCodeTextEncoding()
4063
- {
4064
- console.log('This function is deprecated.');
4065
- return this.getJavaClass().getCodeTextEncodingSync();
4066
- }
4067
-
4068
- /**
4069
- * <p>
4070
- * Sets the encoding of codetext.
4071
- * Default value: UTF-8
4072
- * </p>
4073
- */
4074
- setCodeTextEncoding(codeTextEncoding)
4075
- {
4076
- console.log('This function is deprecated.');
4077
- this.getJavaClass().setCodeTextEncodingSync(codeTextEncoding);
4078
- }
4079
-
4080
4036
  /**
4081
4037
  * <p>
4082
4038
  * Returns a human-readable string representation of this {@code AztecParameters}.
@@ -5296,14 +5252,45 @@ CodabarSymbol =
5296
5252
  D: 68,
5297
5253
  };
5298
5254
 
5255
+
5299
5256
  /**
5300
- * DataMatrix encoder's encoding mode, default to AUTO
5301
- * @enum
5257
+ * <p>
5258
+ * DataMatrix encoder's encoding mode, default to Auto
5259
+ * </p><p><hr><blockquote><pre>
5260
+ * This sample shows how to do codetext in Extended Mode.
5261
+ * <pre>
5262
+ * //Auto mode
5263
+ * let codetext = "犬Right狗";
5264
+ * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, codetext);
5265
+ * generator.getParameters().getBarcode().getDataMatrix().setECIEncoding(ECIEncodings.UTF8);
5266
+ * generator.save("test.bmp", BarcodeImageFormat.PNG);
5267
+ * //Bytes mode
5268
+ * let encodedArr = [ 0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9 ];
5269
+ * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, encodedArr);
5270
+ * generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.BINARY);
5271
+ * generator.save("test.bmp", BarcodeImageFormat.PNG);
5272
+ * //Extended codetext mode
5273
+ * //create codetext
5274
+ * let codetextBuilder=new DataMatrixExtCodetextBuilder();
5275
+ * codetextBuilder.addECICodetextWithEncodeMode(ECIEncodings.Win1251,DataMatrixEncodeMode.BYTES,"World");
5276
+ * codetextBuilder.addPlainCodetext("Will");
5277
+ * codetextBuilder.addECICodetext(ECIEncodings.UTF8,"犬Right狗");
5278
+ * codetextBuilder.addCodetextWithEncodeMode(DataMatrixEncodeMode.C40,"ABCDE");
5279
+ * //generate codetext
5280
+ * let codetext=codetextBuilder.getExtended();
5281
+ * //generate
5282
+ * let generator=new BarcodeGenerator(EncodeTypes.DATA_MATRIX,codetext);
5283
+ * generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT);
5284
+ * generator.save("test.bmp", BarcodeImageFormat.PNG);
5285
+ * </pre>
5286
+ * </pre></blockquote></hr></p>
5302
5287
  */
5303
5288
  DataMatrixEncodeMode =
5304
5289
  {
5305
5290
  /**
5306
- * Automatically pick up the best encode mode for datamatrix encoding
5291
+ * In Auto mode, the CodeText is encoded with maximum data compactness.
5292
+ * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
5293
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
5307
5294
  */
5308
5295
  AUTO: 0,
5309
5296
 
@@ -5314,6 +5301,7 @@ DataMatrixEncodeMode =
5314
5301
 
5315
5302
  /**
5316
5303
  * Encode 8 bit values
5304
+ * @deprecated This property is obsolete and will be removed in future releases. Instead, use Base256 option.
5317
5305
  */
5318
5306
  BYTES: 6,
5319
5307
 
@@ -5323,7 +5311,7 @@ DataMatrixEncodeMode =
5323
5311
  C40: 8,
5324
5312
 
5325
5313
  /**
5326
- * UUses TEXT encoding. Encodes Lower-case alphanumeric, Upper case and special characters
5314
+ * Uses Text encoding. Encodes Lower-case alphanumeric, Upper case and special characters
5327
5315
  */
5328
5316
  TEXT: 9,
5329
5317
 
@@ -5338,21 +5326,52 @@ DataMatrixEncodeMode =
5338
5326
  ANSIX12: 11,
5339
5327
 
5340
5328
  /**
5341
- * ExtendedCodetext mode allows to manually switch encodation schemes in codetext.<br>
5342
- * Allowed encodation schemes are: EDIFACT, ANSIX12, ASCII, C40, Text, Auto.<br>
5343
- * Extended codetext example: @"\ansix12:ANSIX12TEXT\ascii:backslash must be \\ doubled\edifact:EdifactEncodedText"<br>
5344
- * All backslashes (\) must be doubled in text.<br>
5329
+ * ExtendedCodetext mode allows to manually switch encodation schemes and ECI encodings in codetext.
5330
+ * It is better to use DataMatrixExtCodetextBuilder for extended codetext generation.
5331
+ * Use Display2DText property to set visible text to removing managing characters.
5332
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
5333
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
5345
5334
  *
5346
- * @example
5347
- * //This sample shows how to do codetext in Extended Mode.
5335
+ * Encodation schemes are set in the next format : "\Encodation_scheme_name:text\Encodation_scheme_name:text".
5336
+ * Allowed encodation schemes are: EDIFACT, ANSIX12, ASCII, C40, Text, Auto.
5348
5337
  *
5349
- * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
5350
- * generator.setCodeText("\\ansix12:ANSIX12TEXT\\ascii:backslash must be \\\\ doubled\\edifact:EdifactEncodedText");
5351
- * generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT);
5352
- * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
5353
- * generator.save("test.png", BarcodeImageFormat.PNG);
5338
+ * All backslashes (\) must be doubled in text.
5339
+ *
5340
+ * @deprecated This property is obsolete and will be removed in future releases. Instead, use the 'Extended' encode mode
5341
+ */
5342
+ EXTENDED_CODETEXT: 12,
5343
+
5344
+ /**
5345
+ * ExtendedCodetext mode allows to manually switch encodation schemes and ECI encodings in codetext.
5346
+ * It is better to use DataMatrixExtCodetextBuilder for extended codetext generation.
5347
+ * Use Display2DText property to set visible text to removing managing characters.
5348
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
5349
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
5350
+ *
5351
+ * Encodation schemes are set in the next format : "\Encodation_scheme_name:text\Encodation_scheme_name:text".
5352
+ * Allowed encodation schemes are: EDIFACT, ANSIX12, ASCII, C40, Text, Auto.
5353
+ *
5354
+ * All backslashes (\) must be doubled in text.
5355
+ */
5356
+ EXTENDED: 13,
5357
+
5358
+ /**
5359
+ * Encode 8 bit values
5360
+ */
5361
+ BASE_256: 14,
5362
+
5363
+ /**
5364
+ * In Binary mode, the CodeText is encoded with maximum data compactness.
5365
+ * If a Unicode character is found, an exception is thrown.
5354
5366
  */
5355
- EXTENDED_CODETEXT: 12
5367
+ BINARY: 15,
5368
+
5369
+ /**
5370
+ * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
5371
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
5372
+ * Please note that some old (pre 2006) scanners may not support this mode.
5373
+ */
5374
+ ECI: 16
5356
5375
  };
5357
5376
 
5358
5377
  /**
@@ -5413,56 +5432,64 @@ ITF14BorderType =
5413
5432
  };
5414
5433
 
5415
5434
  /**
5416
- * Encoding mode for QR barcodes. It is recommended to Use AUTO with CodeTextEncoding = Encoding.UTF8 for latin symbols or digits and UTF_8_BOM for unicode symbols.
5417
- * @example
5418
- * //Example how to use ECI encoding
5419
- * let generator = new BarcodeGenerator(EncodeTypes.QR);
5420
- * generator.setCodeText("12345TEXT");
5421
- * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.ECI_ENCODING);
5422
- * generator.getParameters().getBarcode().getQR().setQrEncodeType(QREncodeType.FORCE_QR);
5423
- * generator.getParameters().getBarcode().getQR().setQrECIEncoding(ECIEncodings.UTF8);
5424
- * generator.save("test.png", BarcodeImageFormat.PNG);
5435
+ * <p>
5436
+ * Encoding mode for QR barcodes.
5437
+ * </p>
5438
+ * <p><hr><blockquote><pre>
5439
+ * Example how to use ECI encoding
5440
+ * <pre>
5441
+ * generator = new BarcodeGenerator(EncodeTypes.QR, "12345TEXT");
5442
+ * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.ECI_ENCODING);
5443
+ * generator.getParameters().getBarcode().getQR().setQrECIEncoding(ECIEncodings.UTF8);
5444
+ * generator.save("test.png", BarcodeImageFormat.PNG);
5445
+ * </pre>
5446
+ * </pre></blockquote></hr></p>
5447
+ * <p><hr><blockquote><pre>
5448
+ * Example how to use FNC1 first position in Extended Mode
5449
+ * <pre>
5450
+ * textBuilder = new QrExtCodetextBuilder();
5451
+ * textBuilder.addPlainCodetext("000%89%%0");
5452
+ * textBuilder.addFNC1GroupSeparator();
5453
+ * textBuilder.addPlainCodetext("12345&lt;FNC1&gt;");
5454
+ * //generate barcode
5455
+ * generator = new BarcodeGenerator(EncodeTypes.QR);
5456
+ * generator.setCodeText(textBuilder.getExtended());
5457
+ * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.EXTENDED_CODETEXT);
5458
+ * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
5459
+ * generator.save("d:/test.png", BarcodeImageFormat.PNG);
5460
+ * </pre>
5425
5461
  *
5426
- * @example
5427
- * //Example how to use FNC1 first position in Extended Mode
5428
- * QrExtCodetextBuilder textBuilder = new QrExtCodetextBuilder();
5429
- * textBuilder.addPlainCodetext("000%89%%0");
5430
- * textBuilder.addFNC1GroupSeparator();
5431
- * textBuilder.addPlainCodetext("12345&lt;FNC1&gt;");
5432
- * //generate barcode
5433
- * let generator = new BarcodeGenerator(EncodeTypes.QR);
5434
- * generator.setCodeText(textBuilder.getExtendedCodetext());
5435
- * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.EXTENDED_CODETEXT);
5436
- * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
5437
- * generator.save("d:/test.png", BarcodeImageFormat.PNG);
5462
+ * This sample shows how to use FNC1 second position in Extended Mode.
5463
+ * <pre>
5438
5464
  *
5439
- * @example
5440
- * // This sample shows how to use FNC1 second position in Extended Mode.
5441
5465
  * //create codetext
5442
- * QrExtCodetextBuilder textBuilder = new QrExtCodetextBuilder();
5466
+ * textBuilder = new QrExtCodetextBuilder();
5443
5467
  * textBuilder.addFNC1SecondPosition("12");
5444
5468
  * textBuilder.addPlainCodetext("TRUE3456");
5445
5469
  * //generate barcode
5446
- * let generator = new BarcodeGenerator(EncodeTypes.QR);
5447
- * generator.setCodeText(textBuilder.getExtendedCodetext());
5470
+ * generator = new BarcodeGenerator(EncodeTypes.QR);
5471
+ * generator.setCodeText(textBuilder.getExtended());
5448
5472
  * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
5449
5473
  * generator.save("d:/test.png", BarcodeImageFormat.PNG);
5474
+ * </pre>
5475
+ *
5476
+ * This sample shows how to use multi ECI mode in Extended Mode.
5477
+ * <pre>
5450
5478
  *
5451
- * @example
5452
- * //This sample shows how to use multi ECI mode in Extended Mode.
5453
5479
  * //create codetext
5454
- * QrExtCodetextBuilder textBuilder = new QrExtCodetextBuilder();
5480
+ * textBuilder = new QrExtCodetextBuilder();
5455
5481
  * textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
5456
5482
  * textBuilder.addECICodetext(ECIEncodings.UTF8, "Right");
5457
5483
  * textBuilder.addECICodetext(ECIEncodings.UTF16BE, "Power");
5458
5484
  * textBuilder.addPlainCodetext("t\e\\st");
5459
5485
  * //generate barcode
5460
- * let generator = new BarcodeGenerator(EncodeTypes.QR);
5461
- * generator.setCodeText(textBuilder.getExtendedCodetext());
5486
+ * generator = new BarcodeGenerator(EncodeTypes.QR);
5487
+ * generator.setCodeText(textBuilder.getExtended());
5462
5488
  * generator.getParameters().getBarcode().getQR().setQrEncodeMode(QREncodeMode.EXTENDED_CODETEXT);
5463
5489
  * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
5464
5490
  * generator.save("d:/test.png", BarcodeImageFormat.PNG);
5465
- * @enum
5491
+ * </pre>
5492
+ * </pre></blockquote></hr></p>
5466
5493
  */
5467
5494
  QREncodeMode =
5468
5495
  {
@@ -7019,11 +7046,39 @@ ECIEncodings =
7019
7046
  /**
7020
7047
  * GB (PRC) Chinese Character Set encoding. ECI Id:"\000029"
7021
7048
  */
7022
- GB18030: 29,
7049
+ GB2312: 29,
7023
7050
  /**
7024
7051
  * Korean Character Set encoding. ECI Id:"\000030"
7025
7052
  */
7026
7053
  EUC_KR: 30,
7054
+ /**
7055
+ * <p>GBK (extension of GB2312 for Simplified Chinese) encoding. ECI Id:"\000031"</p>
7056
+ */
7057
+ GBK: 31,
7058
+ /**
7059
+ * <p>GGB18030 Chinese Character Set encoding. ECI Id:"\000032"</p>
7060
+ */
7061
+ GB18030: 32,
7062
+ /**
7063
+ * <p> ISO/IEC 10646 UTF-16LE encoding. ECI Id:"\000033"</p>
7064
+ */
7065
+ UTF16LE: 33,
7066
+ /**
7067
+ * <p> ISO/IEC 10646 UTF-32BE encoding. ECI Id:"\000034"</p>
7068
+ */
7069
+ UTF32BE: 34,
7070
+ /**
7071
+ * <p> ISO/IEC 10646 UTF-32LE encoding. ECI Id:"\000035"</p>
7072
+ */
7073
+ UTF32LE: 35,
7074
+ /**
7075
+ * <p> ISO/IEC 646: ISO 7-bit coded character set - Invariant Characters set encoding. ECI Id:"\000170"</p>
7076
+ */
7077
+ INVARIANT: 170,
7078
+ /**
7079
+ * <p> 8-bit binary data. ECI Id:"\000899"</p>
7080
+ */
7081
+ BINARY: 899,
7027
7082
  /**
7028
7083
  * No Extended Channel Interpretation
7029
7084
  */
@@ -7227,25 +7282,51 @@ Pdf417MacroTerminator =
7227
7282
  */
7228
7283
  MaxiCodeEncodeMode =
7229
7284
  {
7230
-
7231
7285
  /**
7232
- * Encode codetext with value set in the ECIEncoding property.
7286
+ * In Auto mode, the CodeText is encoded with maximum data compactness.
7287
+ * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7288
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7233
7289
  */
7234
7290
  AUTO: 0,
7235
7291
 
7236
7292
  /**
7237
7293
  * Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
7294
+ * @deprecated
7238
7295
  */
7239
7296
  BYTES: 1,
7240
7297
 
7241
7298
  /**
7242
- * Extended mode which supports multi ECI modes.<br>
7243
- * It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation.<br>
7244
- * Use Display2DText property to set visible text to removing managing characters.<br>
7245
- * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier<br>
7299
+ * Extended mode which supports multi ECI modes.
7300
+ * It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation.
7301
+ * Use Display2DText property to set visible text to removing managing characters.
7302
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
7303
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
7304
+ *
7305
+ * @deprecated
7306
+ */
7307
+ EXTENDED_CODETEXT: 2,
7308
+
7309
+ /**
7310
+ * Extended mode which supports multi ECI modes.
7311
+ * It is better to use MaxiCodeExtCodetextBuilder for extended codetext generation.
7312
+ * Use Display2DText property to set visible text to removing managing characters.
7313
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
7246
7314
  * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
7247
7315
  */
7248
- EXTENDED_CODETEXT: 2
7316
+ EXTENDED: 3,
7317
+
7318
+ /**
7319
+ * In Binary mode, the CodeText is encoded with maximum data compactness.
7320
+ * If a Unicode character is found, an exception is thrown.
7321
+ */
7322
+ BINARY: 4,
7323
+
7324
+ /**
7325
+ * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7326
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7327
+ * Please note that some old (pre 2006) scanners may not support this mode.
7328
+ */
7329
+ ECI: 5
7249
7330
  }
7250
7331
 
7251
7332
  /**
@@ -7415,29 +7496,87 @@ MaxiCodeMode =
7415
7496
  DotCodeEncodeMode =
7416
7497
  {
7417
7498
  /**
7418
- * <p>
7419
- * Encode codetext with value set in the ECIEncoding property.
7499
+ * In Auto mode, the CodeText is encoded with maximum data compactness.
7500
+ * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7501
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7420
7502
  * </p>
7421
7503
  */
7422
7504
  AUTO: 0,
7423
7505
 
7424
7506
  /**
7425
- * <p>
7426
7507
  * Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
7427
- * </p>
7508
+ * @deprecated
7428
7509
  */
7429
7510
  BYTES: 1,
7430
7511
 
7431
7512
  /**
7432
- * <p>Extended mode which supports multi ECI modes.</p>
7433
- * <p>It is better to use DotCodeExtCodetextBuilder for extended codetext generation.</p>
7434
- * <p>Use Display2DText property to set visible text to removing managing characters.</p>
7435
- * <p>ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier</p>
7436
- * <p>All unicode characters after ECI identifier are automatically encoded into correct character codeset.</p>
7513
+ * Extended mode which supports multi ECI modes.
7514
+ * It is better to use DotCodeExtCodetextBuilder for extended codetext generation.
7515
+ * Use Display2DText property to set visible text to removing managing characters.
7516
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
7517
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
7518
+ * @deprecated
7519
+ */
7520
+ EXTENDED_CODETEXT: 2,
7521
+
7522
+ /**
7523
+ * In Binary mode, the CodeText is encoded with maximum data compactness.
7524
+ * If a Unicode character is found, an exception is thrown.
7437
7525
  */
7438
- EXTENDED_CODETEXT: 2
7526
+ BINARY: 3,
7527
+
7528
+ /**
7529
+ * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7530
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7531
+ * Please note that some old (pre 2006) scanners may not support this mode.
7532
+ */
7533
+ ECI: 4,
7534
+
7535
+ /**
7536
+ * Extended mode which supports multi ECI modes.
7537
+ * It is better to use DotCodeExtCodetextBuilder for extended codetext generation.
7538
+ * Use Display2DText property to set visible text to removing managing characters.
7539
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
7540
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
7541
+ */
7542
+ EXTENDED: 5
7439
7543
  }
7440
7544
 
7545
+ /**
7546
+ * Pdf417 barcode encode mode
7547
+ */
7548
+ Pdf417EncodeMode =
7549
+ {
7550
+ /**
7551
+ *
7552
+ * In Auto mode, the CodeText is encoded with maximum data compactness.
7553
+ * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7554
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7555
+ */
7556
+ AUTO: 0,
7557
+
7558
+ /**
7559
+ * In Binary mode, the CodeText is encoded with maximum data compactness.
7560
+ * If a Unicode character is found, an exception is thrown.
7561
+ */
7562
+ BINARY: 1,
7563
+
7564
+ /**
7565
+ * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7566
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7567
+ * Please note that some old (pre 2006) scanners may not support this mode.
7568
+ */
7569
+ ECI: 2,
7570
+
7571
+ /**
7572
+ * Extended mode which supports multi ECI modes.
7573
+ * It is better to use Pdf417ExtCodetextBuilder for extended codetext generation.
7574
+ * Use Display2DText property to set visible text to removing managing characters.
7575
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
7576
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
7577
+ */
7578
+ EXTENDED: 3
7579
+ }
7441
7580
 
7442
7581
  /**
7443
7582
  * <p>
@@ -8641,45 +8780,60 @@ DataMatrixVersion =
8641
8780
  AztecEncodeMode =
8642
8781
  {
8643
8782
  /**
8644
- * <p>
8645
- * Encode codetext with value set in the ECIEncoding property.
8646
- * </p>
8783
+ * In Auto mode, the CodeText is encoded with maximum data compactness.
8784
+ * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
8785
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
8647
8786
  */
8648
8787
  AUTO: 0,
8649
8788
 
8650
8789
  /**
8651
- * <p>
8652
8790
  * Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
8653
- * </p>
8791
+ * @deprecated
8654
8792
  */
8655
8793
  BYTES: 1,
8656
8794
 
8657
8795
  /**
8658
- * <p>
8659
- * <p>Extended mode which supports multi ECI modes.</p>
8660
- * <p>It is better to use AztecExtCodetextBuilder for extended codetext generation.</p>
8661
- * <p>Use Display2DText property to set visible text to removing managing characters.</p>
8662
- * <p>ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier</p>
8663
- * <p>All unicode characters after ECI identifier are automatically encoded into correct character codeset.</p>
8664
- * </p>
8796
+ * Extended mode which supports multi ECI modes.
8797
+ * It is better to use AztecExtCodetextBuilder for extended codetext generation.
8798
+ * Use Display2DText property to set visible text to removing managing characters.
8799
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
8800
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
8801
+ * @deprecated
8665
8802
  */
8666
- EXTENDED_CODETEXT: 2
8803
+ EXTENDED_CODETEXT: 2,
8804
+ /**
8805
+ * Extended mode which supports multi ECI modes.
8806
+ * It is better to use AztecExtCodetextBuilder for extended codetext generation.
8807
+ * Use Display2DText property to set visible text to removing managing characters.
8808
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
8809
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
8810
+ */
8811
+ EXTENDED: 3,
8812
+
8813
+ /**
8814
+ * In Binary mode, the CodeText is encoded with maximum data compactness.
8815
+ * If a Unicode character is found, an exception is thrown.
8816
+ */
8817
+ BINARY: 4,
8818
+
8819
+ /**
8820
+ * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
8821
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
8822
+ * Please note that some old (pre 2006) scanners may not support this mode.
8823
+ */
8824
+ ECI: 5
8667
8825
  }
8668
8826
 
8669
8827
  /**
8670
- * <p>
8671
8828
  * Version of MicroQR Code.
8672
8829
  * From M1 to M4.
8673
- * </p>
8674
8830
  * @enum
8675
8831
  */
8676
8832
  MicroQRVersion =
8677
8833
  {
8678
8834
  /**
8679
- * <p>
8680
8835
  * Specifies to automatically pick up the best version for MicroQR.
8681
8836
  * This is default value.
8682
- * </p>
8683
8837
  */
8684
8838
  AUTO: 0,
8685
8839