aspose.barcode 23.6.0 → 23.7.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.6.jar";
7
+ const jar_name_ = "/aspose-barcode-nodejs-23.7.jar";
8
8
  const jar_path_ = __dirname + jar_name_;
9
9
  const fs = require("fs");
10
10
 
package/lib/Generation.js CHANGED
@@ -1902,6 +1902,28 @@ class DataMatrixParameters extends joint.BaseJavaClass
1902
1902
  {
1903
1903
  }
1904
1904
 
1905
+ /**
1906
+ * <p>
1907
+ * Gets or sets a Datamatrix symbol size.
1908
+ * Default value: DataMatrixVersion.Auto.
1909
+ * </p>
1910
+ */
1911
+ getDataMatrixVersion()
1912
+ {
1913
+ return this.getJavaClass().getDataMatrixVersionSync();
1914
+ }
1915
+
1916
+ /**
1917
+ * <p>
1918
+ * Gets or sets a Datamatrix symbol size.
1919
+ * Default value: DataMatrixVersion.Auto.
1920
+ * </p>
1921
+ */
1922
+ setDataMatrixVersion(value)
1923
+ {
1924
+ this.getJavaClass().setDataMatrixVersionSync(value);
1925
+ }
1926
+
1905
1927
  /**
1906
1928
  * Gets a Datamatrix ECC type.<br>
1907
1929
  * Default value: DataMatrixEccType.ECC_200.
@@ -1938,6 +1960,92 @@ class DataMatrixParameters extends joint.BaseJavaClass
1938
1960
  this.getJavaClass().setDataMatrixEncodeModeSync(value);
1939
1961
  }
1940
1962
 
1963
+ /**
1964
+ * <p>
1965
+ * Barcode ID for Structured Append mode of Datamatrix barcode.
1966
+ * Default value: 0
1967
+ * </p>
1968
+ */
1969
+ getStructuredAppendBarcodeId()
1970
+ {
1971
+ return this.getJavaClass().getStructuredAppendBarcodeIdSync();
1972
+ }
1973
+ /**
1974
+ * <p>
1975
+ * Barcode ID for Structured Append mode of Datamatrix barcode.
1976
+ * Default value: 0
1977
+ * </p>
1978
+ */
1979
+ setStructuredAppendBarcodeId(value)
1980
+ {
1981
+ this.getJavaClass().setStructuredAppendBarcodeIdSync(value);
1982
+ }
1983
+
1984
+ /**
1985
+ * <p>
1986
+ * Barcodes count for Structured Append mode of Datamatrix barcode.
1987
+ * Default value: 0
1988
+ * </p>
1989
+ */
1990
+ getStructuredAppendBarcodesCount()
1991
+ {
1992
+ return this.getJavaClass().getStructuredAppendBarcodesCountSync();
1993
+ }
1994
+ /**
1995
+ * <p>
1996
+ * Barcodes count for Structured Append mode of Datamatrix barcode.
1997
+ * Default value: 0
1998
+ * </p>
1999
+ */
2000
+ setStructuredAppendBarcodesCount(value)
2001
+ {
2002
+ this.getJavaClass().setStructuredAppendBarcodesCountSync(value);
2003
+ }
2004
+
2005
+ /**
2006
+ * <p>
2007
+ * File ID for Structured Append mode of Datamatrix barcode.
2008
+ * Default value: 0
2009
+ * </p>
2010
+ */
2011
+ getStructuredAppendFileId()
2012
+ {
2013
+ return this.getJavaClass().getStructuredAppendFileIdSync();
2014
+ }
2015
+ /**
2016
+ * <p>
2017
+ * File ID for Structured Append mode of Datamatrix barcode.
2018
+ * Default value: 0
2019
+ * </p>
2020
+ */
2021
+ setStructuredAppendFileId(value)
2022
+ {
2023
+ this.getJavaClass().setStructuredAppendFileIdSync(value);
2024
+ }
2025
+
2026
+ /**
2027
+ * <p>
2028
+ * Used to instruct the reader to interpret the data contained within the symbol
2029
+ * as programming for reader initialization.
2030
+ * Default value: false
2031
+ * </p>
2032
+ */
2033
+ isReaderProgramming()
2034
+ {
2035
+ return this.getJavaClass().isReaderProgrammingSync();
2036
+ }
2037
+ /**
2038
+ * <p>
2039
+ * Used to instruct the reader to interpret the data contained within the symbol
2040
+ * as programming for reader initialization.
2041
+ * Default value: false
2042
+ * </p>
2043
+ */
2044
+ setReaderProgramming(value)
2045
+ {
2046
+ this.getJavaClass().setReaderProgrammingSync(value);
2047
+ }
2048
+
1941
2049
  /**
1942
2050
  * ISO/IEC 16022<br>
1943
2051
  * 5.2.4.7 Macro characters<br>
@@ -2032,6 +2140,27 @@ class DataMatrixParameters extends joint.BaseJavaClass
2032
2140
  this.getJavaClass().setCodeTextEncodingSync(value);
2033
2141
  }
2034
2142
 
2143
+ /**
2144
+ * <p>
2145
+ * Gets or sets ECI encoding. Used when DataMatrixEncodeMode is Auto.
2146
+ * Default value: ISO-8859-1
2147
+ * </p>
2148
+ */
2149
+ getECIEncoding()
2150
+ {
2151
+ return this.getJavaClass().getECIEncodingSync();
2152
+ }
2153
+ /**
2154
+ * <p>
2155
+ * Gets or sets ECI encoding. Used when DataMatrixEncodeMode is Auto.
2156
+ * Default value: ISO-8859-1
2157
+ * </p>
2158
+ */
2159
+ setECIEncoding(value)
2160
+ {
2161
+ this.getJavaClass().setECIEncodingSync(value);
2162
+ }
2163
+
2035
2164
  /**
2036
2165
  * Returns a human-readable string representation of this DataMatrixParameters.<br>
2037
2166
  * @return presentation of this DataMatrixParameters.
@@ -2280,7 +2409,9 @@ class DotCodeParameters extends joint.BaseJavaClass
2280
2409
  * </p>
2281
2410
  */
