aspose.barcode 22.6.0 → 22.9.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,14 +4,19 @@ 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-22.9.jar";
8
+ const jar_path_ = __dirname + jar_name_;
9
+ const fs = require("fs");
7
10
 
8
11
  function pushJar()
9
12
  {
10
- java.classpath.push(__dirname + "/aspose-barcode-nodejs-22.6.jar");
13
+ java.classpath.push(__dirname + "/aspose-barcode-nodejs-22.9.jar");
11
14
  }
12
15
  pushJar();
13
16
 
14
- module.exports = { complexbarcode_, recognition_, generation_,joint_,
17
+
18
+ module.exports = { jar_name_, jar_path_,
19
+ complexbarcode_, recognition_, generation_,joint_,
15
20
  BarcodeGenerator : generation_.BarcodeGenerator,
16
21
  BarcodeParameters: generation_.BarcodeParameters,
17
22
  BaseGenerationParameters : generation_.BaseGenerationParameters,
@@ -45,7 +45,7 @@ class IComplexCodetext extends joint.BaseJavaClass
45
45
 
46
46
  /**
47
47
  * ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation.
48
- *
48
+ * @example
49
49
  * This sample shows how to create and save a SwissQR image.
50
50
  * let swissQRCodetext = new SwissQRCodetext(null);
51
51
  * swissQRCodetext.getBill().setAccount("Account");
@@ -448,8 +448,6 @@ class AlternativeScheme extends joint.BaseJavaClass {
448
448
  *
449
449
  * The instruction consists of a two letter abbreviation for the scheme, a separator characters
450
450
  * and a sequence of parameters(separated by the character at index 2).
451
- *
452
- * Value: The payment instruction.
453
451
  */
454
452
  getInstruction() {
455
453
  return this.getJavaClass().getInstructionSync();
@@ -459,7 +457,6 @@ class AlternativeScheme extends joint.BaseJavaClass {
459
457
  * Gets the payment instruction for a given bill.
460
458
  * The instruction consists of a two letter abbreviation for the scheme, a separator characters
461
459
  * and a sequence of parameters(separated by the character at index 2).
462
- * Value: The payment instruction.
463
460
  */
464
461
  setInstruction(value) {
465
462
  this.getJavaClass().setInstructionSync(value);
@@ -489,7 +486,7 @@ class AlternativeScheme extends joint.BaseJavaClass {
489
486
 
490
487
  /**
491
488
  * ComplexCodetextReader decodes codetext to specified complex barcode type.
492
- *
489
+ * @example
493
490
  * This sample shows how to recognize and decode SwissQR image.
494
491
  *
495
492
  * let cr = new BarCodeReader("SwissQRCodetext.png", DecodeType.QR);
@@ -582,7 +579,7 @@ class SwissQRBill extends joint.BaseJavaClass {
582
579
 
583
580
  /**
584
581
  * Gets the version of the SwissQR bill standard.
585
- * Value: The SwissQR bill standard version.
582
+ * @return The SwissQR bill standard version.
586
583
  */
587
584
  getVersion() {
588
585
  return this.getJavaClass().getVersionSync();
@@ -601,7 +598,7 @@ class SwissQRBill extends joint.BaseJavaClass {
601
598
  *
602
599
  * Valid values are between 0.01 and 999,999,999.99.
603
600
  *
604
- * Value: The payment amount.
601
+ * @return The payment amount.
605
602
  */
606
603
  getAmount() {
607
604
  return this.getJavaClass().getAmountSync();
@@ -623,7 +620,7 @@ class SwissQRBill extends joint.BaseJavaClass {
623
620
  *
624
621
  * Valid values are "CHF" and "EUR".
625
622
  *
626
- * Value: The payment currency.
623
+ * @return The payment currency.
627
624
  */
628
625
  getCurrency() {
629
626
  return this.getJavaClass().getCurrencySync();
@@ -646,7 +643,7 @@ class SwissQRBill extends joint.BaseJavaClass {
646
643
  * Account numbers must be valid IBANs of a bank of Switzerland or
647
644
  * Liechtenstein. Spaces are allowed in the account number.
648
645
  *
649
- * Value: The creditor account number.
646
+ * @return The creditor account number.
650
647
  */
651
648
  getAccount() {
652
649
  return this.getJavaClass().getAccountSync();
@@ -666,7 +663,7 @@ class SwissQRBill extends joint.BaseJavaClass {
666
663
 
667
664
  /**
668
665
  * Gets the creditor address.
669
- * Value: The creditor address.
666
+ * @return The creditor address.
670
667
  */
671
668
  getCreditor() {
672
669
  return this.creditor;
@@ -691,7 +688,7 @@ class SwissQRBill extends joint.BaseJavaClass {
691
688
  * (corresponding to ISR reference form) or a valid creditor reference
692
689
  * according to ISO 11649 ("RFxxxx"). Both may contain spaces for formatting.
693
690
  *
694
- * Value: The creditor payment reference.
691
+ * @return The creditor payment reference.
695
692
  */
696
693
  getReference() {
697
694
  return this.getJavaClass().getReferenceSync();
@@ -707,7 +704,7 @@ class SwissQRBill extends joint.BaseJavaClass {
707
704
  * (corresponding to ISR reference form) or a valid creditor reference
708
705
  * according to ISO 11649 ("RFxxxx"). Both may contain spaces for formatting.
709
706
  *
710
- * Value: The creditor payment reference.
707
+ * @return The creditor payment reference.
711
708
  */
712
709
  setReference(value) {
713
710
  this.getJavaClass().setReferenceSync(value);
@@ -732,7 +729,7 @@ class SwissQRBill extends joint.BaseJavaClass {
732
729
  * The debtor is optional. If it is omitted, both setting this field to
733
730
  * null or setting an address with all null or empty values is ok.
734
731
  *
735
- * Value: The debtor address.
732
+ * @return The debtor address.
736
733
  */
737
734
  getDebtor() {
738
735
  return this.debtor;
@@ -753,7 +750,7 @@ class SwissQRBill extends joint.BaseJavaClass {
753
750
 
754
751
  /**
755
752
  * Gets the additional unstructured message.
756
- * Value: The unstructured message.
753
+ * @return The unstructured message.
757
754
  */
758
755
  getUnstructuredMessage() {
759
756
  return this.getJavaClass().getUnstructuredMessageSync();
@@ -769,7 +766,7 @@ class SwissQRBill extends joint.BaseJavaClass {
769
766
 
770
767
  /**
771
768
  * Gets the additional structured bill information.
772
- * Value: The structured bill information.
769
+ * @return The structured bill information.
773
770
  */
774
771
  getBillInformation() {
775
772
  return this.getJavaClass().getBillInformationSync();
@@ -788,7 +785,7 @@ class SwissQRBill extends joint.BaseJavaClass {
788
785
  *
789
786
  * A maximum of two schemes with parameters are allowed.
790
787
  *
791
- * Value: The alternative payment schemes.
788
+ * @return The alternative payment schemes.
792
789
  */
793
790
  getAlternativeSchemes() {
794
791
  return SwissQRBill.convertAlternativeSchemes(this.getJavaClass().getAlternativeSchemesSync());
package/lib/Generation.js CHANGED
@@ -47,7 +47,7 @@ class BarcodeGenerator extends joint.BaseJavaClass
47
47
 
48
48
  static construct(javaClass)
49
49
  {
50
- let barcodeGenerator = new BarcodeGenerator( null, null);
50
+ let barcodeGenerator = new BarcodeGenerator(null, null);
51
51
  barcodeGenerator.setJavaClass(javaClass);
52
52
  return barcodeGenerator;
53
53
  }
@@ -152,8 +152,7 @@ class BarcodeGenerator extends joint.BaseJavaClass
152
152
  fs.writeFileSync(filePath, xmlData);
153
153
  }
154
154
  return isSaved;
155
- }
156
- catch (ex)
155
+ } catch (ex)
157
156
  {
158
157
  throw new BarcodeException(ex.getMessage());
159
158
  }
@@ -174,8 +173,7 @@ class BarcodeGenerator extends joint.BaseJavaClass
174
173
  let offset = 6;
175
174
  xmlData = xmlData.substr(offset);
176
175
  return BarcodeGenerator.construct(java(BarcodeGenerator.javaClassName).importFromXmlSync(xmlData));
177
- }
178
- catch (ex)
176
+ } catch (ex)
179
177
  {
180
178
  throw new BarcodeException(ex.getMessage());
181
179
  }
@@ -376,7 +374,7 @@ class BarcodeParameters extends joint.BaseJavaClass
376
374
  /**
377
375
  * Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only
378
376
  * If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
379
- *Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \\CR stands for CR.
377
+ * Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \\CR stands for CR.
380
378
  */
381
379
  getEnableEscape()
382
380
  {
@@ -3284,7 +3282,8 @@ class CouponParameters extends joint.BaseJavaClass
3284
3282
  * Defines a particular format for text, including font face, size, and style attributes<br>
3285
3283
  * where size in Unit value property.<br>
3286
3284
  * @example
3287
- * //This sample shows how to create and save a BarCode image.
3285
+ * This sample shows how to create and save a BarCode image.
3286
+ *
3288
3287
  * let generator = new BarcodeGenerator(EncodeTypes.CODE_128);
3289
3288
  * generator.getParameters().getCaptionAbove().setText("CAPTION ABOOVE");
3290
3289
  * generator.getParameters().getCaptionAbove().setVisible(true);
@@ -3363,9 +3362,7 @@ class FontUnit extends joint.BaseJavaClass
3363
3362
  }
3364
3363
 
3365
3364
  /**
3366
- * <p>
3367
3365
  * Helper class for automatic codetext generation of the Extended Codetext Mode
3368
- * </p>
3369
3366
  */
3370
3367
  class ExtCodetextBuilder extends joint.BaseJavaClass
3371
3368
  {
@@ -4832,8 +4829,11 @@ EncodeTypes =
4832
4829
  GS_1_COMPOSITE_BAR: 71
4833
4830
  };
4834
4831
 
4835
- /*
4836
- *@enum
4832
+ /**
4833
+ * Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
4834
+ * 05 Macro craracter is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
4835
+ * 06 Macro craracter is translated to "[)>\u001E06\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
4836
+ * @enum
4837
4837
  */
4838
4838
  MacroCharacter =
4839
4839
  {
@@ -5091,74 +5091,78 @@ Code128Emulation =
5091
5091
 
5092
5092
  /**
5093
5093
  * Specifies the file format of the image.
5094
- * @enum
5094
+ * @enum
5095
5095
  */
5096
5096
  BarCodeImageFormat =
5097
5097
  {
5098
5098
  /**
5099
5099
  * Specifies the bitmap (BMP) image format.
5100
5100
  */
5101
- BMP:0,
5101
+ BMP: 0,
5102
5102
 
5103
5103
  /**
5104
5104
  * Specifies the Graphics Interchange Format (GIF) image format.
5105
5105
  */
5106
- GIF:1,
5106
+ GIF: 1,
5107
5107
 
5108
5108
  /**
5109
5109
  * Specifies the Joint Photographic Experts Group (JPEG) image format.
5110
5110
  */
5111
- JPEG:2,
5111
+ JPEG: 2,
5112
5112
 
5113
5113
  /**
5114
5114
  * Specifies the W3C Portable Network Graphics (PNG) image format.
5115
5115
  */
5116
- PNG:3,
5116
+ PNG: 3,
5117
5117
 
5118
5118
  /**
5119
5119
  * Specifies the Tagged Image File Format (TIFF) image format.
5120
5120
  */
5121
- TIFF:4,
5121
+ TIFF: 4,
5122
5122
 
5123
5123
 
5124
5124
  /**
5125
5125
  * Specifies the Tagged Image File Format (TIFF) image format in CMYK color model.
5126
5126
  */
5127
- TIFF_IN_CMYK:5,
5127
+ TIFF_IN_CMYK: 5,
5128
5128
 
5129
5129
  /**
5130
5130
  * Specifies the Enhanced Metafile (EMF) image format.
5131
5131
  */
5132
- EMF:6,
5132
+ EMF: 6,
5133
5133
 
5134
5134
  /**
5135
5135
  * Specifies the Scalable Vector Graphics (SVG) image format.
5136
5136
  */
5137
- SVG:7
5137
+ SVG: 7
5138
5138
  };
5139
5139
 
5140
+ /*
5141
+ Specifies the type of 2D component
5142
+ @enum
5143
+ */
5140
5144
  TwoDComponentType =
5141
- {
5142
- /**
5143
- * Auto select type of 2D component
5144
- */
5145
- AUTO:0,
5145
+ {
5146
+ /**
5147
+ * Auto select type of 2D component
5148
+ */
5149
+ AUTO: 0,
5146
5150
 
5147
- /**
5148
- * CC-A type of 2D component. It is a structural variant of MicroPDF417
5149
- */
5150
- CC_A:1,
5151
+ /**
5152
+ * CC-A type of 2D component. It is a structural variant of MicroPDF417
5153
+ */
5154
+ CC_A: 1,
5151
5155
 
5152
- /**
5153
- * CC-B type of 2D component. It is a MicroPDF417 symbol.
5154
- */
5155
- CC_B:2,
5156
+ /**
5157
+ * CC-B type of 2D component. It is a MicroPDF417 symbol.
5158
+ */
5159
+ CC_B: 2,
5156
5160
 
5157
- /**
5158
- * CC-C type of 2D component. It is a PDF417 symbol.
5159
- */
5160
- CC_C:3
5161
- }
5161
+ /**
5162
+ * CC-C type of 2D component. It is a PDF417 symbol.
5163
+ */
5164
+ CC_C: 3
5165
+ }
5162
5166
 
5163
5167
  module.exports = {
5164
5168
  BarcodeGenerator,
package/lib/Joint.js CHANGED
@@ -58,9 +58,6 @@ class BaseJavaClass
58
58
  return this.javaClass;
59
59
  }
60
60
 
61
- /**
62
- * @return mixed
63
- */
64
61
  setJavaClass(javaClass)
65
62
  {
66
63
  this.javaClass = javaClass;
@@ -105,13 +102,13 @@ class License extends BaseJavaClass
105
102
  /**
106
103
  * Licenses the component.
107
104
  *
108
- * @param licenseName Can be a full or short file name
105
+ * @param licensePath path to license file
109
106
  */
110
- setLicense(filePath)
107
+ setLicense(licensePath)
111
108
  {
112
109
  try
113
110
  {
114
- let file_data = License.openFile(filePath);
111
+ let file_data = License.openFile(licensePath);
115
112
  this.getJavaClass().setLicenseSync(file_data);
116
113
  } catch (ex)
117
114
  {
@@ -216,7 +213,6 @@ class Rectangle extends BaseJavaClass
216
213
 
217
214
  init()
218
215
  {
219
- // TODO: Implement init() method.
220
216
  }
221
217
 
222
218
  static get javaClassName()
@@ -309,7 +305,7 @@ class Rectangle extends BaseJavaClass
309
305
  /**
310
306
  * Intersect Shared Method
311
307
  * Produces a new Rectangle by intersecting 2 existing
312
- * Rectangles. Returns null if there is no intersection.
308
+ * Rectangles. Returns null if there is no intersection.
313
309
  */
314
310
  static intersect(a, b)
315
311
  {
@@ -375,7 +371,6 @@ class Point extends BaseJavaClass
375
371
 
376
372
  init()
377
373
  {
378
- // TODO: Implement init() method.
379
374
  }
380
375
 
381
376
  getX()
@@ -32,7 +32,7 @@ class BarCodeReader extends joint.BaseJavaClass
32
32
  */
33
33
  constructor(image, rectangles, decodeTypes)
34
34
  {
35
- if(image != null)
35
+ if (image != null)
36
36
  {
37
37
  if (joint.isPath(image))
38
38
  {
@@ -68,10 +68,14 @@ class BarCodeReader extends joint.BaseJavaClass
68
68
  {
69
69
  let java_class_link = new java.import(BarCodeReader.javaClassName);
70
70
  let java_class = null;
71
- if(image == null && rectangles == null && image == null)
71
+ if (image == null && rectangles == null && image == null)
72
+ {
72
73
  java_class = new java_class_link();
74
+ }
73
75
  else
76
+ {
74
77
  java_class = new java_class_link(image, rectangles, decodeTypes);
78
+ }
75
79
  super(java_class);
76
80
  this.init()
77
81
  } catch (e)
@@ -176,8 +180,7 @@ class BarCodeReader extends joint.BaseJavaClass
176
180
  * Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, <br>
177
181
  * Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN<br>
178
182
  * Checksum always used: Rest symbologies<br>
179
- *
180
- * @example
183
+ * <pre><code>
181
184
  * //This sample shows influence of ChecksumValidation on recognition quality and results
182
185
  *
183
186
  * let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
@@ -200,6 +203,7 @@ class BarCodeReader extends joint.BaseJavaClass
200
203
  * console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
201
204
  * console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
202
205
  * });
206
+ * </code></pre>
203
207
  *
204
208
  * The checksum validation flag.
205
209
  */
@@ -379,10 +383,9 @@ class BarCodeReader extends joint.BaseJavaClass
379
383
  this.recognizedResults[i] = new BarCodeResult(javaReadBarcodes[i]);
380
384
  }
381
385
  return this.recognizedResults;
382
- }
383
- catch (e)
386
+ } catch (e)
384
387
  {
385
- if((e.toString().includes("RecognitionAbortedException")))
388
+ if ((e.toString().includes("RecognitionAbortedException")))
386
389
  {
387
390
  throw new RecognitionAbortedException(e.toString(), null);
388
391
  }
@@ -626,11 +629,12 @@ class BarCodeReader extends joint.BaseJavaClass
626
629
  {
627
630
  let xmlData = this.getJavaClass().exportToXmlSync();
628
631
  let isSaved = xmlData != null;
629
- if(isSaved)
632
+ if (isSaved)
633
+ {
630
634
  fs.writeFileSync(xmlFile, xmlData);
635
+ }
631
636
  return isSaved;
632
- }
633
- catch (ex)
637
+ } catch (ex)
634
638
  {
635
639
  let barcode_exception = new joint.BarcodeException(ex);
636
640
  throw barcode_exception;
@@ -649,8 +653,7 @@ class BarCodeReader extends joint.BaseJavaClass
649
653
  let xmlData = fs.readFileSync(xmlFile).toString();
650
654
  let java_class_link = new java.import(BarCodeReader.javaClassName);
651
655
  return BarCodeReader.construct(java_class_link.importFromXmlSync(xmlData.substring(3, xmlData.length)));
652
- }
653
- catch (ex)
656
+ } catch (ex)
654
657
  {
655
658
  let barcode_exception = new joint.BarcodeException(ex);
656
659
  throw barcode_exception;
@@ -1097,7 +1100,6 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
1097
1100
 
1098
1101
  /**
1099
1102
  * Returns the hash code for this instance.
1100
- *
1101
1103
  * @return A 32-bit signed integer hash code.
1102
1104
  */
1103
1105
  hashCode()
@@ -1141,7 +1143,6 @@ class OneDExtendedParameters extends joint.BaseJavaClass
1141
1143
 
1142
1144
  init()
1143
1145
  {
1144
- // TODO: Implement init() method.
1145
1146
  }
1146
1147
 
1147
1148
  /**
@@ -1303,15 +1304,15 @@ class BarcodeSvmDetectorSettings extends joint.BaseJavaClass
1303
1304
  let javaClass = new java_class_link(BarcodeSvmDetectorSettings.NormalQuality);
1304
1305
  switch (aType)
1305
1306
  {
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;
1307
+ case BarcodeSvmDetectorSettings.HighPerformance:
1308
+ javaClass = new java_class_link(BarcodeSvmDetectorSettings.HighPerformance);
1309
+ break;
1310
+ case BarcodeSvmDetectorSettings.HighQuality:
1311
+ javaClass = new java_class_link(BarcodeSvmDetectorSettings.HighQuality);
1312
+ break;
1313
+ case BarcodeSvmDetectorSettings.MaxQuality:
1314
+ javaClass = new java_class_link(BarcodeSvmDetectorSettings.MaxQuality);
1315
+ break;
1315
1316
  }
1316
1317
  super(javaClass);
1317
1318
  }
@@ -1405,7 +1406,7 @@ class BarcodeSvmDetectorSettings extends joint.BaseJavaClass
1405
1406
  this.scanWindowSizes = value;
1406
1407
  var ArrayList = java.import('java.util.ArrayList');
1407
1408
  var valueList = new ArrayList();
1408
- value.forEach(function(item, i, value)
1409
+ value.forEach(function (item, i, value)
1409
1410
  {
1410
1411
  valueList.addSync(item);
1411
1412
  });
@@ -1997,9 +1998,7 @@ class QualitySettings extends joint.BaseJavaClass
1997
1998
  * @example
1998
1999
  * let reader = new BarCodeReader("test.png");
1999
2000
  * reader.setQualitySettings(QualitySettings.getHighPerformance());
2000
- *
2001
- * Value:
2002
- * HighPerformance recognition quality preset.
2001
+
2003
2002
  */
2004
2003
  static getHighPerformance()
2005
2004
  {
@@ -2013,9 +2012,7 @@ class QualitySettings extends joint.BaseJavaClass
2013
2012
  * @example
2014
2013
  * let reader = new BarCodeReader("test.png");
2015
2014
  * reader.setQualitySettings(QualitySettings.getNormalQuality());
2016
- *
2017
- * Value:
2018
- * NormalQuality recognition quality preset.
2015
+
2019
2016
  */
2020
2017
  static getNormalQuality()
2021
2018
  {
@@ -2029,9 +2026,6 @@ class QualitySettings extends joint.BaseJavaClass
2029
2026
  * @example
2030
2027
  * let reader = new BarCodeReader("test.png");
2031
2028
  * reader.setQualitySettings(QualitySettings.getHighQualityDetection()); *
2032
- *
2033
- * Value:
2034
- * HighQualityDetection recognition quality preset.
2035
2029
  */
2036
2030
  static getHighQualityDetection()
2037
2031
  {
@@ -2046,9 +2040,6 @@ class QualitySettings extends joint.BaseJavaClass
2046
2040
  * @example
2047
2041
  *let reader = new BarCodeReader("test.png");
2048
2042
  * reader.setQualitySettings(QualitySettings.getMaxQualityDetection());
2049
- *
2050
- * Value:
2051
- * MaxQualityDetection recognition quality preset.
2052
2043
  */
2053
2044
  static getMaxQualityDetection()
2054
2045
  {
@@ -2062,9 +2053,6 @@ class QualitySettings extends joint.BaseJavaClass
2062
2053
  * @example
2063
2054
  *let reader = new BarCodeReader("test.png");
2064
2055
  * reader.setQualitySettings(QualitySettings.getHighQuality());
2065
- *
2066
- * Value:
2067
- * HighQuality recognition quality preset.
2068
2056
  */
2069
2057
  static getHighQuality()
2070
2058
  {
@@ -2078,9 +2066,6 @@ class QualitySettings extends joint.BaseJavaClass
2078
2066
  * @example
2079
2067
  * let reader = new BarCodeReader("test.png");
2080
2068
  * reader.setQualitySettings(QualitySettings.getMaxBarCodes());
2081
- *
2082
- * Value:
2083
- * MaxBarCodes recognition quality preset.
2084
2069
  */
2085
2070
  static getMaxBarCodes()
2086
2071
  {
@@ -2091,8 +2076,6 @@ class QualitySettings extends joint.BaseJavaClass
2091
2076
 
2092
2077
  /**
2093
2078
  * Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
2094
- * Value:
2095
- * Allows engine to recognize inverse color image.
2096
2079
  */
2097
2080
  getAllowInvertImage()
2098
2081
  {
@@ -2101,8 +2084,6 @@ class QualitySettings extends joint.BaseJavaClass
2101
2084
 
2102
2085
  /**
2103
2086
  * Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
2104
- * Value:
2105
- * Allows engine to recognize inverse color image.
2106
2087
  */
2107
2088
  setAllowInvertImage(value)
2108
2089
  {
@@ -2112,8 +2093,6 @@ class QualitySettings extends joint.BaseJavaClass
2112
2093
  /**
2113
2094
  * Allows engine to recognize barcodes which has incorrect checksumm or incorrect values.
2114
2095
  * Mode can be used to recognize damaged barcodes with incorrect text.
2115
- * Value:
2116
- * Allows engine to recognize incorrect barcodes.
2117
2096
  */
2118
2097
  getAllowIncorrectBarcodes()
2119
2098
  {
@@ -2123,8 +2102,6 @@ class QualitySettings extends joint.BaseJavaClass
2123
2102
  /**
2124
2103
  * Allows engine to recognize barcodes which has incorrect checksumm or incorrect values.
2125
2104
  * Mode can be used to recognize damaged barcodes with incorrect text.
2126
- * Value:
2127
- * Allows engine to recognize incorrect barcodes.
2128
2105
  */
2129
2106
  setAllowIncorrectBarcodes(value)
2130
2107
  {
@@ -2169,8 +2146,6 @@ class QualitySettings extends joint.BaseJavaClass
2169
2146
 
2170
2147
  /**
2171
2148
  * Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
2172
- * Value:
2173
- * Allows engine to recognize color barcodes on color background.
2174
2149
  */
2175
2150
  getAllowComplexBackground()
2176
2151
  {
@@ -2179,8 +2154,6 @@ class QualitySettings extends joint.BaseJavaClass
2179
2154
 
2180
2155
  /**
2181
2156
  * Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
2182
- * Value:v
2183
- * Allows engine to recognize color barcodes on color background.
2184
2157
  */
2185
2158
  setAllowComplexBackground(value)
2186
2159
  {
@@ -2189,8 +2162,6 @@ class QualitySettings extends joint.BaseJavaClass
2189
2162
 
2190
2163
  /**
2191
2164
  * Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
2192
- * Value:
2193
- * Allows engine to enable median smoothing.
2194
2165
  */
2195
2166
  getAllowMedianSmoothing()
2196
2167
  {
@@ -2199,8 +2170,6 @@ class QualitySettings extends joint.BaseJavaClass
2199
2170
 
2200
2171
  /**
2201
2172
  * Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
2202
- * Value:
2203
- * Allows engine to enable median smoothing.
2204
2173
  */
2205
2174
  setAllowMedianSmoothing(value)
2206
2175
  {
@@ -2209,8 +2178,6 @@ class QualitySettings extends joint.BaseJavaClass
2209
2178
 
2210
2179
  /**
2211
2180
  * Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set.
2212
- * Value:
2213
- * Window size for median smoothing.
2214
2181
  */
2215
2182
  getMedianSmoothingWindowSize()
2216
2183
  {
@@ -2219,8 +2186,6 @@ class QualitySettings extends joint.BaseJavaClass
2219
2186
 
2220
2187
  /**
2221
2188
  * Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set.
2222
- * Value:
2223
- * Window size for median smoothing.
2224
2189
  */
2225
2190
  setMedianSmoothingWindowSize(value)
2226
2191
  {
@@ -2229,8 +2194,6 @@ class QualitySettings extends joint.BaseJavaClass
2229
2194
 
2230
2195
  /**
2231
2196
  * Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is.
2232
- * Value:
2233
- * Allows to recognize regular image without any restorations.
2234
2197
  */
2235
2198
 
2236
2199
  getAllowRegularImage()
@@ -2240,8 +2203,6 @@ class QualitySettings extends joint.BaseJavaClass
2240
2203
 
2241
2204
  /**
2242
2205
  * Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is.
2243
- * Value:
2244
- * Allows to recognize regular image without any restorations.
2245
2206
  */
2246
2207
 
2247
2208
  setAllowRegularImage(value)
@@ -2252,8 +2213,6 @@ class QualitySettings extends joint.BaseJavaClass
2252
2213
  /**
2253
2214
  * Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms.
2254
2215
  * Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
2255
- * Value:
2256
- * Allows engine to recognize decreased image
2257
2216
  */
2258
2217
  getAllowDecreasedImage()
2259
2218
  {
@@ -2263,8 +2222,6 @@ class QualitySettings extends joint.BaseJavaClass
2263
2222
  /**
2264
2223
  * Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms.
2265
2224
  * Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
2266
- * Value:
2267
- * Allows engine to recognize decreased image
2268
2225
  */
2269
2226
  setAllowDecreasedImage(value)
2270
2227
  {
@@ -2273,8 +2230,6 @@ class QualitySettings extends joint.BaseJavaClass
2273
2230
 
2274
2231
  /**
2275
2232
  * Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering.
2276
- * Value:
2277
- * Allows engine to recognize image without small white spots.
2278
2233
  */
2279
2234
 
2280
2235
  getAllowWhiteSpotsRemoving()
@@ -2284,8 +2239,6 @@ class QualitySettings extends joint.BaseJavaClass
2284
2239
 
2285
2240
  /**
2286
2241
  * Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering.
2287
- * Value:
2288
- * Allows engine to recognize image without small white spots.
2289
2242
  */
2290
2243
  setAllowWhiteSpotsRemoving(value)
2291
2244
  {
@@ -2294,8 +2247,6 @@ class QualitySettings extends joint.BaseJavaClass
2294
2247
 
2295
2248
  /**
2296
2249
  * Allows engine for 1D barcodes to recognize regular image with different params as additional scan. Mode helps to recongize low height 1D barcodes.
2297
- * Value:
2298
- * Allows engine for 1D barcodes to run additional scan.
2299
2250
  */
2300
2251
  getAllowOneDAdditionalScan()
2301
2252
  {
@@ -2304,8 +2255,6 @@ class QualitySettings extends joint.BaseJavaClass
2304
2255
 
2305
2256
  /**
2306
2257
  * Allows engine for 1D barcodes to recognize regular image with different params as additional scan. Mode helps to recongize low height 1D barcodes.
2307
- * Value:
2308
- * Allows engine for 1D barcodes to run additional scan.
2309
2258
  */
2310
2259
  setAllowOneDAdditionalScan(value)
2311
2260
  {
@@ -2315,8 +2264,6 @@ class QualitySettings extends joint.BaseJavaClass
2315
2264
  /**
2316
2265
  * Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
2317
2266
  * Mode helps to quickly recognize generated barcodes from Internet.
2318
- * Value:
2319
- * Allows engine for 1D barcodes to quickly recognize high quality barcodes.
2320
2267
  */
2321
2268
  getAllowOneDFastBarcodesDetector()
2322
2269
  {
@@ -2326,8 +2273,6 @@ class QualitySettings extends joint.BaseJavaClass
2326
2273
  /**
2327
2274
  * Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
2328
2275
  * Mode helps to quickly recognize generated barcodes from Internet.
2329
- * Value:
2330
- * Allows engine for 1D barcodes to quickly recognize high quality barcodes.
2331
2276
  */
2332
2277
  setAllowOneDFastBarcodesDetector(value)
2333
2278
  {
@@ -2335,9 +2280,6 @@ class QualitySettings extends joint.BaseJavaClass
2335
2280
  }
2336
2281
 
2337
2282
  /**
2338
- * <p>
2339
- * Switches to the old barcode detector.
2340
- * </p>Value:
2341
2283
  * Switches to the old barcode detector.
2342
2284
  */
2343
2285
  getUseOldBarcodeDetector()
@@ -2345,27 +2287,21 @@ class QualitySettings extends joint.BaseJavaClass
2345
2287
  try
2346
2288
  {
2347
2289
  this.getJavaClass().getUseOldBarcodeDetectorSync();
2348
- }
2349
- catch (ex)
2290
+ } catch (ex)
2350
2291
  {
2351
2292
  throw new BarcodeException(ex.getMessage());
2352
2293
  }
2353
2294
  }
2354
2295
 
2355
2296
  /**
2356
- * <p>
2357
- * Switches to the old barcode detector.
2358
- * </p>Value:
2359
2297
  * Switches to the old barcode detector.
2360
2298
  */
2361
- //@XmlSerialization (type = XmlSerializationType.Element)
2362
2299
  setUseOldBarcodeDetector(value)
2363
2300
  {
2364
2301
  try
2365
2302
  {
2366
2303
  this.getJavaClass().setUseOldBarcodeDetectorSync(value);
2367
- }
2368
- catch (ex)
2304
+ } catch (ex)
2369
2305
  {
2370
2306
  throw new BarcodeException(ex.getMessage());
2371
2307
  }
@@ -2373,9 +2309,7 @@ class QualitySettings extends joint.BaseJavaClass
2373
2309
 
2374
2310
  /**
2375
2311
  * Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize sligtly damaged Postal barcodes.
2376
- * Value:
2377
- * Allows engine for Postal barcodes to recognize slightly noised images.
2378
- */
2312
+ */
2379
2313
  getAllowMicroWhiteSpotsRemoving()
2380
2314
  {
2381
2315
  return this.getJavaClass().getAllowMicroWhiteSpotsRemovingSync();
@@ -2383,8 +2317,6 @@ class QualitySettings extends joint.BaseJavaClass
2383
2317
 
2384
2318
  /**
2385
2319
  * Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize sligtly damaged Postal barcodes.
2386
- * Value:
2387
- * Allows engine for Postal barcodes to recognize slightly noised images.
2388
2320
  */
2389
2321
  setAllowMicroWhiteSpotsRemoving(value)
2390
2322
  {
@@ -2411,8 +2343,6 @@ class QualitySettings extends joint.BaseJavaClass
2411
2343
 
2412
2344
  /**
2413
2345
  * Allows engine to recognize barcodes with salt and paper noise type. Mode can remove small noise with white and black dots.
2414
- * Value:
2415
- * Allows engine to recognize barcodes with salt and paper noise type.
2416
2346
  */
2417
2347
  getAllowSaltAndPaperFiltering()
2418
2348
  {
@@ -2421,8 +2351,6 @@ class QualitySettings extends joint.BaseJavaClass
2421
2351
 
2422
2352
  /**
2423
2353
  * Allows engine to recognize barcodes with salt and paper noise type. Mode can remove small noise with white and black dots.
2424
- * Value:
2425
- * Allows engine to recognize barcodes with salt and paper noise type.
2426
2354
  */
2427
2355
  setAllowSaltAndPaperFiltering(value)
2428
2356
  {
@@ -2431,8 +2359,6 @@ class QualitySettings extends joint.BaseJavaClass
2431
2359
 
2432
2360
  /**
2433
2361
  * Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
2434
- * Value:
2435
- * Allows engine to use gap between scans to increase recognition speed.
2436
2362
  */
2437
2363
  getAllowDetectScanGap()
2438
2364
  {
@@ -2441,9 +2367,7 @@ class QualitySettings extends joint.BaseJavaClass
2441
2367
 
2442
2368
  /**
2443
2369
  * Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
2444
- * Value:
2445
- * Allows engine to use gap between scans to increase recognition speed.
2446
- */
2370
+ */
2447
2371
  setAllowDetectScanGap(value)
2448
2372
  {
2449
2373
  this.getJavaClass().setAllowDetectScanGapSync(value);
@@ -2452,8 +2376,6 @@ class QualitySettings extends joint.BaseJavaClass
2452
2376
  /**
2453
2377
  * Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
2454
2378
  * Slow mode which helps only for dashed barcodes which consist from spots.
2455
- * Value:
2456
- * Allows engine for Datamatrix to recognize dashed industrial barcodes.
2457
2379
  */
2458
2380
  getAllowDatamatrixIndustrialBarcodes()
2459
2381
  {
@@ -2463,8 +2385,6 @@ class QualitySettings extends joint.BaseJavaClass
2463
2385
  /**
2464
2386
  * Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
2465
2387
  * Slow mode which helps only for dashed barcodes which consist from spots.
2466
- * Value:
2467
- * Allows engine for Datamatrix to recognize dashed industrial barcodes.
2468
2388
  */
2469
2389
  setAllowDatamatrixIndustrialBarcodes(value)
2470
2390
  {
@@ -2473,17 +2393,13 @@ class QualitySettings extends joint.BaseJavaClass
2473
2393
 
2474
2394
  /**
2475
2395
  * Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
2476
- * Value:
2477
- * Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
2478
- */
2396
+ */
2479
2397
  getAllowQRMicroQrRestoration()
2480
2398
  {
2481
2399
  return this.getJavaClass().getAllowQRMicroQrRestorationSync();
2482
2400
  }
2483
2401
 
2484
2402
  /**
2485
- * Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
2486
- * Value:
2487
2403
  * Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
2488
2404
  */
2489
2405
  setAllowQRMicroQrRestoration(value)
@@ -2492,8 +2408,6 @@ class QualitySettings extends joint.BaseJavaClass
2492
2408
  }
2493
2409
 
2494
2410
  /**
2495
- * Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
2496
- * Value:
2497
2411
  * Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
2498
2412
  */
2499
2413
  getAllowOneDWipedBarsRestoration()
@@ -2502,8 +2416,6 @@ class QualitySettings extends joint.BaseJavaClass
2502
2416
  }
2503
2417
 
2504
2418
  /**
2505
- * Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
2506
- * Value:
2507
2419
  * Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
2508
2420
  */
2509
2421
  setAllowOneDWipedBarsRestoration(value)
@@ -2651,7 +2563,6 @@ class DataBarExtendedParameters extends joint.BaseJavaClass
2651
2563
 
2652
2564
  init()
2653
2565
  {
2654
- // TODO: Implement init() method.
2655
2566
  }
2656
2567
 
2657
2568
  /**
@@ -2714,7 +2625,8 @@ class AustraliaPostSettings extends joint.BaseJavaClass
2714
2625
  if (settings != null)
2715
2626
  {
2716
2627
  super(settings.getJavaClass());
2717
- } else
2628
+ }
2629
+ else
2718
2630
  {
2719
2631
  let java_link = java.import(AustraliaPostSettings.javaClassName);
2720
2632
  let australiaPostSettings = new java_link();
@@ -2751,7 +2663,7 @@ class AustraliaPostSettings extends joint.BaseJavaClass
2751
2663
  * The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.
2752
2664
  * CTable encoding method does not have any gaps in encoding table and sequnce "333" of filling paterns is decoded as letter "z".
2753
2665
  *
2754
- * Example
2666
+ * @example
2755
2667
  *
2756
2668
  * let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678AB");
2757
2669
  * generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
@@ -2797,7 +2709,8 @@ class BarcodeSettings extends joint.BaseJavaClass
2797
2709
  if (settings != null)
2798
2710
  {
2799
2711
  super(settings.getJavaClass());
2800
- } else
2712
+ }
2713
+ else
2801
2714
  {
2802
2715
  let java_link = java.import(BarcodeSettings.javaClassName);
2803
2716
  let barcodeSettings = new java_link();
@@ -2828,7 +2741,7 @@ class BarcodeSettings extends joint.BaseJavaClass
2828
2741
  * Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
2829
2742
  * Checksum always used: Rest symbologies
2830
2743
  *
2831
- * Example
2744
+ * @example
2832
2745
  *
2833
2746
  * let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
2834
2747
  * generator.save("c:/test.png", BarcodeImageFormat.PNG);
@@ -2864,7 +2777,7 @@ class BarcodeSettings extends joint.BaseJavaClass
2864
2777
  * Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
2865
2778
  * Checksum always used: Rest symbologies
2866
2779
  *
2867
- * Example
2780
+ * @example
2868
2781
  *
2869
2782
  * let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
2870
2783
  * generator.save("c:/test.png", BarcodeImageFormat.PNG);
@@ -2896,7 +2809,7 @@ class BarcodeSettings extends joint.BaseJavaClass
2896
2809
  /**
2897
2810
  * Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
2898
2811
  *
2899
- * Example
2812
+ * @example
2900
2813
  *
2901
2814
  * let generator = new BarcodeGenerator(EncodeTypes.GS_1_CODE_128, "(02)04006664241007(37)1(400)7019590754");
2902
2815
  * generator.save("c:/test.png", BarcodeImageFormat.PNG);
@@ -2928,7 +2841,7 @@ class BarcodeSettings extends joint.BaseJavaClass
2928
2841
  /**
2929
2842
  * Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
2930
2843
  *
2931
- * Example
2844
+ * @example
2932
2845
  *
2933
2846
  * let generator = new BarcodeGenerator(EncodeTypes.GS_1_CODE_128, "(02)04006664241007(37)1(400)7019590754");
2934
2847
  * generator.save("c:/test.png", BarcodeImageFormat.PNG);
@@ -2960,7 +2873,7 @@ class BarcodeSettings extends joint.BaseJavaClass
2960
2873
  /**
2961
2874
  * The flag which force engine to detect codetext encoding for Unicode codesets. Default value is true.
2962
2875
  *
2963
- * Example
2876
+ * @example
2964
2877
  *
2965
2878
  * let generator = new BarcodeGenerator(EncodeTypes.QR, "Слово"))
2966
2879
  * $im = generator.generateBarcodeImage(BarcodeImageFormat.PNG);
@@ -2976,7 +2889,7 @@ class BarcodeSettings extends joint.BaseJavaClass
2976
2889
  * let reader = new BarCodeReader(im, DecodeType.QR);
2977
2890
  * reader.getBarcodeSettings().setDetectEncoding(false);
2978
2891
  * reader.readBarCodes().forEach(function(result, i, results)
2979
- * console.log ("BarCode CodeText: " + result.getCodeText());
2892
+ * console.log ("BarCode CodeText: " + result.getCodeText());
2980
2893
  *
2981
2894
  * @return The flag which force engine to detect codetext encoding for Unicode codesets
2982
2895
  */
@@ -3008,6 +2921,7 @@ class RecognitionAbortedException extends Error
3008
2921
  {
3009
2922
  return "com.aspose.mw.barcode.recognition.MwRecognitionAbortedException";
3010
2923
  }
2924
+
3011
2925
  /**
3012
2926
  * Gets the execution time of current recognition session
3013
2927
  * @return The execution time of current recognition session
@@ -3035,7 +2949,7 @@ class RecognitionAbortedException extends Error
3035
2949
  {
3036
2950
  super(message);
3037
2951
  let java_class_link = new java.import(RecognitionAbortedException.javaClassName);
3038
- if(message != null && executionTime != null)
2952
+ if (message != null && executionTime != null)
3039
2953
  {
3040
2954
  this.javaClass = new java_class_link(message, executionTime);
3041
2955
  }
@@ -3044,7 +2958,9 @@ class RecognitionAbortedException extends Error
3044
2958
  this.javaClass = new java_class_link(executionTime);
3045
2959
  }
3046
2960
  else
2961
+ {
3047
2962
  this.javaClass = new java_class_link();
2963
+ }
3048
2964
  }
3049
2965
 
3050
2966
  static construct(javaClass)
@@ -3543,7 +3459,7 @@ Code128SubType =
3543
3459
  * @enum
3544
3460
  */
3545
3461
  CustomerInformationInterpretingType =
3546
- {
3462
+ {
3547
3463
 
3548
3464
  /**
3549
3465
  * Use C_TABLE to interpret the customer information. Allows A..Z, a..z, 1..9, space and # sing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.barcode",
3
- "version": "22.6.0",
3
+ "version": "22.9.0",
4
4
  "description": "barcode generation and recognition component",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"