aspose.barcode 22.1.5 → 22.4.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.
@@ -7,7 +7,7 @@ const aspose_barcode = barcode_.AsposeBarcode
7
7
  // const barcode_ = require("aspose.barcode");
8
8
  // const aspose_barcode = barcode_.AsposeBarcode
9
9
 
10
- const path_to_license_file = "./lic/Aspose.BarCode.Nodejs.via.Java.lic";
10
+ const path_to_license_file = "./lic/Aspose.BarCode.NodeJsviaJava.lic";
11
11
  const fs = require("fs");
12
12
 
13
13
 
@@ -3,7 +3,9 @@ Instead of first four lines should be added
3
3
  const barcode_ = require("aspose.barcode");
4
4
  const aspose_barcode = barcode_.AsposeBarcode
5
5
  2. Run command 'npm install'
6
- 3. Put the license file 'Aspose.BarCode.Nodejs.via.Java.lic' to the folder lic.
6
+ 3. Put the license file 'Aspose.BarCode.NodeJsviaJava.lic' to the folder lic.
7
+ The expected name of the license file is Aspose.BarCode.NodeJsviaJava.lic.
8
+ You can change it by changing line 10 of ExampleAssist.js.
7
9
  4. Open and run every file consistently :
8
10
  how_to_generate_and_read_example.js
9
11
  how_to_generate_barcode_examples.js
@@ -7,7 +7,7 @@ const recognition_ = require("./Recognition");
7
7
 
8
8
  function pushJar()
9
9
  {
10
- java.classpath.push(__dirname + "/aspose-barcode-nodejs-22.1.jar");
10
+ java.classpath.push(__dirname + "/aspose-barcode-nodejs-22.4.jar");
11
11
  }
12
12
  pushJar();
13
13
 
@@ -1297,6 +1297,32 @@ class BarcodeSvmDetectorSettings extends joint.BaseJavaClass
1297
1297
  return "com.aspose.mw.barcode.recognition.MwBarcodeSvmDetectorSettings";
1298
1298
  }
1299
1299
 
1300
+ constructor(aType)
1301
+ {
1302
+ let java_class_link = new java.import(BarcodeSvmDetectorSettings.javaClassName);
1303
+ let javaClass = new java_class_link(BarcodeSvmDetectorSettings.NormalQuality);
1304
+ switch (aType)
1305
+ {
1306
+ case BarcodeSvmDetectorSettings.HighPerformance:
1307
+ javaClass = new java_class_link(BarcodeSvmDetectorSettings.HighPerformance);
1308
+ break;
1309
+ case BarcodeSvmDetectorSettings.HighQuality:
1310
+ javaClass = new java_class_link(BarcodeSvmDetectorSettings.HighQuality);
1311
+ break;
1312
+ case BarcodeSvmDetectorSettings.MaxQuality:
1313
+ javaClass = new java_class_link(BarcodeSvmDetectorSettings.MaxQuality);
1314
+ break;
1315
+ }
1316
+ super(javaClass);
1317
+ }
1318
+
1319
+ static construct(javaClass)
1320
+ {
1321
+ let barcodeSvmDetectorSettings = new BarcodeSvmDetectorSettings(BarcodeSvmDetectorSettings.NormalQuality);
1322
+ barcodeSvmDetectorSettings.setJavaClass(javaClass);
1323
+ return barcodeSvmDetectorSettings;
1324
+ }
1325
+
1300
1326
  /**
1301
1327
  * High performance detection preset.
1302
1328
  *
@@ -1339,12 +1365,6 @@ class BarcodeSvmDetectorSettings extends joint.BaseJavaClass
1339
1365
 
1340
1366
  scanWindowSizes;
1341
1367
 
1342
- constructor(javaclass)
1343
- {
1344
- super(javaclass);
1345
- this.init()
1346
- }
1347
-
1348
1368
  init()
1349
1369
  {
1350
1370
  this.scanWindowSizes = BarcodeSvmDetectorSettings.convertScanWindowSizes(this.getJavaClass().getScanWindowSizesSync());
@@ -1969,7 +1989,7 @@ class QualitySettings extends joint.BaseJavaClass
1969
1989
 
1970
1990
  init()
1971
1991
  {
1972
- this.detectorSettings = new BarcodeSvmDetectorSettings(this.getJavaClass().getDetectorSettingsSync());
1992
+ this.detectorSettings = BarcodeSvmDetectorSettings.construct(this.getJavaClass().getDetectorSettingsSync());
1973
1993
  }
1974
1994
 
1975
1995
  /**
@@ -2314,6 +2334,43 @@ class QualitySettings extends joint.BaseJavaClass
2314
2334
  this.getJavaClass().setAllowOneDFastBarcodesDetectorSync(value);
2315
2335
  }
2316
2336
 
2337
+ /**
2338
+ * <p>
2339
+ * Switches to the old barcode detector.
2340
+ * </p>Value:
2341
+ * Switches to the old barcode detector.
2342
+ */
2343
+ getUseOldBarcodeDetector()
2344
+ {
2345
+ try
2346
+ {
2347
+ this.getJavaClass().getUseOldBarcodeDetectorSync();
2348
+ }
2349
+ catch (ex)
2350
+ {
2351
+ throw new BarcodeException(ex.getMessage());
2352
+ }
2353
+ }
2354
+
2355
+ /**
2356
+ * <p>
2357
+ * Switches to the old barcode detector.
2358
+ * </p>Value:
2359
+ * Switches to the old barcode detector.
2360
+ */
2361
+ //@XmlSerialization (type = XmlSerializationType.Element)
2362
+ setUseOldBarcodeDetector(value)
2363
+ {
2364
+ try
2365
+ {
2366
+ this.getJavaClass().setUseOldBarcodeDetectorSync(value);
2367
+ }
2368
+ catch (ex)
2369
+ {
2370
+ throw new BarcodeException(ex.getMessage());
2371
+ }
2372
+ }
2373
+
2317
2374
  /**
2318
2375
  * Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize sligtly damaged Postal barcodes.
2319
2376
  * Value:
@@ -2467,7 +2524,7 @@ class QualitySettings extends joint.BaseJavaClass
2467
2524
  */
2468
2525
  setDetectorSettings(value)
2469
2526
  {
2470
- this.getJavaClass().setDetectorSettingsSync(value);
2527
+ this.getJavaClass().setDetectorSettingsSync(value.getJavaClass());
2471
2528
  this.detectorSettings = value;
2472
2529
  }
2473
2530
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.barcode",
3
- "version": "22.1.5",
3
+ "version": "22.4.0",
4
4
  "description": "barcode generation and recognition component",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"