aspose.barcode 23.4.0 → 23.5.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.4.jar";
7
+ const jar_name_ = "/aspose-barcode-nodejs-23.5.jar";
8
8
  const jar_path_ = __dirname + jar_name_;
9
9
  const fs = require("fs");
10
10
 
package/lib/Generation.js CHANGED
@@ -200,6 +200,7 @@ class BarcodeParameters extends joint.BaseJavaClass
200
200
  pdf417;
201
201
  maxiCode;
202
202
  aztec;
203
+ code128;
203
204
  codabar;
204
205
  coupon;
205
206
  supplement;
@@ -232,6 +233,7 @@ class BarcodeParameters extends joint.BaseJavaClass
232
233
  this.pdf417 = new Pdf417Parameters(this.getJavaClass().getPdf417Sync());
233
234
  this.maxiCode = new MaxiCodeParameters(this.getJavaClass().getMaxiCodeSync());
234
235
  this.aztec = new AztecParameters(this.getJavaClass().getAztecSync());
236
+ this.code128 = new Code128Parameters(this.getJavaClass().getCode128Sync());
235
237
  this.codabar = new CodabarParameters(this.getJavaClass().getCodabarSync());
236
238
  this.coupon = new CouponParameters(this.getJavaClass().getCouponSync());
237
239
  this.supplement = new SupplementParameters(this.getJavaClass().getSupplementSync());
@@ -631,6 +633,16 @@ class BarcodeParameters extends joint.BaseJavaClass
631
633
  return this.aztec;
632
634
  }
633
635
 
636
+ /**
637
+ * <p>
638
+ * Code128 parameters.
639
+ * </p>
640
+ */
641
+ getCode128()
642
+ {
643
+ return this.code128;
644
+ }
645
+
634
646
  /**
635
647
  * Codabar parameters.
636
648
  */
@@ -3919,9 +3931,9 @@ class DotCodeExtCodetextBuilder extends ExtCodetextBuilder
3919
3931
  * </p>
3920
3932
  */
3921
3933
  addFNC3SymbolSeparator()
3922
- {
3923
- this.getJavaClass().addFNC3SymbolSeparatorSync();
3924
- }
3934
+ {
3935
+ this.getJavaClass().addFNC3SymbolSeparatorSync();
3936
+ }
3925
3937
 
3926
3938
  /**
3927
3939
  * <p>
@@ -3959,6 +3971,53 @@ class DotCodeExtCodetextBuilder extends ExtCodetextBuilder
3959
3971
  init() {}
3960
3972
  }
3961
3973
 
3974
+ /**
3975
+ * Code128 parameters.
3976
+ */
3977
+ class Code128Parameters extends joint.BaseJavaClass
3978
+ {
3979
+ init()
3980
+ {
3981
+ // TODO: Implement init() method.
3982
+ }
3983
+
3984
+ constructor(javaClass)
3985
+ {
3986
+ super(javaClass);
3987
+ this.init();
3988
+ }
3989
+
3990
+ /**
3991
+ * <p>
3992
+ * Gets or sets a Code128 encode mode.
3993
+ * Default value: Code128EncodeMode.Auto
3994
+ * </p>
3995
+ */
3996
+ getCode128EncodeMode()
3997
+ {
3998
+ return this.getJavaClass().getCode128EncodeModeSync();
3999
+ }
4000
+ /**
4001
+ * <p>
4002
+ * Gets or sets a Code128 encode mode.
4003
+ * Default value: Code128EncodeMode.Auto
4004
+ * </p>
4005
+ */
4006
+ setCode128EncodeMode(value)
4007
+ {
4008
+ this.getJavaClass().setCode128EncodeModeSync(value);
4009
+ }
4010
+
4011
+ /**
4012
+ * Returns a human-readable string representation of this PatchCodeParameters.
4013
+ * @return string A string that represents this PatchCodeParameters.
4014
+ */
4015
+ toString()
4016
+ {
4017
+ return this.getJavaClass().toStringSync();
4018
+ }
4019
+ }
4020
+
3962
4021
  /**
3963
4022
  * BarcodeClassifications EncodeTypes classification
3964
4023
  * @enum
@@ -4764,7 +4823,7 @@ TextAlignment =
4764
4823
  * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
4765
4824
  * generator.setAutoSizeMode(AutoSizeMode.NEAREST);
4766
4825
  * generator.getBarCodeWidth().setMillimeters(50);
4767
- * generator.getBarCodeHeight().setInches(1.3f); TODO
4826
+ * generator.getBarCodeHeight().setInches(1.3f);
4768
4827
  * generator.save("test.png", BarcodeImageFormat.PNG);
4769
4828
  *
4770
4829
  * @enum
@@ -5749,9 +5808,28 @@ BarCodeImageFormat =
5749
5808
  SVG: 7
5750
5809
  };
5751
5810
 
5752
- /*
5753
- Specifies the type of 2D component
5754
- @enum
5811
+ /**
5812
+ * Type of 2D component
5813
+ * This sample shows how to create and save a GS1 Composite Bar image.
5814
+ * Note that 1D codetext and 2D codetext are separated by symbol '/'
5815
+ * <code>
5816
+ * let codetext = "(01)03212345678906/(21)A1B2C3D4E5F6G7H8";
5817
+ * let generator = new BarcodeGenerator(EncodeTypes.GS1_COMPOSITE_BAR, codetext))
5818
+ *
5819
+ * generator.getParameters().getBarcode().getGS1CompositeBar().setLinearComponentType(EncodeTypes.GS1_CODE_128);
5820
+ * generator.getParameters().getBarcode().getGS1CompositeBar().setTwoDComponentType(TwoDComponentType.CC_A);
5821
+ *
5822
+ * // Aspect ratio of 2D component
5823
+ * generator.getParameters().getBarcode().getPdf417().setAspectRatio(3);
5824
+ * ///
5825
+ * // X-Dimension of 1D and 2D components
5826
+ * generator.getParameters().getBarcode().getXDimension().setPixels(3);
5827
+ * ///
5828
+ * // Height of 1D component
5829
+ * generator.getParameters().getBarcode().getBarHeight().setPixels(100);
5830
+ * ///
5831
+ * generator.save("test.png", BarcodeImageFormat.PNG);
5832
+ *
5755
5833
  */
