aspose.barcode 22.8.0 → 22.10.1

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,13 +4,13 @@ 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.8.jar";
7
+ const jar_name_ = "/aspose-barcode-nodejs-22.10.jar";
8
8
  const jar_path_ = __dirname + jar_name_;
9
9
  const fs = require("fs");
10
10
 
11
11
  function pushJar()
12
12
  {
13
- java.classpath.push(__dirname + "/aspose-barcode-nodejs-22.8.jar");
13
+ java.classpath.push(__dirname + jar_name_);
14
14
  }
15
15
  pushJar();
16
16
 
package/lib/Generation.js CHANGED
@@ -1571,7 +1571,7 @@ class CodetextParameters extends joint.BaseJavaClass
1571
1571
 
1572
1572
  /**
1573
1573
  * Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText.<br>
1574
- * Default value: CodeLocation.BELOW.
1574
+ * Default value: CodeLocation.NONE.
1575
1575
  */
1576
1576
  setLocation(value)
1577
1577
  {
@@ -2888,6 +2888,24 @@ class Pdf417Parameters extends joint.BaseJavaClass
2888
2888
  this.getJavaClass().setPdf417MacroECIEncodingSync(value);
2889
2889
  }
2890
2890
 
2891
+ /**
2892
+ * Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.
2893
+ * Applied only for Macro PDF417.
2894
+ */
2895
+ getPdf417MacroTerminator()
2896
+ {
2897
+ return this.getJavaClass().getPdf417MacroTerminatorSync();
2898
+ }
2899
+
2900
+ /**
2901
+ * Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.
2902
+ * Applied only for Macro PDF417.
2903
+ */
2904
+ setPdf417MacroTerminator(value)
2905
+ {
2906
+ this.getJavaClass().setPdf417MacroTerminatorSync(value);
2907
+ }
2908
+
2891
2909
  /**
2892
2910
  * Used to instruct the reader to interpret the data contained within the symbol<br>
2893
2911
  * as programming for reader initialization<br>
@@ -5164,6 +5182,29 @@ TwoDComponentType =
5164
5182
  CC_C: 3
5165
5183
  }
5166
5184
 
5185
+ /**
5186
+ * Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment.
5187
+ * Applied only for Macro PDF417.
5188
+ */
5189
+ Pdf417MacroTerminator =
5190
+ {
5191
+ /**
5192
+ * The terminator will be added automatically if the number of segments is provided
5193
+ * and the current segment is the last one. In other cases, the terminator will not be added.
5194
+ */
5195
+ AUTO: 0,
5196
+
5197
+ /**
5198
+ * The terminator will not be added.
5199
+ */
5200
+ NONE: 1,
5201
+
5202
+ /**
5203
+ * The terminator will be added.
5204
+ */
5205
+ SET: 2
5206
+ }
5207
+
5167
5208
  module.exports = {
5168
5209
  BarcodeGenerator,
5169
5210
  EncodeTypes,
@@ -5221,5 +5262,6 @@ module.exports = {
5221
5262
  MacroCharacter,
5222
5263
  EnableChecksum,
5223
5264
  TwoDComponentType,
5224
- GS1CompositeBarParameters
5265
+ GS1CompositeBarParameters,
5266
+ Pdf417MacroTerminator
5225
5267
  };
@@ -53,7 +53,7 @@ class BarCodeReader extends joint.BaseJavaClass
53
53
  }
54
54
  }
55
55
  }
56
- if (decodeTypes != null)
56
+ if (decodeTypes !== undefined || decodeTypes != null)
57
57
  {
58
58
  if (!Array.isArray(decodeTypes))
59
59
  {
@@ -1078,6 +1078,15 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
1078
1078
  return this.getJavaClass().getMacroPdf417ChecksumSync();
1079
1079
  }
1080
1080
 
1081
+ /**
1082
+ * Indicates whether the segment is the last segment of a Macro PDF417 file.
1083
+ * @return Terminator.
1084
+ */
1085
+ getMacroPdf417Terminator()
1086
+ {
1087
+ return this.getJavaClass().getMacroPdf417TerminatorSync();
1088
+ }
1089
+
1081
1090
  /**
1082
1091
  * Tests whether all parameters has only default values
1083
1092
  * Value: Returns {@code <b>true</b>} if all parameters has only default values; otherwise, {@code <b>false</b>}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.barcode",
3
- "version": "22.8.0",
3
+ "version": "22.10.1",
4
4
  "description": "barcode generation and recognition component",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"