aspose.barcode 22.9.0 → 22.11.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.
@@ -53,16 +53,17 @@ class BarCodeReader extends joint.BaseJavaClass
53
53
  }
54
54
  }
55
55
  }
56
- if (decodeTypes != null)
56
+ if (decodeTypes === undefined || decodeTypes == null)
57
57
  {
58
- if (!Array.isArray(decodeTypes))
59
- {
60
- decodeTypes = [decodeTypes];
61
- }
62
- for (let i = 0; i < decodeTypes.length; i++)
63
- {
64
- decodeTypes[i] = decodeTypes[i] + "";
65
- }
58
+ decodeTypes = DecodeType.ALL_SUPPORTED_TYPES
59
+ }
60
+ if (!Array.isArray(decodeTypes))
61
+ {
62
+ decodeTypes = [decodeTypes];
63
+ }
64
+ for (let i = 0; i < decodeTypes.length; i++)
65
+ {
66
+ decodeTypes[i] = decodeTypes[i] + "";
66
67
  }
67
68
  try
68
69
  {
@@ -1078,6 +1079,15 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
1078
1079
  return this.getJavaClass().getMacroPdf417ChecksumSync();
1079
1080
  }
1080
1081
 
1082
+ /**
1083
+ * Indicates whether the segment is the last segment of a Macro PDF417 file.
1084
+ * @return Terminator.
1085
+ */
1086
+ getMacroPdf417Terminator()
1087
+ {
1088
+ return this.getJavaClass().getMacroPdf417TerminatorSync();
1089
+ }
1090
+
1081
1091
  /**
1082
1092
  * Tests whether all parameters has only default values
1083
1093
  * Value: Returns {@code <b>true</b>} if all parameters has only default values; otherwise, {@code <b>false</b>}.
@@ -1805,6 +1815,9 @@ class BarCodeRegionParameters extends joint.BaseJavaClass
1805
1815
  }
1806
1816
  }
1807
1817
 
1818
+ /**
1819
+ * Stores extended parameters of recognized barcode
1820
+ */
1808
1821
  class BarCodeExtendedParameters extends joint.BaseJavaClass
1809
1822
  {
1810
1823
  _oneDParameters;
@@ -1812,6 +1825,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1812
1825
  _qrParameters;
1813
1826
  _pdf417Parameters;
1814
1827
  _dataBarParameters;
1828
+ _maxiCodeParameters;
1815
1829
 
1816
1830
  constructor(javaclass)
1817
1831
  {
@@ -1826,6 +1840,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1826
1840
  this._qrParameters = new QRExtendedParameters(this.getJavaClass().getQRSync());
1827
1841
  this._pdf417Parameters = new Pdf417ExtendedParameters(this.getJavaClass().getPdf417Sync());
1828
1842
  this._dataBarParameters = new DataBarExtendedParameters(this.getJavaClass().getDataBarSync());
1843
+ this._maxiCodeParameters = new MaxiCodeExtendedParameters(this.getJavaClass().getMaxiCodeSync());
1829
1844
  }
1830
1845
 
1831
1846
  /** Gets a DataBar additional information DataBarExtendedParameters of recognized barcode<br>
@@ -1836,6 +1851,16 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
1836
1851
  return this._dataBarParameters;
1837
1852
  }
1838
1853
 
1854
+ /**
1855
+ * Gets a MaxiCode additional information<see cref="MaxiCodeExtendedParameters"/> of recognized barcode
1856
+ *
1857
+ * @return A MaxiCode additional information<see cref="MaxiCodeExtendedParameters"/> of recognized barcode
1858
+ */
1859
+ getMaxiCode()
1860
+ {
1861
+ return this._maxiCodeParameters;
1862
+ }
1863
+
1839
1864
  /**
1840
1865
  * Gets a special data OneDExtendedParameters of 1D recognized barcode Value: A special data OneDExtendedParameters of 1D recognized barcode
1841
1866
  */
@@ -2976,6 +3001,104 @@ class RecognitionAbortedException extends Error
2976
3001
  }
2977
3002
  }
2978
3003
 