5756
5834
  TwoDComponentType =
5757
5835
  {
@@ -6056,6 +6134,80 @@ DotCodeEncodeMode =
6056
6134
  EXTENDED_CODETEXT: 2
6057
6135
  }
6058
6136
 
6137
+
6138
+ /**
6139
+ * <p>
6140
+ * Encoding mode for Code128 barcodes.
6141
+ * {@code Code 128} specification.
6142
+ * </p><p><hr><blockquote><pre>
6143
+ * Thos code demonstrates how to generate code 128 with different encodings
6144
+ * <pre>
6145
+ * [C#]
6146
+ * //Generate code 128 with ISO 15417 encoding
6147
+ *
6148
+ * let generator = new BarcodeGenerator(EncodeTypes.CODE_128, "ABCD1234567890");
6149
+ * generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.AUTO);
6150
+ * generator.save("d:\\code128Auto.png", BarCodeImageFormat.PNG);
6151
+ *
6152
+ * //Generate code 128 only with Codeset A encoding
6153
+ * let generator = new BarcodeGenerator(EncodeTypes.CODE_128, "ABCD1234567890");
6154
+ * generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.CODE_A);
6155
+ * generator.save("d:\\code128CodeA.png", BarCodeImageFormat.PNG);
6156
+ * </pre>
6157
+ * </pre></blockquote></hr></p>
6158
+ */
6159
+ Code128EncodeMode =
6160
+ {
6161
+ /**
6162
+ * <p>
6163
+ * Encode codetext in classic ISO 15417 mode. The mode should be used in all ordinary cases.
6164
+ * </p>
6165
+ */
6166
+ AUTO: 0,
6167
+
6168
+ /**
6169
+ * <p>
6170
+ * Encode codetext only in 128A codeset.
6171
+ * </p>
6172
+ */
6173
+ CODE_A: 1,
6174
+
6175
+ /**
6176
+ * <p>
6177
+ * Encode codetext only in 128B codeset.
6178
+ * </p>
6179
+ */
6180
+ CODE_B: 2,
6181
+
6182
+ /**
6183
+ * <p>
6184
+ * Encode codetext only in 128C codeset.
6185
+ * </p>
6186
+ */
6187
+ CODE_C: 4,
6188
+
6189
+ /**
6190
+ * <p>
6191
+ * Encode codetext only in 128A and 128B codesets.
6192
+ * </p>
6193
+ */
6194
+ CODE_AB: 3,
6195
+
6196
+ /**
6197
+ * <p>
6198
+ * Encode codetext only in 128A and 128C codesets.
6199
+ * </p>
6200
+ */
6201
+ CODE_AC: 5,
6202
+
6203
+ /**
6204
+ * <p>
6205
+ * Encode codetext only in 128B and 128C codesets.
6206
+ * </p>
6207
+ */
6208
+ CODE_BC: 6
6209
+ }
6210
+
6059
6211
  module.exports = {
6060
6212
  BarcodeGenerator,
6061
6213
  EncodeTypes,
@@ -6093,6 +6245,7 @@ module.exports = {
6093
6245
  CouponParameters,
6094
6246
  FontUnit,
6095
6247
  QrStructuredAppendParameters,
6248
+ Code128Parameters,
6096
6249
  BarcodeClassifications,
6097
6250
  FontStyle,
6098
6251
  CodabarSymbol,
@@ -6117,5 +6270,6 @@ module.exports = {
6117
6270
  Pdf417MacroTerminator,
6118
6271
  MaxiCodeExtCodetextBuilder,
6119
6272
  DotCodeExtCodetextBuilder,
6120
- DotCodeEncodeMode
6273
+ DotCodeEncodeMode,
6274
+ Code128EncodeMode
6121
6275
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.barcode",
3
- "version": "23.4.0",
3
+ "version": "23.5.0",
4
4
  "description": "barcode generation and recognition component",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"