aspose.barcode 23.8.0 → 23.10.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.
@@ -4,7 +4,7 @@ const joint_ = require('./Joint');
4
4
  const complexbarcode_ = require("./ComplexBarcode");
5
5
  const generation_ = require("./Generation");
6
6
  const recognition_ = require("./Recognition");
7
- const jar_name_ = "/aspose-barcode-nodejs-23.8.jar";
7
+ const jar_name_ = "/aspose-barcode-nodejs-23.10.jar";
8
8
  const jar_path_ = __dirname + jar_name_;
9
9
  const fs = require("fs");
10
10
 
package/lib/Generation.js CHANGED
@@ -1509,7 +1509,7 @@ class CodetextParameters extends joint.BaseJavaClass
1509
1509
  }
1510
1510
 
1511
1511
  /**
1512
- * Gets or sets the alignment of the code text.<br>
1512
+ * Gets the alignment of the code text.<br>
1513
1513
  * Default value: TextAlignment.CENTER.
1514
1514
  */
1515
1515
  getAlignment()
@@ -1518,7 +1518,7 @@ class CodetextParameters extends joint.BaseJavaClass
1518
1518
  }
1519
1519
 
1520
1520
  /**
1521
- * Gets or sets the alignment of the code text.<br>
1521
+ * Sets the alignment of the code text.<br>
1522
1522
  * Default value: TextAlignment.CENTER.
1523
1523
  */
1524
1524
  setAlignment(value)
@@ -1904,7 +1904,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
1904
1904
 
1905
1905
  /**
1906
1906
  * <p>
1907
- * Gets or sets a Datamatrix symbol size.
1907
+ * Gets a Datamatrix symbol size.
1908
1908
  * Default value: DataMatrixVersion.Auto.
1909
1909
  * </p>
1910
1910
  */
@@ -1915,7 +1915,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
1915
1915
 
1916
1916
  /**
1917
1917
  * <p>
1918
- * Gets or sets a Datamatrix symbol size.
1918
+ * Sets a Datamatrix symbol size.
1919
1919
  * Default value: DataMatrixVersion.Auto.
1920
1920
  * </p>
1921
1921
  */
@@ -2142,7 +2142,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
2142
2142
 
2143
2143
  /**
2144
2144
  * <p>
2145
- * Gets or sets ECI encoding. Used when DataMatrixEncodeMode is Auto.
2145
+ * Gets ECI encoding. Used when DataMatrixEncodeMode is Auto.
2146
2146
  * Default value: ISO-8859-1
2147
2147
  * </p>
2148
2148
  */
@@ -2152,7 +2152,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
2152
2152
  }
2153
2153
  /**
2154
2154
  * <p>
2155
- * Gets or sets ECI encoding. Used when DataMatrixEncodeMode is Auto.
2155
+ * Sets ECI encoding. Used when DataMatrixEncodeMode is Auto.
2156
2156
  * Default value: ISO-8859-1
2157
2157
  * </p>
2158
2158
  */
@@ -2524,6 +2524,25 @@ class GS1CompositeBarParameters extends joint.BaseJavaClass
2524
2524
  this.getJavaClass().setTwoDComponentTypeSync(value);
2525
2525
  }
2526
2526
 
2527
+ /**
2528
+ * <p>
2529
+ * If this flag is set, it allows only GS1 encoding standard for GS1CompositeBar 2D Component
2530
+ * </p>
2531
+ */
2532
+ isAllowOnlyGS1Encoding()
2533
+ {
2534
+ return this.getJavaClass().isAllowOnlyGS1EncodingSync();
2535
+ }
2536
+ /**
2537
+ * <p>
2538
+ * If this flag is set, it allows only GS1 encoding standard for GS1CompositeBar 2D Component
2539
+ * </p>
2540
+ */
2541
+ setAllowOnlyGS1Encoding(value)
2542
+ {
2543
+ this.getJavaClass().setAllowOnlyGS1EncodingSync(value);
2544
+ }
2545
+
2527
2546
  /**
2528
2547
  * Returns a human-readable string representation of this <see cref="DataBarParameters"/>.
2529
2548
  * @return A string that represents this <see cref="DataBarParameters"/>
@@ -2554,7 +2573,7 @@ class ITFParameters extends joint.BaseJavaClass
2554
2573
  }
2555
2574
 
2556
2575
  /**
2557
- * Gets or sets an ITF border (bearer bar) thickness in Unit value.<br>
2576
+ * Gets an ITF border (bearer bar) thickness in Unit value.<br>
2558
2577
  * Default value: 12pt.
2559
2578
  */
2560
2579
  getItfBorderThickness()