3004
+ /**
3005
+ * Stores a MaxiCode additional information of recognized barcode
3006
+ */
3007
+ class MaxiCodeExtendedParameters extends joint.BaseJavaClass
3008
+ {
3009
+
3010
+ constructor(javaClass)
3011
+ {
3012
+ super(javaClass);
3013
+ }
3014
+
3015
+ init()
3016
+ {
3017
+ }
3018
+
3019
+ /**
3020
+ * Gets a MaxiCode encode mode.
3021
+ * Default value: Mode4
3022
+ */
3023
+ getMaxiCodeMode()
3024
+ {
3025
+ return this.getJavaClass().getMaxiCodeModeSync();
3026
+ }
3027
+
3028
+ /**
3029
+ * Sets a MaxiCode encode mode.
3030
+ * Default value: Mode4
3031
+ */
3032
+ setMaxiCodeMode(maxiCodeMode)
3033
+ {
3034
+ this.getJavaClass().setMaxiCodeModeSync(maxiCodeMode);
3035
+ }
3036
+
3037
+ /**
3038
+ * Gets a MaxiCode barcode id in structured append mode.
3039
+ * Default value: 0
3040
+ */
3041
+ getMaxiCodeStructuredAppendModeBarcodeId()
3042
+ {
3043
+ return this.getJavaClass().getMaxiCodeStructuredAppendModeBarcodeIdSync();
3044
+ }
3045
+
3046
+ /**
3047
+ * Sets a MaxiCode barcode id in structured append mode.
3048
+ * Default value: 0
3049
+ */
3050
+ setMaxiCodeStructuredAppendModeBarcodeId(value)
3051
+ {
3052
+ this.getJavaClass().setMaxiCodeStructuredAppendModeBarcodeIdSync(value);
3053
+ }
3054
+
3055
+ /**
3056
+ * Gets a MaxiCode barcodes count in structured append mode.
3057
+ * Default value: -1
3058
+ */
3059
+ getMaxiCodeStructuredAppendModeBarcodesCount()
3060
+ {
3061
+ return this.getJavaClass().getMaxiCodeStructuredAppendModeBarcodesCountSync();
3062
+ }
3063
+
3064
+ /**
3065
+ * Sets a MaxiCode barcodes count in structured append mode.
3066
+ * Default value: -1
3067
+ */
3068
+ setMaxiCodeStructuredAppendModeBarcodesCount(value)
3069
+ {
3070
+ this.getJavaClass().setMaxiCodeStructuredAppendModeBarcodesCountSync(value);
3071
+ }
3072
+
3073
+ /**
3074
+ * Returns a value indicating whether this instance is equal to a specified <see cref="MaxiCodeExtendedParameters"/> value.
3075
+ * @param obj An Object value to compare to this instance.
3076
+ * @return <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
3077
+ */
3078
+ equals(obj)
3079
+ {
3080
+ return this.getJavaClass().equalsSync(obj);
3081
+ }
3082
+
3083
+ /**
3084
+ * Returns the hash code for this instance.
3085
+ * @return A 32-bit signed integer hash code.
3086
+ */
3087
+ getHashCode()
3088
+ {
3089
+ return this.getJavaClass().getHashCodeSync();
3090
+ }
3091
+
3092
+ /**
3093
+ * Returns a human-readable string representation of this <see cref="MaxiCodeExtendedParameters"/>.
3094
+ * @return A string that represents this <see cref="MaxiCodeExtendedParameters"/>.
3095
+ */
3096
+ toString()
3097
+ {
3098
+ return this.getJavaClass().toStringSync();
3099
+ }
3100
+ }
3101
+
2979
3102
  /**
2980
3103
  * Specify the type of barcode to read.
2981
3104
  * @example
@@ -2990,7 +3113,7 @@ class RecognitionAbortedException extends Error
2990
3113
  * @enum
2991
3114
  */
2992
3115
  DecodeType =
2993
- {
3116
+ {
2994
3117
  /**
2995
3118
  * Unspecified decode type.
2996
3119
  */
@@ -3472,8 +3595,8 @@ CustomerInformationInterpretingType =
3472
3595
  * reader.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE);
3473
3596
  * reader.readBarCodes().forEach(function(result, i, results)
3474
3597
  * {
3475
- * print("BarCode Type: " + result.getCodeType());
3476
- * print("BarCode CodeText: " + result.getCodeText());
3598
+ * console.log("BarCode Type: " + result.getCodeType());
3599
+ * console.log("BarCode CodeText: " + result.getCodeText());
3477
3600
  * });
3478
3601
  * @endcode
3479
3602
  */
@@ -3490,16 +3613,15 @@ CustomerInformationInterpretingType =
3490
3613
  * reader.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.N_TABLE);
3491
3614
  * reader.readBarCodes().forEach(function(result, i, results)
3492
3615
  * {
3493
- * print("BarCode Type: " + result.getCodeType());
3494
- * print("BarCode CodeText: " + result.getCodeText());
3616
+ * console.log("BarCode Type: " + result.getCodeType());
3617
+ * console.log("BarCode CodeText: " + result.getCodeText());
3495
3618
  * });
3496
- * @endcode
3497
3619
  */
3498
3620
  N_TABLE: 1,
3499
3621
  /**
3500
3622
  * Do not interpret the customer information. Allows 0, 1, 2 or 3 symbol only.
3501
3623
  *
3502
- * @code
3624
+ * @example
3503
3625
  * let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "59123456780123012301230123");
3504
3626
  * generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.OTHER);
3505
3627
  * let image = generator.generateBarcodeImage(BarcodeImageFormat.PNG);
@@ -3507,10 +3629,9 @@ CustomerInformationInterpretingType =
3507
3629
  * reader.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.OTHER));
3508
3630
  * reader.readBarCodes().forEach(function(result, i, results)
3509
3631
  * {
3510
- * print("BarCode Type: " + result.getCodeType());
3511
- * print("BarCode CodeText: " + result.getCodeText());
3632
+ * console.log("BarCode Type: " + result.getCodeType());
3633
+ * console.log("BarCode CodeText: " + result.getCodeText());
3512
3634
  * });
3513
- * @endcode
3514
3635
  */
3515
3636
  OTHER: 2,
3516
3637
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.barcode",
3
- "version": "22.9.0",
3
+ "version": "22.11.0",
4
4
  "description": "barcode generation and recognition component",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"