aspose.barcode 23.2.1 → 23.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.
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "barcode.nodejs.examples",
3
+ "description": "Aspose.Barcode for Node.js via Java examples",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "author": "",
9
+ "license": "ISC",
10
+ "dependencies": {
11
+ "java": "^0.12.1"
12
+ }
13
+ }
@@ -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.2.jar";
7
+ const jar_name_ = "/aspose-barcode-nodejs-23.4.jar";
8
8
  const jar_path_ = __dirname + jar_name_;
9
9
  const fs = require("fs");
10
10
 
package/lib/Generation.js CHANGED
@@ -187,8 +187,6 @@ class BarcodeParameters extends joint.BaseJavaClass
187
187
  {
188
188
  xDimension;
189
189
  barHeight;
190
- barCodeWidth;
191
- barCodeHeight;
192
190
  codeTextParameters;
193
191
  postal;
194
192
  australianPost;
@@ -221,8 +219,6 @@ class BarcodeParameters extends joint.BaseJavaClass
221
219
  this.xDimension = new Unit(this.getJavaClass().getXDimensionSync());
222
220
  this.barWidthReduction = new Unit(this.getJavaClass().getBarWidthReductionSync());
223
221
  this.barHeight = new Unit(this.getJavaClass().getBarHeightSync());
224
- this.barCodeWidth = new Unit(this.getJavaClass().getBarCodeWidthSync());
225
- this.barCodeHeight = new Unit(this.getJavaClass().getBarCodeHeightSync());
226
222
  this.codeTextParameters = new CodetextParameters(this.getJavaClass().getCodeTextParametersSync());
227
223
  this.postal = new PostalParameters(this.getJavaClass().getPostalSync());
228
224
  this.australianPost = new AustralianPostParameters(this.getJavaClass().getAustralianPostSync());
@@ -681,6 +677,26 @@ class BaseGenerationParameters extends joint.BaseJavaClass
681
677
  this.imageHeight = new Unit(this.getJavaClass().getImageHeightSync());
682
678
  }
683
679
 