@@ -2563,7 +2582,7 @@ class ITFParameters extends joint.BaseJavaClass
2563
2582
  }
2564
2583
 
2565
2584
  /**
2566
- * Gets or sets an ITF border (bearer bar) thickness in Unit value.<br>
2585
+ * Sets an ITF border (bearer bar) thickness in Unit value.<br>
2567
2586
  * Default value: 12pt.
2568
2587
  */
2569
2588
  setItfBorderThickness(value)
@@ -2830,7 +2849,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
2830
2849
  }
2831
2850
 
2832
2851
  /**
2833
- * Gets or sets Pdf417 symbology type of BarCode's error correction level<br>
2852
+ * Gets Pdf417 symbology type of BarCode's error correction level<br>
2834
2853
  * ranging from level0 to level8, level0 means no error correction info,<br>
2835
2854
  * level8 means best error correction which means a larger picture.
2836
2855
  */
@@ -2840,7 +2859,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
2840
2859
  }
2841
2860
 
2842
2861
  /**
2843
- * Gets or sets Pdf417 symbology type of BarCode's error correction level<br>
2862
+ * Sets Pdf417 symbology type of BarCode's error correction level<br>
2844
2863
  * ranging from level0 to level8, level0 means no error correction info,<br>
2845
2864
  * level8 means best error correction which means a larger picture.
2846
2865
  */
@@ -3028,7 +3047,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
3028
3047
  }
3029
3048
 
3030
3049
  /**
3031
- * Gets or sets macro Pdf417 file size.<br>
3050
+ * Gets macro Pdf417 file size.<br>
3032
3051
  * @return The file size field contains the size in bytes of the entire source file.
3033
3052
  */
3034
3053
  getPdf417MacroFileSize()
@@ -3037,7 +3056,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
3037
3056
  }
3038
3057
 
3039
3058
  /**
3040
- * Gets or sets macro Pdf417 file size.<br>
3059
+ * Sets macro Pdf417 file size.<br>
3041
3060
  * @param value The file size field contains the size in bytes of the entire source file.
3042
3061
  */
3043
3062
  setPdf417MacroFileSize(value)
@@ -3385,17 +3404,126 @@ class AztecParameters extends joint.BaseJavaClass
3385
3404
  }
3386
3405
 
3387
3406
  /**
3388
- * Level of error correction of Aztec types of barcode.<br>
3389
- * Value should between 10 to 95.
3407
+ * <p>
3408
+ * Gets a Aztec encode mode.
3409
+ * Default value: Auto.
3410
+ * </p>
3411
+ */
3412
+ getAztecEncodeMode()
3413
+ {
3414
+ return this.getJavaClass().getAztecEncodeModeSync();
3415
+ }
3416
+
3417
+ /**
3418
+ * <p>
3419
+ * Sets a Aztec encode mode.
3420
+ * Default value: Auto.
3421
+ * </p>
3422
+ */
3423
+ setAztecEncodeMode(value)
3424
+ {
3425
+ this.getJavaClass().setAztecEncodeModeSync(value);
3426
+ }
3427
+
3428
+ /**
3429
+ * <p>
3430
+ * Gets ECI encoding. Used when AztecEncodeMode is Auto.
3431
+ * Default value: ISO-8859-1
3432
+ * </p>
3433
+ */
3434
+ getECIEncoding()
3435
+ {
3436
+ return this.getJavaClass().getECIEncodingSync();
3437
+ }
3438
+ /**
3439
+ * <p>
3440
+ * Sets ECI encoding. Used when AztecEncodeMode is Auto.
3441
+ * Default value: ISO-8859-1
3442
+ * </p>
3443
+ */
3444
+ setECIEncoding(value)
3445
+ {
3446
+ this.getJavaClass().setECIEncodingSync(value);
3447
+ }
3448
+
3449
+ /**
3450
+ * <p>
3451
+ * Barcode ID for Structured Append mode of Aztec barcode. Barcode ID should be in range from 1 to barcodes count.
3452
+ * Default value: 0
3453
+ * </p>
3454
+ */
3455
+ getStructuredAppendBarcodeId()
3456
+ {
3457
+ return this.getJavaClass().getStructuredAppendBarcodeIdSync();
3458
+ }
3459
+ /**
3460
+ * <p>
3461
+ * Barcode ID for Structured Append mode of Aztec barcode. Barcode ID should be in range from 1 to barcodes count.
3462
+ * Default value: 0
3463
+ * </p>
3464
+ */
3465
+ setStructuredAppendBarcodeId(value)
3466
+ {
3467
+ this.getJavaClass().setStructuredAppendBarcodeIdSync(value);
3468
+ }
3469
+
3470
+ /**
3471
+ * <p>
3472
+ * Barcodes count for Structured Append mode of Aztec barcode. Barcodes count should be in range from 1 to 26.
3473
+ * Default value: 0
3474
+ * </p>
3475
+ */
3476
+ getStructuredAppendBarcodesCount()
3477
+ {
3478
+ return this.getJavaClass().getStructuredAppendBarcodesCountSync();
3479
+ }
3480
+ /**
3481
+ * <p>
3482
+ * Barcodes count for Structured Append mode of Aztec barcode. Barcodes count should be in range from 1 to 26.
3483
+ * Default value: 0
3484
+ * </p>
3485
+ */
3486
+ setStructuredAppendBarcodesCount(value)
3487
+ {
3488
+ this.getJavaClass().setStructuredAppendBarcodesCountSync(value);
3489
+ }
3490
+
3491
+ /**
3492
+ * <p>
3493
+ * File ID for Structured Append mode of Aztec barcode (optional field). File ID should not contain spaces.
3494
+ * Default value: empty string
3495
+ * </p>
3496
+ */
3497
+ getStructuredAppendFileId()
3498
+ {
3499
+ return this.getJavaClass().getStructuredAppendFileIdSync();
3500
+ }
3501
+ /**
3502
+ * <p>
3503
+ * File ID for Structured Append mode of Aztec barcode (optional field). File ID should not contain spaces.
3504
+ * Default value: empty string
3505
+ * </p>
3506
+ */
3507
+ setStructuredAppendFileId(value)
3508
+ {
3509
+ this.getJavaClass().setStructuredAppendFileIdSync(value);
3510
+ }
3511
+
3512
+ /**
3513
+ * <p>
3514
+ * Level of error correction of Aztec types of barcode.
3515
+ * Value should between 5 to 95.
3516
+ * </p>
3390
3517
  */