2282
2411
  setECIEncoding(value)
2283
- { this.getJavaClass().setECIEncodingSync(value); }
2412
+ {
2413
+ this.getJavaClass().setECIEncodingSync(value);
2414
+ }
2284
2415
 
2285
2416
  /**
2286
2417
  * <p>
@@ -4086,6 +4217,86 @@ class HanXinParameters extends joint.BaseJavaClass
4086
4217
  }
4087
4218
  }
4088
4219
 
4220
+ /**
4221
+ * <p>
4222
+ * <p>Extended codetext generator for 2D DataMatrix barcodes for ExtendedCodetext Mode of DataMatrixEncodeMode</p>
4223
+ * </p><p><hr><blockquote><pre>
4224
+ * <pre>
4225
+ * //Extended codetext mode
4226
+ * //create codetext
4227
+ * let textBuilder = new DataMatrixExtCodetextBuilder();
4228
+ * codetextBuilder.addECICodetextWithEncodeMode(ECIEncodings.Win1251, DataMatrixEncodeMode.BYTES, "World");
4229
+ * codetextBuilder.addPlainCodetext("Will");
4230
+ * codetextBuilder.addECICodetext(ECIEncodings.UTF_8, "犬Right狗");
4231
+ * codetextBuilder.addCodetextWithEncodeMode(DataMatrixEncodeMode.C_40, "ABCDE");
4232
+ * //generate codetext
4233
+ * let codetext = textBuilder.getExtendedCodetext();
4234
+ * //generate
4235
+ * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, null, codetext);
4236
+ * generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT);
4237
+ * generator.save("test.bmp", BarcodeImageFormat.BMP);
4238
+ * </pre>
4239
+ * </pre>
4240
+ * </pre></blockquote></hr></p>
4241
+ */
4242
+ class DataMatrixExtCodetextBuilder extends ExtCodetextBuilder
4243
+ {
4244
+ static JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwDataMatrixExtCodetextBuilder";
4245
+
4246
+ constructor()
4247
+ {
4248
+ let java_class_link = java.import(DataMatrixExtCodetextBuilder.JAVA_CLASS_NAME);
4249
+ let javaClass = new java_class_link();
4250
+ super(javaClass);
4251
+ }
4252
+
4253
+ static construct(javaClass)
4254
+ {
4255
+ let obj = new DataMatrixExtCodetextBuilder();
4256
+ obj.setJavaClass(javaClass);
4257
+ return obj;
4258
+ }
4259
+
4260
+ init()
4261
+ {
4262
+ }
4263
+ /**
4264
+ * <p>
4265
+ * Adds codetext with Extended Channel Identifier with defined encode mode
4266
+ * </p>
4267
+ * @param ECIEncoding Extended Channel Identifier
4268
+ * @param encodeMode Encode mode value
4269
+ * @param codetext Codetext in unicode to add as extended codetext item with Extended Channel Identifier with defined encode mode
4270
+ */
4271
+ addECICodetextWithEncodeMode(ECIEncoding, encodeMode, codetext)
4272
+ {
4273
+ this.getJavaClass().addECICodetextWithEncodeModeSync(ECIEncoding, encodeMode, codetext);
4274
+ }
4275
+
4276
+ /**
4277
+ * <p>
4278
+ * Adds codetext with defined encode mode to the extended codetext items
4279
+ * </p>
4280
+ * @param encodeMode Encode mode value
4281
+ * @param codetext Codetext in unicode to add as extended codetext item
4282
+ */
4283
+ addCodetextWithEncodeMode(encodeMode, codetext)
4284
+ {
4285
+ this.getJavaClass().addCodetextWithEncodeModeSync(encodeMode, codetext);
4286
+ }
4287
+
4288
+ /**
4289
+ * <p>
4290
+ * Generates Extended codetext from the extended codetext list.
4291
+ * </p>
4292
+ * @return Extended codetext as string
4293
+ */
4294
+ getExtendedCodetext()
4295
+ {
4296
+ return this.getJavaClass().getExtendedCodetextSync();
4297
+ }
4298
+ }
4299
+
4089
4300
  /**
4090
4301
  * Enable checksum validation during recognition for 1D barcodes.<br>
4091
4302
  * Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.<br>
@@ -4230,24 +4441,20 @@ CodabarSymbol =
4230
4441
  */