680
+ /**
681
+ * <p>
682
+ * Gets a value indicating whether is used anti-aliasing mode to render image
683
+ * </p>
684
+ */
685
+ getUseAntiAlias()
686
+ {
687
+ return this.getJavaClass().getUseAntiAliasSync();
688
+ }
689
+
690
+ /**
691
+ * <p>
692
+ * Sets a value indicating whether is used anti-aliasing mode to render image
693
+ * </p>
694
+ */
695
+ setUseAntiAlias(value)
696
+ {
697
+ this.getJavaClass().setUseAntiAliasSync(value);
698
+ }
699
+
684
700
  /**
685
701
  * Background color of the barcode image.<br>
686
702
  * Default value: #FFFFFF<br>
@@ -4748,7 +4764,7 @@ TextAlignment =
4748
4764
  * let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
4749
4765
  * generator.setAutoSizeMode(AutoSizeMode.NEAREST);
4750
4766
  * generator.getBarCodeWidth().setMillimeters(50);
4751
- * generator.getBarCodeHeight().setInches(1.3f);
4767
+ * generator.getBarCodeHeight().setInches(1.3f); TODO
4752
4768
  * generator.save("test.png", BarcodeImageFormat.PNG);
4753
4769
  *
4754
4770
  * @enum
@@ -174,154 +174,6 @@ class BarCodeReader extends joint.BaseJavaClass
174
174
  this.getJavaClass().setTimeoutSync(value);
175
175
  }
176
176
 
177
- /**
178
- * Enable checksum validation during recognition for 1D barcodes.<br>
179
- * Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.<br>
180
- * Checksum never used: Codabar<br>
181
- * Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, <br>
182
- * Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN<br>
183
- * Checksum always used: Rest symbologies<br>
184
- * <pre><code>
185
- * //This sample shows influence of ChecksumValidation on recognition quality and results
186
- *
187
- * let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
188
- * generator.save("test.png");
189
- * let reader = new BarCodeReader("test.png", null, DecodeType.EAN_13);
190
- * //checksum disabled
191
- * reader.setChecksumValidation(ChecksumValidation.OFF);
192
- * reader.readBarCodes().forEach(function(result, i, results)
193
- * {
194
- * console.log("BarCode CodeText: " + result.getCodeText());
195
- * console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
196
- * console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
197
- * });
198
- * let reader = new BarCodeReader("test.png", null, DecodeType.EAN_13);
199
- * //checksum enabled
200
- * reader.setChecksumValidation(ChecksumValidation.ON);
201
- * reader.readBarCodes().forEach(function(result, i, results)
202
- * {
203
- * console.log("BarCode CodeText: " + result.getCodeText());
204
- * console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
205
- * console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
206
- * });
207
- * </code></pre>
208
- *
209
- * The checksum validation flag.
210
- */
211
- getChecksumValidation()
212
- {
213
- return this.getJavaClass().getChecksumValidationSync();
214
- }
215
-
216
- /**
217
- *
218
- * Enable checksum validation during recognition for 1D barcodes.<br>
219
- * Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.<br>
220
- * Checksum never used: Codabar<br>
221
- * Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN<br>
222
- * Checksum always used: Rest symbologies<br>
223
- *@example
224
- * This sample shows influence of ChecksumValidation on recognition quality and results
225
- *
226
- * let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
227
- * generator.save("test.png");
228
- * let reader = new BarCodeReader("test.png", null, DecodeType.EAN_13);
229
- * //checksum disabled
230
- * reader.setChecksumValidation(ChecksumValidation.OFF);
231
- * reader.readBarCodes().forEach(function(result, i, results)
232
- * {
233
- * console.log("BarCode CodeText: " + result.getCodeText());
234
- * console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
235
- * console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
236
- * });
237
- * let reader = new BarCodeReader("test.png", null, DecodeType.EAN_13);
238
- * //checksum enabled
239
- * reader.setChecksumValidation(ChecksumValidation.ON);
240
- * reader.readBarCodes().forEach(function(result, i, results)
241
- * {
242
- * console.log("BarCode CodeText: " + result.getCodeText());
243
- * console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
244
- * console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
245
- * });
246
- *
247
- * The checksum validation flag.
248
- */
249
- setChecksumValidation(value)
250
- {
251
- this.getJavaClass().setChecksumValidationSync(value);
252
- }
253
-
254
- /**
255
- * Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
256
- *@example
257
- * //This sample shows how to strip FNC characters<br>
258
- *
259
- * let generator = new BarcodeGenerator(EncodeTypes.GS1Code128, "(02)04006664241007(37)1(400)7019590754");
260
- * generator.save("test.png");
261
- * let reader = new BarCodeReader("test.png", null, DecodeType.CODE_128);
262
- * //StripFNC disabled
263
- * reader.setStripFNC(false);
264
- * reader.readBarCodes().forEach(function(result, i, results)
265
- * {
266
- * console.log("BarCode CodeText: " + result.getCodeText());
267
- * });
268
- * let reader = new BarCodeReader("test.png", null, DecodeType.CODE_128);
269
- * //StripFNC enabled
270
- * reader.setStripFNC(true);
271
- * reader.readBarCodes().forEach(function(result, i, results)
272
- * {
273
- * console.log("BarCode CodeText: " + result.getCodeText());
274
- * });
275
- */
276
- getStripFNC()
277
- {
278
- return this.getJavaClass().getStripFNCSync();
279
- }
280
-
281
- /**
282
- * Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
283
- *@example
284
- * //This sample shows how to strip FNC characters
285
- *
286
- * let generator = new BarcodeGenerator(EncodeTypes.GS1Code128, "(02)04006664241007(37)1(400)7019590754");
287
- * generator.save("test.png");
288
- * let reader = new BarCodeReader("test.png", null, DecodeType.CODE_128);
289
- * //StripFNC disabled
290
- * reader.setStripFNC(false);
291
- * reader.readBarCodes().forEach(function(result, i, results)
292
- * {
293
- * console.log("BarCode CodeText: " + result.getCodeText());
294
- * });
295
- * let reader = new BarCodeReader("test.png", null, DecodeType.CODE_128);
296
- * //StripFNC enabled
297
- * reader.setStripFNC(true);
298
- * reader.readBarCodes().forEach(function(result, i, results)
299
- * {
300
- * console.log("BarCode CodeText: " + result.getCodeText());
301
- * });
302
- *
303
- */
304
- setStripFNC(value)
305
- {
306
- this.getJavaClass().setStripFNCSync(value);
307
- }
308
-
309
- /**
310
- * Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.OTHER.
311
- */
312
- getCustomerInformationInterpretingType()
313
- {
314
- return this.getJavaClass().getCustomerInformationInterpretingTypeSync();
315
- }
316
-
317
- /**
318
- * Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.OTHER.
319
- */
320
- setCustomerInformationInterpretingType(value)
321
- {
322
- this.getJavaClass().setCustomerInformationInterpretingTypeSync(value);
323
- }
324
-
325
177
  abort()