3391
3518
  getAztecErrorLevel()
3392
3519
  {
3393
3520
  return this.getJavaClass().getAztecErrorLevelSync();
3394
3521
  }
3395
-
3396
3522
  /**
3397
- * Level of error correction of Aztec types of barcode.<br>
3398
- * Value should between 10 to 95.
3523
+ * <p>
3524
+ * Level of error correction of Aztec types of barcode.
3525
+ * Value should between 5 to 95.
3526
+ * </p>
3399
3527
  */
3400
3528
  setAztecErrorLevel(value)
3401
3529
  {
@@ -3403,17 +3531,20 @@ class AztecParameters extends joint.BaseJavaClass
3403
3531
  }
3404
3532
 
3405
3533
  /**
3406
- * Gets or sets a Aztec Symbol mode.<br>
3407
- * Default value: AztecSymbolMode.AUTO.
3534
+ * <p>
3535
+ * Gets a Aztec Symbol mode.
3536
+ * Default value: AztecSymbolMode.Auto.
3537
+ * </p>
3408
3538
  */
3409
3539
  getAztecSymbolMode()
3410
3540
  {
3411
3541
  return this.getJavaClass().getAztecSymbolModeSync();
3412
3542
  }
3413
-
3414
3543
  /**
3415
- * Gets or sets a Aztec Symbol mode.<br>
3416
- * Default value: AztecSymbolMode.AUTO.
3544
+ * <p>
3545
+ * Sets a Aztec Symbol mode.
3546
+ * Default value: AztecSymbolMode.Auto.
3547
+ * </p>
3417
3548
  */
3418
3549
  setAztecSymbolMode(value)
3419
3550
  {
@@ -3421,15 +3552,63 @@ class AztecParameters extends joint.BaseJavaClass
3421
3552
  }
3422
3553
 
3423
3554
  /**
3555
+ * <p>
3556
+ * Gets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and
3557
+ * in range from 1 to 32 for Full Range mode.
3558
+ * Default value: 0 (auto).
3559
+ * </p>
3560
+ */
3561
+ getLayersCount()
3562
+ {
3563
+ return this.getJavaClass().getLayersCountSync();
3564
+ }
3565
+ /**
3566
+ * <p>
3567
+ * Sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and
3568
+ * in range from 1 to 32 for Full Range mode.
3569
+ * Default value: 0 (auto).
3570
+ * </p>
3571
+ */
3572
+ setLayersCount(value)
3573
+ {
3574
+ this.getJavaClass().setLayersCountSync(value);
3575
+ }
3576
+
3577
+ /**
3578
+ * <p>
3579
+ * Used to instruct the reader to interpret the data contained within the symbol
3580
+ * as programming for reader initialization.
3581
+ * </p>
3582
+ */
3583
+ isReaderInitialization()
3584
+ {
3585
+ return this.getJavaClass().isReaderInitializationSync();
3586
+ }
3587
+
3588
+ /**
3589
+ * <p>
3590
+ * Used to instruct the reader to interpret the data contained within the symbol
3591
+ * as programming for reader initialization.
3592
+ * </p>
3593
+ */
3594
+ setReaderInitialization(value)
3595
+ {
3596
+ this.getJavaClass().setReaderInitializationSync(value);
3597
+ }
3598
+
3599
+ /**
3600
+ * <p>
3424
3601
  * Height/Width ratio of 2D BarCode module.
3602
+ * </p>
3425
3603
  */