4231
4442
  DataMatrixEncodeMode =
4232
4443
  {
4233
-
4234
4444
  /**
4235
4445
  * Automatically pick up the best encode mode for datamatrix encoding
4236
4446
  */
4237
4447
  AUTO: 0,
4448
+
4238
4449
  /**
4239
4450
  * Encodes one alphanumeric or two numeric characters per byte
4240
4451
  */
4241
4452
  ASCII: 1,
4453
+
4242
4454
  /**
4243
4455
  * Encode 8 bit values
4244
4456
  */
4245
- FULL: 6,
4246
- /**
4247
- * Encode with the encoding specified in BarCodeGenerator.CodeTextEncoding
4248
- */
4249
- CUSTOM: 7,
4250
-
4457
+ BYTES: 6,
4251
4458
 
4252
4459
  /**
4253
4460
  * Uses C40 encoding. Encodes Upper-case alphanumeric, Lower case and special characters
@@ -7010,6 +7217,443 @@ HanXinEncodeMode =
7010
7217
  EXTENDED:5
7011
7218
  }
7012
7219
 
7220
+ /**
7221
+ * <p>
7222
+ * Specify the type of the ECC to encode.
7223
+ * </p>
7224
+ */
7225
+ DataMatrixVersion =
7226
+ {
7227
+ /**
7228
+ * <p>
7229
+ * Specifies to automatically pick up the smallest size for DataMatrix.
7230
+ * This is default value.
7231
+ * </p>
7232
+ */
7233
+ AUTO:0,
7234
+ /**
7235
+ * <p>
7236
+ * Instructs to get symbol sizes from Rows And Columns parameters. Note that DataMatrix does not support
7237
+ * custom rows and columns numbers. This option is not recommended to use.
7238
+ * </p>
7239
+ */
7240
+ ROWS_COLUMNS:1,
7241
+ /**
7242
+ * <p>
7243
+ * Specifies size of 9 x 9 modules for ECC000 type.
7244
+ * </p>
7245
+ */
7246
+ ECC000_9x9:2,
7247
+ /**
7248
+ * <p>
7249
+ * Specifies size of 11 x 11 modules for ECC000-ECC050 types.
7250
+ * </p>
7251
+ */
7252
+ ECC000_050_11x11:3,
7253
+ /**
7254
+ * <p>
7255
+ * Specifies size of 13 x 13 modules for ECC000-ECC100 types.
7256
+ * </p>
7257
+ */
7258
+ ECC000_100_13x13:4,
7259
+ /**
7260
+ * <p>
7261
+ * Specifies size of 15 x 15 modules for ECC000-ECC100 types.
7262
+ * </p>
7263
+ */
7264
+ ECC000_100_15x15:5,
7265
+ /**
7266
+ * <p>
7267
+ * Specifies size of 17 x 17 modules for ECC000-ECC140 types.
7268
+ * </p>
7269
+ */
7270
+ ECC000_140_17x17:6,
7271
+ /**
7272
+ * <p>
7273
+ * Specifies size of 19 x 19 modules for ECC000-ECC140 types.
7274
+ * </p>
7275
+ */
7276
+ ECC000_140_19x19:7,
7277
+ /**
7278
+ * <p>
7279
+ * Specifies size of 21 x 21 modules for ECC000-ECC140 types.
7280
+ * </p>
7281
+ */
7282
+ ECC000_140_21x21:8,
7283
+ /**
7284
+ * <p>
7285
+ * Specifies size of 23 x 23 modules for ECC000-ECC140 types.
7286
+ * </p>
7287
+ */
7288
+ ECC000_140_23x23:9,
7289
+ /**
7290
+ * <p>
7291
+ * Specifies size of 25 x 25 modules for ECC000-ECC140 types.
7292
+ * </p>
7293
+ */
7294
+ ECC000_140_25x25:10,
7295
+ /**
7296
+ * <p>
7297
+ * Specifies size of 27 x 27 modules for ECC000-ECC140 types.
7298
+ * </p>
7299
+ */
7300
+ ECC000_140_27x27:11,
7301
+ /**
7302
+ * <p>
7303
+ * Specifies size of 29 x 29 modules for ECC000-ECC140 types.
7304
+ * </p>
7305
+ */
7306
+ ECC000_140_29x29:12,
7307
+ /**
7308
+ * <p>
7309
+ * Specifies size of 31 x 31 modules for ECC000-ECC140 types.
7310
+ * </p>
7311
+ */
7312
+ ECC000_140_31x31:13,
7313
+ /**
7314
+ * <p>
7315
+ * Specifies size of 33 x 33 modules for ECC000-ECC140 types.
7316
+ * </p>
7317
+ */
7318
+ ECC000_140_33x33:14,
7319
+ /**
7320
+ * <p>
7321
+ * Specifies size of 35 x 35 modules for ECC000-ECC140 types.
7322
+ * </p>
7323
+ */
7324
+ ECC000_140_35x35:15,
7325
+ /**
7326
+ * <p>
7327
+ * Specifies size of 37 x 37 modules for ECC000-ECC140 types.
7328
+ * </p>
7329
+ */
7330
+ ECC000_140_37x37:16,
7331
+ /**
7332
+ * <p>
7333
+ * Specifies size of 39 x 39 modules for ECC000-ECC140 types.
7334
+ * </p>
7335
+ */
7336
+ ECC000_140_39x39:17,
7337
+ /**
7338
+ * <p>
7339
+ * Specifies size of 41 x 41 modules for ECC000-ECC140 types.
7340
+ * </p>
7341
+ */
7342
+ ECC000_140_41x41:18,
7343
+ /**
7344
+ * <p>
7345
+ * Specifies size of 43 x 43 modules for ECC000-ECC140 types.
7346
+ * </p>
7347
+ */
7348
+ ECC000_140_43x43:19,
7349
+ /**
7350
+ * <p>
7351
+ * Specifies size of 45 x 45 modules for ECC000-ECC140 types.
7352
+ * </p>
7353
+ */
7354
+ ECC000_140_45x45:20,
7355
+ /**
7356
+ * <p>
7357
+ * Specifies size of 47 x 47 modules for ECC000-ECC140 types.
7358
+ * </p>
7359
+ */
7360
+ ECC000_140_47x47:21,
7361
+ /**
7362
+ * <p>
7363
+ * Specifies size of 49 x 49 modules for ECC000-ECC140 types.
7364
+ * </p>
7365
+ */
7366
+ ECC000_140_49x49:22,
7367
+ /**
7368
+ * <p>
7369
+ * Specifies size of 10 x 10 modules for ECC200 type.
7370
+ * </p>
7371
+ */
7372
+ ECC200_10x10:23,
7373
+ /**
7374
+ * <p>
7375
+ * Specifies size of 12 x 12 modules for ECC200 type.
7376
+ * </p>
7377
+ */
7378
+ ECC200_12x12:24,
7379
+ /**
7380
+ * <p>
7381
+ * Specifies size of 14 x 14 modules for ECC200 type.
7382
+ * </p>
7383
+ */
7384
+ ECC200_14x14:25,
7385
+ /**
7386
+ * <p>
7387
+ * Specifies size of 16 x 16 modules for ECC200 type.
7388
+ * </p>
7389
+ */
7390
+ ECC200_16x16:26,
7391
+ /**
7392
+ * <p>
7393
+ * Specifies size of 18 x 18 modules for ECC200 type.
7394
+ * </p>
7395
+ */
7396
+ ECC200_18x18:27,
7397
+ /**
7398
+ * <p>
7399
+ * Specifies size of 20 x 20 modules for ECC200 type.
7400
+ * </p>
7401
+ */
7402
+ ECC200_20x20:28,
7403
+ /**
7404
+ * <p>
7405
+ * Specifies size of 22 x 22 modules for ECC200 type.
7406
+ * </p>
7407
+ */
7408
+ ECC200_22x22:29,
7409
+ /**
7410
+ * <p>
7411
+ * Specifies size of 24 x 24 modules for ECC200 type.
7412
+ * </p>
7413
+ */
7414
+ ECC200_24x24:30,
7415
+ /**
7416
+ * <p>
7417
+ * Specifies size of 26 x 26 modules for ECC200 type.
7418
+ * </p>
7419
+ */
7420
+ ECC200_26x26:31,
7421
+ /**
7422
+ * <p>
7423
+ * Specifies size of 32 x 32 modules for ECC200 type.
7424
+ * </p>
7425
+ */
7426
+ ECC200_32x32:32,
7427
+ /**
7428
+ * <p>
7429
+ * Specifies size of 36 x 36 modules for ECC200 type.
7430
+ * </p>
7431
+ */
7432
+ ECC200_36x36:33,
7433
+ /**
7434
+ * <p>
7435
+ * Specifies size of 40 x 40 modules for ECC200 type.
7436
+ * </p>
7437
+ */
7438
+ ECC200_40x40:34,
7439
+ /**
7440
+ * <p>
7441
+ * Specifies size of 44 x 44 modules for ECC200 type.
7442
+ * </p>
7443
+ */
7444
+ ECC200_44x44:35,
7445
+ /**
7446
+ * <p>
7447
+ * Specifies size of 48 x 48 modules for ECC200 type.
7448
+ * </p>
7449
+ */
7450
+ ECC200_48x48:36,
7451
+ /**
7452
+ * <p>
7453
+ * Specifies size of 52 x 52 modules for ECC200 type.
7454
+ * </p>
7455
+ */
7456
+ ECC200_52x52:37,
7457
+ /**
7458
+ * <p>
7459
+ * Specifies size of 64 x 64 modules for ECC200 type.
7460
+ * </p>
7461
+ */
7462
+ ECC200_64x64:38,
7463
+ /**
7464
+ * <p>
7465
+ * Specifies size of 72 x 72 modules for ECC200 type.
7466
+ * </p>
7467
+ */
7468
+ ECC200_72x72:39,
7469
+ /**
7470
+ * <p>
7471
+ * Specifies size of 80 x 80 modules for ECC200 type.
7472
+ * </p>
7473
+ */
7474
+ ECC200_80x80:40,
7475
+ /**
7476
+ * <p>
7477
+ * Specifies size of 88 x 88 modules for ECC200 type.
7478
+ * </p>
7479
+ */
7480
+ ECC200_88x88:41,
7481
+ /**
7482
+ * <p>
7483
+ * Specifies size of 96 x 96 modules for ECC200 type.
7484
+ * </p>
7485
+ */
7486
+ ECC200_96x96:42,
7487
+ /**
7488
+ * <p>
7489
+ * Specifies size of 104 x 104 modules for ECC200 type.
7490
+ * </p>
7491
+ */
7492
+ ECC200_104x104:43,
7493
+ /**
7494
+ * <p>
7495
+ * Specifies size of 120 x 120 modules for ECC200 type.
7496
+ * </p>
7497
+ */
7498
+ ECC200_120x120:44,
7499
+ /**
7500
+ * <p>
7501
+ * Specifies size of 132 x 132 modules for ECC200 type.
7502
+ * </p>
7503
+ */
7504
+ ECC200_132x132:45,
7505
+ /**
7506
+ * <p>
7507
+ * Specifies size of 144 x 144 modules for ECC200 type.
7508
+ * </p>
7509
+ */
7510
+ ECC200_144x144:46,
7511
+ /**
7512
+ * <p>
7513
+ * Specifies size of 8 x 18 modules for ECC200 type.
7514
+ * </p>
7515
+ */
7516
+ ECC200_8x18:47,
7517
+ /**
7518
+ * <p>
7519
+ * Specifies size of 8 x 32 modules for ECC200 type.
7520
+ * </p>
7521
+ */
7522
+ ECC200_8x32:48,
7523
+ /**
7524
+ * <p>
7525
+ * Specifies size of 12 x 26 modules for ECC200 type.
7526
+ * </p>
7527
+ */
7528
+ ECC200_12x26:49,
7529
+ /**
7530
+ * <p>
7531
+ * Specifies size of 12 x 36 modules for ECC200 type.
7532
+ * </p>
7533
+ */
7534
+ ECC200_12x36:50,
7535
+ /**
7536
+ * <p>
7537
+ * Specifies size of 16 x 36 modules for ECC200 type.
7538
+ * </p>
7539
+ */
7540
+ ECC200_16x36:51,
7541
+ /**
7542
+ * <p>
7543
+ * Specifies size of 16 x 48 modules for ECC200 type.
7544
+ * </p>
7545
+ */
7546
+ ECC200_16x48:52,
7547
+ /**
7548
+ * <p>
7549
+ * Specifies size of 8 x 48 modules for DMRE barcodes.
7550
+ * </p>
7551
+ */
7552
+ DMRE_8x48:53,
7553
+ /**
7554
+ * <p>
7555
+ * Specifies size of 8 x 64 modules for DMRE barcodes.
7556
+ * </p>
7557
+ */
7558
+ DMRE_8x64:54,
7559
+ /**
7560
+ * <p>
7561
+ * Specifies size of 8 x 80 modules for DMRE barcodes.
7562
+ * </p>
7563
+ */
7564
+ DMRE_8x80:55,
7565
+ /**
7566
+ * <p>
7567
+ * Specifies size of 8 x 96 modules for DMRE barcodes.
7568
+ * </p>
7569
+ */
7570
+ DMRE_8x96:56,
7571
+ /**
7572
+ * <p>
7573
+ * Specifies size of 8 x 120 modules for DMRE barcodes.
7574
+ * </p>
7575
+ */
7576
+ DMRE_8x120:57,
7577
+ /**
7578
+ * <p>
7579
+ * Specifies size of 8 x 144 modules for DMRE barcodes.
7580
+ * </p>
7581
+ */
7582
+ DMRE_8x144:58,
7583
+ /**
7584
+ * <p>
7585
+ * Specifies size of 12 x 64 modules for DMRE barcodes.
7586
+ * </p>
7587
+ */
7588
+ DMRE_12x64:59,
7589
+ /**
7590
+ * <p>
7591
+ * Specifies size of 12 x 88 modules for DMRE barcodes.
7592
+ * </p>
7593
+ */
7594
+ DMRE_12x88:60,
7595
+ /**
7596
+ * <p>
7597
+ * Specifies size of 16 x 64 modules for DMRE barcodes.
7598
+ * </p>
7599
+ */
7600
+ DMRE_16x64:61,
7601
+ /**
7602
+ * <p>
7603
+ * Specifies size of 20 x 36 modules for DMRE barcodes.
7604
+ * </p>
7605
+ */
7606
+ DMRE_20x36:62,
7607
+ /**
7608
+ * <p>
7609
+ * Specifies size of 20 x 44 modules for DMRE barcodes.
7610
+ * </p>
7611
+ */
7612
+ DMRE_20x44:63,
7613
+ /**
7614
+ * <p>
7615
+ * Specifies size of 20 x 64 modules for DMRE barcodes.
7616
+ * </p>
7617
+ */
7618
+ DMRE_20x64:64,
7619
+ /**
7620
+ * <p>
7621
+ * Specifies size of 22 x 48 modules for DMRE barcodes.
7622
+ * </p>
7623
+ */
7624
+ DMRE_22x48:65,
7625
+ /**
7626
+ * <p>
7627
+ * Specifies size of 24 x 48 modules for DMRE barcodes.
7628
+ * </p>
7629
+ */
7630
+ DMRE_24x48:66,
7631
+ /**
7632
+ * <p>
7633
+ * Specifies size of 24 x 64 modules for DMRE barcodes.
7634
+ * </p>
7635
+ */
7636
+ DMRE_24x64:67,
7637
+ /**
7638
+ * <p>
7639
+ * Specifies size of 26 x 40 modules for DMRE barcodes.
7640
+ * </p>
7641
+ */
7642
+ DMRE_26x40:68,
7643
+ /**
7644
+ * <p>
7645
+ * Specifies size of 26 x 48 modules for DMRE barcodes.
7646
+ * </p>
7647
+ */
7648
+ DMRE_26x48:69,
7649
+ /**
7650
+ * <p>
7651
+ * Specifies size of 26 x 64 modules for DMRE barcodes.
7652
+ * </p>
7653
+ */
7654
+ DMRE_26x64:70
7655
+ }
7656
+
7013
7657
  module.exports = {
7014
7658
  BarcodeGenerator,
7015
7659
  EncodeTypes,
@@ -7077,5 +7721,7 @@ module.exports = {
7077
7721
  HanXinErrorLevel,
7078
7722
  HanXinVersion,
7079
7723
  Code128EncodeMode,
7080
- HanXinParameters
7724
+ HanXinParameters,
7725
+ DataMatrixVersion,
7726
+ DataMatrixExtCodetextBuilder
7081
7727
  };
@@ -1638,6 +1638,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1638
1638
  _dataBarParameters;
1639
1639
  _maxiCodeParameters;
1640
1640
  _dotCodeExtendedParameters;
1641
+ _dataMatrixExtendedParameters;
1641
1642
 
1642
1643
  constructor(javaclass)
1643
1644
  {
@@ -1654,6 +1655,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1654
1655
  this._dataBarParameters = new DataBarExtendedParameters(this.getJavaClass().getDataBarSync());
1655
1656
  this._maxiCodeParameters = new MaxiCodeExtendedParameters(this.getJavaClass().getMaxiCodeSync());
1656
1657
  this._dotCodeExtendedParameters = new DotCodeExtendedParameters(this.getJavaClass().getDotCodeSync());
1658
+ this._dataMatrixExtendedParameters = new DataMatrixExtendedParameters(this.getJavaClass().getDataMatrixSync());
1657
1659
  }
1658
1660
 
1659
1661
  /**
@@ -1691,6 +1693,14 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1691
1693
  return this._dotCodeExtendedParameters;
1692
1694
  }
1693
1695
 
1696
+ /**
1697
+ * <p>Gets a DotCode additional information{@code DotCodeExtendedParameters} of recognized barcode</p>Value: A DotCode additional information{@code DotCodeExtendedParameters} of recognized barcode
1698
+ */
1699
+ getDataMatrix()
1700
+ {
1701
+ return this._dataMatrixExtendedParameters;
1702
+ }
1703
+
1694
1704
  /**
1695
1705
  * Gets a special data Code128ExtendedParameters of Code128 recognized barcode Value: A special data Code128ExtendedParameters of Code128 recognized barcode
1696
1706
  */
@@ -2962,7 +2972,7 @@ class MaxiCodeExtendedParameters extends joint.BaseJavaClass
2962
2972
  */
2963
2973
  equals(obj)
2964
2974
  {
2965
- return this.getJavaClass().equalsSync(obj);
2975
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
2966
2976
  }
2967
2977
 
2968
2978
  /**
@@ -3071,6 +3081,109 @@ class DotCodeExtendedParameters extends joint.BaseJavaClass
3071
3081
  }
3072
3082
  }
3073
3083
 
3084
+ /**
3085
+ * <p>
3086
+ * Stores special data of DataMatrix recognized barcode
3087
+ * </p><p><hr><blockquote><pre>
3088
+ * This sample shows how to get DataMatrix raw values
3089
+ * <pre>
3090
+ * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, "12345"))
3091
+ * generator.save("c:\\test.png", BarcodeImageFormat.PNG);
3092
+ *
3093
+ * let reader = new BarCodeReader("c:\\test.png", null, DecodeType.DATA_MATRIX))
3094
+ * reader.readBarCodes().forEach(function(result, i, results)
3095
+ * {
3096
+ * console.log("BarCode type: " + result.getCodeTypeName());
3097
+ * console.log("BarCode codetext: " + result.getCodeText());
3098
+ * console.log("DataMatrix barcode ID: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodeId());
3099
+ * console.log("DataMatrix barcodes count: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodesCount());
3100
+ * console.log("DataMatrix file ID: " + result.getExtended().getDataMatrix().getStructuredAppendFileId());
3101
+ * console.log("DataMatrix is reader programming: " + result.getExtended().getDataMatrix().isReaderProgramming());
3102
+ * });
3103
+ * </pre>
3104
+ * </pre></blockquote></hr></p>
3105
+ */
3106
+ class DataMatrixExtendedParameters extends joint.BaseJavaClass
3107
+ {
3108
+ constructor(javaClass)
3109
+ {
3110
+ super(javaClass);
3111
+ }
3112
+
3113
+ init()
3114
+ {
3115
+ }
3116
+
3117
+ /**
3118
+ * <p>Gets the DataMatrix structured append mode barcodes count. Default value is -1. Count must be a value from 1 to 35.</p>Value: The count of the DataMatrix structured append mode barcode.
3119
+ */
3120
+ getStructuredAppendBarcodesCount()
3121
+ {
3122
+ return this.getJavaClass().getStructuredAppendBarcodesCountSync();
3123
+ }
3124
+
3125
+ /**
3126
+ * <p>Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.</p>Value: The ID of the DataMatrix structured append mode barcode.
3127
+ */
3128
+ getStructuredAppendBarcodeId()
3129
+ {
3130
+ return this.getJavaClass().getStructuredAppendBarcodeIdSync();
3131
+ }
3132
+
3133
+ /**
3134
+ * <p>Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.</p>Value: The ID of the DataMatrix structured append mode barcode.
3135
+ */
3136
+ getStructuredAppendFileId()
3137
+ {
3138
+ return this.getJavaClass().getStructuredAppendFileIdSync();
3139
+ }
3140
+
3141
+ /**
3142
+ * <p>
3143
+ * Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.
3144
+ * Default value is false.
3145
+ * </p>
3146
+ */
3147
+ isReaderProgramming()
3148
+ {
3149
+ return this.getJavaClass().isReaderProgrammingSync();
3150
+ }
3151
+
3152
+ /**
3153
+ * <p>
3154
+ * Returns a value indicating whether this instance is equal to a specified {@code DataMatrixExtendedParameters} value.
3155
+ * </p>
3156
+ * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
3157
+ * @param obj An System.Object value to compare to this instance.
3158
+ */
3159
+ equals(obj)
3160
+ {
3161
+ return this.getJavaClass().equalsSync(obj.getJavaClass());
3162
+ }
3163
+
3164
+ /**
3165
+ * <p>
3166
+ * Returns the hash code for this instance.
3167
+ * </p>
3168
+ * @return A 32-bit signed integer hash code.
3169
+ */
3170
+ hashCode()
3171
+ {
3172
+ return this.getJavaClass().hashCodeSync();
3173
+ }
3174
+
3175
+ /**
3176
+ * <p>
3177
+ * Returns a human-readable string representation of this {@code DataMatrixExtendedParameters}.
3178
+ * </p>
3179
+ * @return A string that represents this {@code DataMatrixExtendedParameters}.
3180
+ */
3181
+ toString()
3182
+ {
3183
+ return this.getJavaClass().toStringSync();
3184
+ }
3185
+ }
3186
+
3074
3187
  /**
3075
3188
  * Specify the type of barcode to read.
3076
3189
  *
@@ -3770,5 +3883,6 @@ module.exports = {
3770
3883
  BarcodeSettings,
3771
3884
  CustomerInformationInterpretingType,
3772
3885
  RecognitionAbortedException,
3773
- DotCodeExtendedParameters
3886
+ DotCodeExtendedParameters,
3887
+ DataMatrixExtendedParameters
3774
3888
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.barcode",
3
- "version": "23.6.0",
3
+ "version": "23.7.0",
4
4
  "description": "barcode generation and recognition component",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"