326
178
  {
327
179
  this.getJavaClass().abortSync();
@@ -481,62 +333,6 @@ class BarCodeReader extends joint.BaseJavaClass
481
333
  return this.barcodeSettings;
482
334
  }
483
335
 
484
- /**
485
- * A flag which force engine to detect codetext encoding for Unicode codesets.
486
- * @example
487
- * // This sample shows how to detect text encoding on the fly if DetectEncoding is enabled
488
- * image = "image.png";
489
- * let generator = new BarcodeGenerator(EncodeTypes.QR, "пїЅпїЅпїЅпїЅпїЅ"))
490
- * generator.getParameters().getBarcode().getQR().setCodeTextEncoding("UTF-8");
491
- * generator.save(image, BarCodeImageFormat.getPng());
492
- * //detects encoding for Unicode codesets is enabled
493
- * let reader = new BarCodeReader(image, null, DecodeType.QR);
494
- * reader.setDetectEncoding(true);
495
- * reader.readBarCodes().forEach(function(result, i, results)
496
- * {
497
- * console.log("BarCode CodeText: " + result.getCodeText());
498
- * });
499
- * //detect encoding is disabled
500
- * let reader = new BarCodeReader(image, null, DecodeType.QR);
501
- * reader.setDetectEncoding(false);
502
- * reader.readBarCodes().forEach(function(result, i, results)
503
- * {
504
- * console.log("BarCode CodeText: " + result.getCodeText());
505
- * });
506
- */
507
- getDetectEncoding()
508
- {
509
- return this.getJavaClass().getDetectEncodingSync();
510
- }
511
-
512
- /**
513
- * A flag which force engine to detect codetext encoding for Unicode codesets.
514
- * @example
515
- * //This sample shows how to detect text encoding on the fly if DetectEncoding is enabled
516
- * let image = "image.png";
517
- * let generator = new BarcodeGenerator(EncodeTypes.QR, "пїЅпїЅпїЅпїЅпїЅ");
518
- * generator.getParameters().getBarcode().getQR().setCodeTextEncoding("UTF-8");
519
- * generator.save(image, BarCodeImageFormat.getPng());
520
- * //detects encoding for Unicode codesets is enabled
521
- * let reader = new BarCodeReader(image, null, DecodeType.QR);
522
- * reader.setDetectEncoding(true);
523
- * reader.readBarCodes().forEach(function(result, i, results)
524
- * {
525
- * console.log("BarCode CodeText: " + result.getCodeText());
526
- * });
527
- * //detect encoding is disabled
528
- * let reader = new BarCodeReader(image, null, DecodeType.QR);
529
- * reader.setDetectEncoding(true);
530
- * reader.readBarCodes().forEach(function(result, i, results)
531
- * {
532
- * console.log("BarCode CodeText: " + result.getCodeText());
533
- * });
534
- */
535
- setDetectEncoding(value)
536
- {
537
- this.getJavaClass().setDetectEncodingSync(value);
538
- }
539
-
540
336
  /**
541
337
  * Sets bitmap image and areas for recognition.
542
338
  * Must be called before ReadBarCodes() method.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose.barcode",
3
- "version": "23.2.1",
3
+ "version": "23.4.0",
4
4
  "description": "barcode generation and recognition component",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"