3426
3604
  getAspectRatio()
3427
3605
  {
3428
3606
  return this.getJavaClass().getAspectRatioSync();
3429
3607
  }
3430
-
3431
3608
  /**
3609
+ * <p>
3432
3610
  * Height/Width ratio of 2D BarCode module.
3611
+ * </p>
3433
3612
  */
3434
3613
  setAspectRatio(value)
3435
3614
  {
@@ -3437,26 +3616,34 @@ class AztecParameters extends joint.BaseJavaClass
3437
3616
  }
3438
3617
 
3439
3618
  /**
3440
- * Gets the encoding of codetext.<br>
3619
+ * <p>
3620
+ * Gets the encoding of codetext.
3441
3621
  * Default value: UTF-8
3622
+ * </p>
3442
3623
  */
3443
3624
  getCodeTextEncoding()
3444
3625
  {
3626
+ console.log('This function is deprecated.');
3445
3627
  return this.getJavaClass().getCodeTextEncodingSync();
3446
3628
  }
3447
3629
 
3448
3630
  /**
3449
- * Sets the encoding of codetext.<br>
3631
+ * <p>
3632
+ * Sets the encoding of codetext.
3450
3633
  * Default value: UTF-8
3634
+ * </p>
3451
3635
  */
3452
- setCodeTextEncoding(value)
3636
+ setCodeTextEncoding(codeTextEncoding)
3453
3637
  {
3454
- this.getJavaClass().setCodeTextEncodingSync(value);
3638
+ console.log('This function is deprecated.');
3639
+ this.getJavaClass().setCodeTextEncodingSync(codeTextEncoding);
3455
3640
  }
3456
3641
 
3457
3642
  /**
3458
- * Returns a human-readable string representation of this AztecParameters.<br>
3459
- * @return string that represents this AztecParameters.
3643
+ * <p>
3644
+ * Returns a human-readable string representation of this {@code AztecParameters}.
3645
+ * </p>
3646
+ * @return A string that represents this {@code AztecParameters}.
3460
3647
  */
3461
3648
  toString()
3462
3649
  {
@@ -4069,7 +4256,7 @@ class Code128Parameters extends joint.BaseJavaClass
4069
4256
 
4070
4257
  /**
4071
4258
  * <p>
4072
- * Gets or sets a Code128 encode mode.
4259
+ * Gets a Code128 encode mode.
4073
4260
  * Default value: Code128EncodeMode.Auto
4074
4261
  * </p>
4075
4262
  */
@@ -4079,7 +4266,7 @@ class Code128Parameters extends joint.BaseJavaClass
4079
4266
  }
4080
4267
  /**
4081
4268
  * <p>
4082
- * Gets or sets a Code128 encode mode.
4269
+ * Sets a Code128 encode mode.
4083
4270
  * Default value: Code128EncodeMode.Auto
4084
4271
  * </p>
4085
4272
  */
@@ -5625,6 +5812,14 @@ EncodeTypes =
5625
5812
  */
5626
5813
  AZTEC: 35,
5627
5814
 
5815
+ /**
5816
+ * <p>
5817
+ * Specifies that the data should be encoded with {@code <b>GS1 Aztec</b>} barcode specification. The codetext must contains parentheses for AI.
5818
+ * </p>
5819
+ */
5820
+ GS_1_AZTEC:81,
5821
+
5822
+
5628
5823
  /**
5629
5824
  * Specifies that the data should be encoded with Pdf417 barcode specification
5630
5825
  */
@@ -5955,6 +6150,8 @@ EncodeTypes =
5955
6150
 
5956
6151
  else if(encodeTypeName == "AZTEC") return 35;
5957
6152
 
6153
+ else if(encodeTypeName == "GS_1_AZTEC") return 81;
6154
+
5958
6155
  else if(encodeTypeName == "PDF_417") return 36;
5959
6156
 
5960
6157
  else if(encodeTypeName == "MACRO_PDF_417") return 37;
@@ -6049,6 +6246,54 @@ EncodeTypes =
6049
6246
  }
6050
6247
  }
6051
6248
 
6249
+ /**
6250
+ * <p>
6251
+ * <p>Extended codetext generator for Aztec barcodes for ExtendedCodetext Mode of AztecEncodeMode</p>
6252
+ * <p>Use TwoDDisplayText property of BarcodeGenerator to set visible text to removing managing characters.</p>
6253
+ * </p><p><hr><blockquote><pre>
6254
+ * This sample shows how to use AztecExtCodetextBuilder in Extended Mode.
6255
+ * <pre>
6256
+ * @example
6257
+ * //create codetext
6258
+ * let textBuilder = new AztecExtCodetextBuilder();
6259
+ * textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
6260
+ * textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗");
6261
+ * textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
6262
+ * textBuilder.addPlainCodetext("Plain text");
6263
+ * //generate codetext
6264
+ * let codetext = textBuilder.getExtendedCodetext();
6265
+ * //generate
6266
+ * let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
6267
+ * generator.getParameters().getBarcode().getCodeTextParameters().setwoDDisplayText("My Text");
6268
+ * generator.save("test.bmp", BarcodeImageFormat.BMP);
6269
+ */
6270
+ class AztecExtCodetextBuilder extends ExtCodetextBuilder
6271
+ {
6272
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwAztecExtCodetextBuilder";
6273
+
6274
+ constructor()
6275
+ {
6276
+ let java_class_link = java.import(AztecExtCodetextBuilder.JAVA_CLASS_NAME);
6277
+ let javaClass = new java_class_link();
6278
+ super(javaClass);
6279
+ }
6280
+
6281
+ init()
6282
+ {
6283
+ }
6284
+
6285
+ /**
6286
+ * <p>
6287
+ * Generates Extended codetext from the extended codetext list.
6288
+ * </p>
6289
+ * @return Extended codetext as string
6290
+ */
6291
+ getExtendedCodetext()
6292
+ {
6293
+ return this.getJavaClass().getExtendedCodetextSync();
6294
+ }
6295
+ }
6296
+
6052
6297
  /**
6053
6298
  * Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.<br>
6054
6299
  * 05 Macro craracter is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.<br>
@@ -7849,6 +8094,81 @@ DataMatrixVersion =
7849
8094
  DMRE_26x64:70
7850
8095
  }
7851
8096
 
8097
+ /**
8098
+ * <p>
8099
+ * Encoding mode for Aztec barcodes.
8100
+ * </p><p><hr><blockquote><pre>
8101
+ * <pre>
8102
+ *
8103
+ * @example
8104
+ * //Auto mode
8105
+ * let codetext = "犬Right狗";
8106
+ * let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
8107
+ * generator.getParameters().getBarcode().getAztec().setECIEncoding(ECIEncodings.UTF_8);
8108
+ * generator.save("test.bmp");
8109
+ *
8110
+ * @example
8111
+ * //Bytes mode
8112
+ * let encodedArr = [ 0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9 ];
8113
+ * //encode array to string
8114
+ * let strBld = "";
8115
+ * for(let i = 0; i < encodedArr; i++)
8116
+ * {
8117
+ * byte bval = encodedArr[i]
8118
+ * strBld.append(String.fromCharCode(bval));
8119
+ * }
8120
+ * let codetext = strBld;
8121
+ * let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
8122
+ * generator.getParameters().getBarcode().getAztec().setAztecEncodeMode(AztecEncodeMode.BYTES);
8123
+ * generator.save("test.bmp", BarcodeImageFormat.PNG);
8124
+ *
8125
+ * @example
8126
+ * //Extended codetext mode
8127
+ * //create codetext
8128
+ * let textBuilder = new AztecExtCodetextBuilder();
8129
+ * textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
8130
+ * textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗");
8131
+ * textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
8132
+ * textBuilder.addPlainCodetext("Plain text");
8133
+ * //generate codetext
8134
+ * let codetext = textBuilder.getExtendedCodetext();
8135
+ * //generate
8136
+ * let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
8137
+ * generator.getParameters().getBarcode().getAztec().setAztecEncodeMode(AztecEncodeMode.EXTENDED_CODETEXT);
8138
+ * generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
8139
+ * generator.save("test.bmp", BarcodeImageFormat.PNG);
8140
+ *
8141
+ * </pre>
8142
+ * </pre></blockquote></hr></p>
8143
+ */
8144
+ AztecEncodeMode =
8145
+ {
8146
+ /**
8147
+ * <p>
8148
+ * Encode codetext with value set in the ECIEncoding property.
8149
+ * </p>
8150
+ */
8151
+ AUTO: 0,
8152
+
8153
+ /**
8154
+ * <p>
8155
+ * Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
8156
+ * </p>
8157
+ */
8158
+ BYTES: 1,
8159
+
8160
+ /**
8161
+ * <p>
8162
+ * <p>Extended mode which supports multi ECI modes.</p>
8163
+ * <p>It is better to use AztecExtCodetextBuilder for extended codetext generation.</p>
8164
+ * <p>Use Display2DText property to set visible text to removing managing characters.</p>
8165
+ * <p>ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier</p>
8166
+ * <p>All unicode characters after ECI identifier are automatically encoded into correct character codeset.</p>
8167
+ * </p>
8168
+ */
8169
+ EXTENDED_CODETEXT: 2
8170
+ }
8171
+
7852
8172
  module.exports = {
7853
8173
  BarcodeGenerator,
7854
8174
  EncodeTypes,
@@ -7919,5 +8239,7 @@ module.exports = {
7919
8239
  HanXinParameters,
7920
8240
  DataMatrixVersion,
7921
8241
  DataMatrixExtCodetextBuilder,
7922
- HanXinExtCodetextBuilder
8242
+ HanXinExtCodetextBuilder,
8243
+ AztecEncodeMode,
8244
+ AztecExtCodetextBuilder
7923
8245
  };
@@ -890,6 +890,15 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
890
890
  return this.getJavaClass().getMacroPdf417ChecksumSync();
891
891
  }
892
892
 
893
+ /**
894
+ * <p>Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.</p>
895
+ * @return Reader initialization flag
896
+ */
897
+ getMacroPdf417Terminator()
898
+ {
899
+ return this.getJavaClass().getMacroPdf417TerminatorSync();
900
+ }
901
+
893
902
  /**
894
903
  * <p>
895
904
  * Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
@@ -903,12 +912,11 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
903
912
  }
904
913
 
905
914
  /**
906
- * <p>Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.</p>
907
- * @return Reader initialization flag
915
+ * <p>Flag that indicates that the barcode must be linked to 1D barcode.</p>Value: Linkage flag
908
916
  */
909
- getMacroPdf417Terminator()
917
+ isLinked()
910
918
  {
911
- return this.getJavaClass().getMacroPdf417TerminatorSync();
919
+ return this.getJavaClass().isLinkedSync();
912
920
  }
913
921
 
914
922
  /**
@@ -1642,6 +1650,8 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1642
1650
  _maxiCodeParameters;
1643
1651
  _dotCodeExtendedParameters;
1644
1652
  _dataMatrixExtendedParameters;
1653
+ _aztecExtendedParameters;
1654
+ _gs1CompositeBarExtendedParameters;
1645
1655
 
1646
1656
  constructor(javaclass)
1647
1657
  {
@@ -1659,6 +1669,8 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1659
1669
  this._maxiCodeParameters = new MaxiCodeExtendedParameters(this.getJavaClass().getMaxiCodeSync());
1660
1670
  this._dotCodeExtendedParameters = new DotCodeExtendedParameters(this.getJavaClass().getDotCodeSync());
1661
1671
  this._dataMatrixExtendedParameters = new DataMatrixExtendedParameters(this.getJavaClass().getDataMatrixSync());
1672
+ this._aztecExtendedParameters = new AztecExtendedParameters(this.getJavaClass().getAztecSync());
1673
+ this._gs1CompositeBarExtendedParameters = new GS1CompositeBarExtendedParameters(this.getJavaClass().getGS1CompositeBarSync());
1662
1674
  }
1663
1675
 
1664
1676
  /**
@@ -1704,6 +1716,22 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1704
1716
  return this._dataMatrixExtendedParameters;
1705
1717
  }
1706
1718
 
1719
+ /**
1720
+ * <p>Gets a Aztec additional information{@code AztecExtendedParameters} of recognized barcode</p>Value: A Aztec additional information{@code AztecExtendedParameters} of recognized barcode
1721
+ */
1722
+ getAztec()
1723
+ {
1724
+ return this._aztecExtendedParameters;
1725
+ }
1726
+
1727
+ /**
1728
+ * <p>Gets a GS1CompositeBar additional information{@code GS1CompositeBarExtendedParameters} of recognized barcode</p>Value: A GS1CompositeBar additional information{@code GS1CompositeBarExtendedParameters} of recognized barcode
1729
+ */
1730
+ getGS1CompositeBar()
1731
+ {
1732
+ return this._gs1CompositeBarExtendedParameters;
1733
+ }
1734
+
1707
1735
  /**
1708
1736
  * Gets a special data Code128ExtendedParameters of Code128 recognized barcode Value: A special data Code128ExtendedParameters of Code128 recognized barcode
1709
1737
  */
@@ -3209,6 +3237,193 @@ class DataMatrixExtendedParameters extends joint.BaseJavaClass
3209
3237
  }
3210
3238
  }
3211
3239
 
3240
+ /**
3241
+ * <p>
3242
+ * Stores special data of {@code <b>GS1 Composite Bar</b>} recognized barcode
3243
+ * </p>
3244
+ */
3245
+ class GS1CompositeBarExtendedParameters extends joint.BaseJavaClass
3246
+ {
3247
+ constructor(javaClass)
3248
+ {
3249
+ super(javaClass);
3250
+ }
3251
+
3252
+ init()
3253
+ {
3254
+ }
3255
+
3256
+ /**
3257
+ * <p>Gets the 1D (linear) barcode type of GS1 Composite</p>Value: 2D barcode type
3258
+ */
3259
+ getOneDType()
3260
+ {
3261
+ return this.getJavaClass().getOneDTypeSync();
3262
+ }
3263
+
3264
+ /**
3265
+ * <p>Gets the 1D (linear) barcode value of GS1 Composite</p>Value: 1D barcode value
3266
+ */
3267
+ getOneDCodeText()
3268
+ {
3269
+ return this.getJavaClass().getOneDCodeTextSync();
3270
+ }
3271
+
3272
+ /**
3273
+ * <p>Gets the 2D barcode type of GS1 Composite</p>Value: 2D barcode type
3274
+ */
3275
+ getTwoDType()
3276
+ {
3277
+ return this.getJavaClass().getTwoDTypeSync();
3278
+ }
3279
+
3280
+ /**
3281
+ * <p>Gets the 2D barcode value of GS1 Composite</p>Value: 2D barcode value
3282
+ */
3283
+ getTwoDCodeText()
3284
+ {
3285
+ return this.getJavaClass().getTwoDCodeTextSync();
3286
+ }
3287
+
3288
+ /**
3289
+ * <p>
3290
+ * Returns a value indicating whether this instance is equal to a specified {@code GS1CompositeBarExtendedParameters} value.
3291
+ * </p>
3292
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
3293
+ * @param obj An System.Object value to compare to this instance.
3294
+ */
3295
+ equals(obj)
3296
+ {
3297
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
3298
+ }
3299
+
3300
+ /**
3301
+ * <p>
3302
+ * Returns the hash code for this instance.
3303
+ * </p>
3304
+ * @return A 32-bit signed integer hash code.
3305
+ */
3306
+ hashCode()
3307
+ {
3308
+ return this.getJavaClass().hashCodeSync();
3309
+ }
3310
+
3311
+ /**
3312
+ * <p>
3313
+ * Returns a human-readable string representation of this {@code GS1CompositeBarExtendedParameters}.
3314
+ * </p>
3315
+ * @return A string that represents this {@code GS1CompositeBarExtendedParameters}.
3316
+ */
3317
+ toString()
3318
+ {
3319
+ return this.getJavaClass().toStringSync();
3320
+ }
3321
+ }
3322
+
3323
+ /**
3324
+ * <p>
3325
+ * Stores special data of Aztec recognized barcode
3326
+ * </p><p><hr><blockquote><pre>
3327
+ * This sample shows how to get Aztec raw values
3328
+ * <pre>
3329
+ * let generator = new BarcodeGenerator(EncodeTypes.AZTEC, "12345");
3330
+ * generator.save("test.png", BarcodeImageFormat::PNG);
3331
+ *
3332
+ * @example
3333
+ * BarCodeReader reader = new BarCodeReader("test.png", null, DecodeType.AZTEC);
3334
+ * reader.readBarCodes().forEach(function(result, i, results)
3335
+ * {
3336
+ * console.log("BarCode type: " + result.getCodeTypeName());
3337
+ * console.log("BarCode codetext: " + result.getCodeText());
3338
+ * console.log("Aztec barcode ID: " + result.getExtended().getAztec().getStructuredAppendBarcodeId());
3339
+ * console.log("Aztec barcodes count: " + result.getExtended().getAztec().getStructuredAppendBarcodesCount());
3340
+ * console.log("Aztec file ID: " + result.getExtended().getAztec().getStructuredAppendFileId());
3341
+ * console.log("Aztec is reader initialization: " + result.getExtended().getAztec().isReaderInitialization());
3342
+ * });
3343
+ * </pre>
3344
+ * </pre></blockquote></hr></p>
3345
+ */
3346
+ class AztecExtendedParameters extends joint.BaseJavaClass
3347
+ {
3348
+ constructor(javaClass)
3349
+ {
3350
+ super(javaClass);
3351
+ }
3352
+
3353
+ init()
3354
+ {
3355
+ }
3356
+
3357
+ /**
3358
+ * <p>Gets the Aztec structured append mode barcodes count. Default value is 0. Count must be a value from 1 to 26.</p>Value: The barcodes count of the Aztec structured append mode.
3359
+ */
3360
+ getStructuredAppendBarcodesCount()
3361
+ {
3362
+ return this.getJavaClass().getStructuredAppendBarcodesCountSync();
3363
+ }
3364
+
3365
+ /**
3366
+ * <p>Gets the ID of the Aztec structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is 0.</p>Value: The barcode ID of the Aztec structured append mode.
3367
+ */
3368
+ getStructuredAppendBarcodeId()
3369
+ {
3370
+ return this.getJavaClass().getStructuredAppendBarcodeIdSync();
3371
+ }
3372
+
3373
+ /**
3374
+ * <p>Gets the File ID of the Aztec structured append mode. Default value is empty string</p>Value: The File ID of the Aztec structured append mode.
3375
+ */
3376
+ getStructuredAppendFileId()
3377
+ {
3378
+ return this.getJavaClass().getStructuredAppendFileIdSync();
3379
+ }
3380
+
3381
+ /**
3382
+ * <p>
3383
+ * Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.
3384
+ * Default value is false.
3385
+ * </p>
3386
+ */
3387
+ isReaderInitialization()
3388
+ {
3389
+ return this.getJavaClass().isReaderInitializationSync();
3390
+ }
3391
+
3392
+ /**
3393
+ * <p>
3394
+ * Returns a value indicating whether this instance is equal to a specified {@code AztecExtendedParameters} value.
3395
+ * </p>
3396
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
3397
+ * @param obj An System.Object value to compare to this instance.
3398
+ */
3399
+ equals(obj)
3400
+ {
3401
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
3402
+ }
3403
+
3404
+ /**
3405
+ * <p>
3406
+ * Returns the hash code for this instance.
3407
+ * </p>
3408
+ * @return 32-bit signed integer hash code.
3409
+ */
3410
+ hashCode()
3411
+ {
3412
+ return this.getJavaClass().hashCodeSync();
3413
+ }
3414
+
3415
+ /**
3416
+ * <p>
3417
+ * Returns a human-readable string representation of this {@code AztecExtendedParameters}.
3418
+ * </p>
3419
+ * @return A string that represents this {@code AztecExtendedParameters}.
3420
+ */
3421
+ toString()
3422
+ {
3423
+ return this.getJavaClass().toStringSync();
3424
+ }
3425
+ }
3426
+
3212
3427
  /**
3213
3428
  * Specify the type of barcode to read.
3214
3429
  *
@@ -3400,6 +3615,13 @@ DecodeType =
3400
3615
  */
3401
3616
  AZTEC: 33,
3402
3617
 
3618
+ /**
3619
+ * <p>
3620
+ * Specifies that the data should be decoded with {@code <b>GS1 Aztec</b>} barcode specification
3621
+ * </p>
3622
+ */
3623
+ GS_1_AZTEC: 81,
3624
+
3403
3625
  /**
3404
3626
  * Specifies that the data should be decoded with {@code <b>Pdf417</b>} barcode symbology
3405
3627
  */
@@ -3651,6 +3873,13 @@ DecodeType =
3651
3873
  */
3652
3874
  GS_1_HAN_XIN: 79,
3653
3875
 
3876
+ /**
3877
+ * <p>
3878
+ * Specifies that the data should be decoded with {@code <b>GS1 Composite Bar</b>} barcode specification
3879
+ * </p>
3880
+ */
3881
+ GS_1_COMPOSITE_BAR: 80,
3882
+
3654
3883
  /**
3655
3884
  * Specifies that data will be checked with all of 1D barcode symbologies
3656
3885
  */
@@ -3909,5 +4138,6 @@ module.exports = {
3909
4138
  CustomerInformationInterpretingType,
3910
4139
  RecognitionAbortedException,
3911
4140
  DotCodeExtendedParameters,
3912
- DataMatrixExtendedParameters
4141
+ DataMatrixExtendedParameters,
4142
+ GS1CompositeBarExtendedParameters
3913
4143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.barcode",
3
- "version": "23.8.0",
3
+ "version": "23.10.0",
4
4
  "description": "barcode generation and recognition component",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"