aspose.barcode 23.7.0 → 23.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.
- package/examples/BarcodeReaderExamples.js +2 -21
- package/lib/AsposeBarcode.js +1 -1
- package/lib/ComplexBarcode.js +5 -3
- package/lib/Generation.js +550 -32
- package/lib/Recognition.js +262 -7
- package/lib/{aspose-barcode-nodejs-23.7.jar → aspose-barcode-nodejs-23.9.jar} +0 -0
- package/package.json +1 -1
|
@@ -186,24 +186,6 @@ class BarCodeReaderExamples
|
|
|
186
186
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
howToDetectEncodingEnabled()
|
|
190
|
-
{
|
|
191
|
-
console.log("\n---\nfunction '" + this.howToDetectEncodingEnabled.name + "'\n");
|
|
192
|
-
let gen = new BarcodeGenerator(EncodeTypes.QR, null);
|
|
193
|
-
gen.setCodeText("Слово");
|
|
194
|
-
gen.getParameters().getBarcode().getQR().setCodeTextEncoding("UTF-8");
|
|
195
|
-
let image = gen.generateBarCodeImage(aspose_barcode.BarCodeImageFormat.PNG);
|
|
196
|
-
|
|
197
|
-
let reader = new BarCodeReader((image), null, DecodeType.QR);
|
|
198
|
-
reader.setDetectEncoding(true);
|
|
199
|
-
reader.readBarCodes().forEach(function (result, i, results)
|
|
200
|
-
{
|
|
201
|
-
console.log("CodeText : " + result.getCodeText());
|
|
202
|
-
|
|
203
|
-
console.log("CodeType : " + result.getCodeTypeName());
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
|
|
207
189
|
howToCustomerInformationInterpretingType1()
|
|
208
190
|
{
|
|
209
191
|
console.log("\n---\nfunction '" + this.howToCustomerInformationInterpretingType1.name + "'\n");
|
|
@@ -215,7 +197,7 @@ class BarCodeReaderExamples
|
|
|
215
197
|
generator.getParameters().getImageHeight().setPixels(150);
|
|
216
198
|
let image = generator.generateBarCodeImage(aspose_barcode.BarCodeImageFormat.PNG);
|
|
217
199
|
let reader = new BarCodeReader(image, null, DecodeType.AUSTRALIA_POST);
|
|
218
|
-
reader.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.N_TABLE);
|
|
200
|
+
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.N_TABLE);
|
|
219
201
|
reader.readBarCodes().forEach(function (result, i, results)
|
|
220
202
|
{
|
|
221
203
|
console.log("CodeText : " + result.getCodeText());
|
|
@@ -234,7 +216,7 @@ class BarCodeReaderExamples
|
|
|
234
216
|
generator.getParameters().getImageHeight().setPixels(150);
|
|
235
217
|
let image = generator.generateBarCodeImage(aspose_barcode.BarCodeImageFormat.PNG);
|
|
236
218
|
let reader = new BarCodeReader(image, null, DecodeType.AUSTRALIA_POST);
|
|
237
|
-
reader.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE);
|
|
219
|
+
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE);
|
|
238
220
|
reader.readBarCodes().forEach(function (result, i, results)
|
|
239
221
|
{
|
|
240
222
|
console.log("CodeText : " + result.getCodeText());
|
|
@@ -255,6 +237,5 @@ barCodeReaderExamples.howToRecognitionCodeAllSupportedTypes();
|
|
|
255
237
|
barCodeReaderExamples.howToRecognitionCodeAllSupportedTypes2();
|
|
256
238
|
barCodeReaderExamples.howToRecognitionSetBarCodeImage();
|
|
257
239
|
barCodeReaderExamples.howToMacroPdf417();
|
|
258
|
-
barCodeReaderExamples.howToDetectEncodingEnabled();
|
|
259
240
|
barCodeReaderExamples.howToCustomerInformationInterpretingType1();
|
|
260
241
|
barCodeReaderExamples.howToCustomerInformationInterpretingType2();
|
package/lib/AsposeBarcode.js
CHANGED
|
@@ -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.
|
|
7
|
+
const jar_name_ = "/aspose-barcode-nodejs-23.9.jar";
|
|
8
8
|
const jar_path_ = __dirname + jar_name_;
|
|
9
9
|
const fs = require("fs");
|
|
10
10
|
|
package/lib/ComplexBarcode.js
CHANGED
|
@@ -577,6 +577,8 @@ class ComplexCodetextReader {
|
|
|
577
577
|
let javaHIBCLICCombinedCodetextClass = java.import(HIBCLICCombinedCodetext.JAVA_CLASS_NAME);
|
|
578
578
|
let javaNodeJsComplexCodetextReaderJavaClass = java.import(ComplexCodetextReader.javaClassName);
|
|
579
579
|
let hibclicComplexCodetext = javaNodeJsComplexCodetextReaderJavaClass.tryDecodeHIBCLICSync(encodedCodetext);
|
|
580
|
+
if(hibclicComplexCodetext == null)
|
|
581
|
+
return null;
|
|
580
582
|
if(hibclicComplexCodetext.getClassSync().equalsSync(javaHIBCLICSecondaryAndAdditionalDataCodetextClass.class))
|
|
581
583
|
{
|
|
582
584
|
return HIBCLICSecondaryAndAdditionalDataCodetext.construct(hibclicComplexCodetext);
|
|
@@ -2799,10 +2801,10 @@ class HIBCPASCodetext extends IComplexCodetext
|
|
|
2799
2801
|
{
|
|
2800
2802
|
let _array = [];
|
|
2801
2803
|
let mwRecordsList = this.getJavaClass().getRecordsSync();
|
|
2802
|
-
let listSize = mwRecordsList.
|
|
2804
|
+
let listSize = mwRecordsList.sizeSync();
|
|
2803
2805
|
for (let i = 0; i < listSize; i++)
|
|
2804
2806
|
{
|
|
2805
|
-
let mwhibcpasRecord = mwRecordsList.
|
|
2807
|
+
let mwhibcpasRecord = mwRecordsList.getSync(i);
|
|
2806
2808
|
_array.push(HIBCPASRecord.construct(mwhibcpasRecord));
|
|
2807
2809
|
}
|
|
2808
2810
|
return _array;
|
|
@@ -2929,7 +2931,7 @@ class HIBCPASRecord extends joint.BaseJavaClass
|
|
|
2929
2931
|
*/
|
|
2930
2932
|
static construct(javaClass)
|
|
2931
2933
|
{
|
|
2932
|
-
let obj = new HIBCPASRecord(0,
|
|
2934
|
+
let obj = new HIBCPASRecord(0,"");
|
|
2933
2935
|
obj.setJavaClass(javaClass);
|
|
2934
2936
|
return obj;
|
|
2935
2937
|
}
|
package/lib/Generation.js
CHANGED
|
@@ -1509,7 +1509,7 @@ class CodetextParameters extends joint.BaseJavaClass
|
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
1511
|
/**
|
|
1512
|
-
* Gets
|
|
1512
|
+
* Gets the alignment of the code text.<br>
|
|
1513
1513
|
* Default value: TextAlignment.CENTER.
|
|
1514
1514
|
*/
|
|
1515
1515
|
getAlignment()
|
|
@@ -1518,7 +1518,7 @@ class CodetextParameters extends joint.BaseJavaClass
|
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
/**
|
|
1521
|
-
*
|
|
1521
|
+
* Sets the alignment of the code text.<br>
|
|
1522
1522
|
* Default value: TextAlignment.CENTER.
|
|
1523
1523
|
*/
|
|
1524
1524
|
setAlignment(value)
|
|
@@ -1904,7 +1904,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
1904
1904
|
|
|
1905
1905
|
/**
|
|
1906
1906
|
* <p>
|
|
1907
|
-
* Gets
|
|
1907
|
+
* Gets a Datamatrix symbol size.
|
|
1908
1908
|
* Default value: DataMatrixVersion.Auto.
|
|
1909
1909
|
* </p>
|
|
1910
1910
|
*/
|
|
@@ -1915,7 +1915,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
1915
1915
|
|
|
1916
1916
|
/**
|
|
1917
1917
|
* <p>
|
|
1918
|
-
*
|
|
1918
|
+
* Sets a Datamatrix symbol size.
|
|
1919
1919
|
* Default value: DataMatrixVersion.Auto.
|
|
1920
1920
|
* </p>
|
|
1921
1921
|
*/
|
|
@@ -2142,7 +2142,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
2142
2142
|
|
|
2143
2143
|
/**
|
|
2144
2144
|
* <p>
|
|
2145
|
-
* Gets
|
|
2145
|
+
* Gets ECI encoding. Used when DataMatrixEncodeMode is Auto.
|
|
2146
2146
|
* Default value: ISO-8859-1
|
|
2147
2147
|
* </p>
|
|
2148
2148
|
*/
|
|
@@ -2152,7 +2152,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
|
|
|
2152
2152
|
}
|
|
2153
2153
|
/**
|
|
2154
2154
|
* <p>
|
|
2155
|
-
*
|
|
2155
|
+
* Sets ECI encoding. Used when DataMatrixEncodeMode is Auto.
|
|
2156
2156
|
* Default value: ISO-8859-1
|
|
2157
2157
|
* </p>
|
|
2158
2158
|
*/
|
|
@@ -2524,6 +2524,25 @@ class GS1CompositeBarParameters extends joint.BaseJavaClass
|
|
|
2524
2524
|
this.getJavaClass().setTwoDComponentTypeSync(value);
|
|
2525
2525
|
}
|
|
2526
2526
|
|
|
2527
|
+
/**
|
|
2528
|
+
* <p>
|
|
2529
|
+
* If this flag is set, it allows only GS1 encoding standard for GS1CompositeBar 2D Component
|
|
2530
|
+
* </p>
|
|
2531
|
+
*/
|
|
2532
|
+
isAllowOnlyGS1Encoding()
|
|
2533
|
+
{
|
|
2534
|
+
return this.getJavaClass().isAllowOnlyGS1EncodingSync();
|
|
2535
|
+
}
|
|
2536
|
+
/**
|
|
2537
|
+
* <p>
|
|
2538
|
+
* If this flag is set, it allows only GS1 encoding standard for GS1CompositeBar 2D Component
|
|
2539
|
+
* </p>
|
|
2540
|
+
*/
|
|
2541
|
+
setAllowOnlyGS1Encoding(value)
|
|
2542
|
+
{
|
|
2543
|
+
this.getJavaClass().setAllowOnlyGS1EncodingSync(value);
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2527
2546
|
/**
|
|
2528
2547
|
* Returns a human-readable string representation of this <see cref="DataBarParameters"/>.
|
|
2529
2548
|
* @return A string that represents this <see cref="DataBarParameters"/>
|
|
@@ -2554,7 +2573,7 @@ class ITFParameters extends joint.BaseJavaClass
|
|
|
2554
2573
|
}
|
|
2555
2574
|
|
|
2556
2575
|
/**
|
|
2557
|
-
* Gets
|
|
2576
|
+
* Gets an ITF border (bearer bar) thickness in Unit value.<br>
|
|
2558
2577
|
* Default value: 12pt.
|
|
2559
2578
|
*/
|
|
2560
2579
|
getItfBorderThickness()
|
|
@@ -2563,7 +2582,7 @@ class ITFParameters extends joint.BaseJavaClass
|
|
|
2563
2582
|
}
|
|
2564
2583
|
|
|
2565
2584
|
/**
|
|
2566
|
-
*
|
|
2585
|
+
* Sets an ITF border (bearer bar) thickness in Unit value.<br>
|
|
2567
2586
|
* Default value: 12pt.
|
|
2568
2587
|
*/
|
|
2569
2588
|
setItfBorderThickness(value)
|
|
@@ -2830,7 +2849,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2830
2849
|
}
|
|
2831
2850
|
|
|
2832
2851
|
/**
|
|
2833
|
-
* Gets
|
|
2852
|
+
* Gets Pdf417 symbology type of BarCode's error correction level<br>
|
|
2834
2853
|
* ranging from level0 to level8, level0 means no error correction info,<br>
|
|
2835
2854
|
* level8 means best error correction which means a larger picture.
|
|
2836
2855
|
*/
|
|
@@ -2840,7 +2859,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2840
2859
|
}
|
|
2841
2860
|
|
|
2842
2861
|
/**
|
|
2843
|
-
*
|
|
2862
|
+
* Sets Pdf417 symbology type of BarCode's error correction level<br>
|
|
2844
2863
|
* ranging from level0 to level8, level0 means no error correction info,<br>
|
|
2845
2864
|
* level8 means best error correction which means a larger picture.
|
|
2846
2865
|
*/
|
|
@@ -3028,7 +3047,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3028
3047
|
}
|
|
3029
3048
|
|
|
3030
3049
|
/**
|
|
3031
|
-
* Gets
|
|
3050
|
+
* Gets macro Pdf417 file size.<br>
|
|
3032
3051
|
* @return The file size field contains the size in bytes of the entire source file.
|
|
3033
3052
|
*/
|
|
3034
3053
|
getPdf417MacroFileSize()
|
|
@@ -3037,7 +3056,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
3037
3056
|
}
|
|
3038
3057
|
|
|
3039
3058
|
/**
|
|
3040
|
-
*
|
|
3059
|
+
* Sets macro Pdf417 file size.<br>
|
|
3041
3060
|
* @param value The file size field contains the size in bytes of the entire source file.
|
|
3042
3061
|
*/
|
|
3043
3062
|
setPdf417MacroFileSize(value)
|
|
@@ -3385,17 +3404,126 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3385
3404
|
}
|
|
3386
3405
|
|
|
3387
3406
|
/**
|
|
3388
|
-
*
|
|
3389
|
-
*
|
|
3407
|
+
* <p>
|
|
3408
|
+
* Gets a Aztec encode mode.
|
|
3409
|
+
* Default value: Auto.
|
|
3410
|
+
* </p>
|
|
3411
|
+
*/
|
|
3412
|
+
getAztecEncodeMode()
|
|
3413
|
+
{
|
|
3414
|
+
return this.getJavaClass().getAztecEncodeModeSync();
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
/**
|
|
3418
|
+
* <p>
|
|
3419
|
+
* Sets a Aztec encode mode.
|
|
3420
|
+
* Default value: Auto.
|
|
3421
|
+
* </p>
|
|
3422
|
+
*/
|
|
3423
|
+
setAztecEncodeMode(value)
|
|
3424
|
+
{
|
|
3425
|
+
this.getJavaClass().setAztecEncodeModeSync(value);
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
/**
|
|
3429
|
+
* <p>
|
|
3430
|
+
* Gets ECI encoding. Used when AztecEncodeMode is Auto.
|
|
3431
|
+
* Default value: ISO-8859-1
|
|
3432
|
+
* </p>
|
|
3433
|
+
*/
|
|
3434
|
+
getECIEncoding()
|
|
3435
|
+
{
|
|
3436
|
+
return this.getJavaClass().getECIEncodingSync();
|
|
3437
|
+
}
|
|
3438
|
+
/**
|
|
3439
|
+
* <p>
|
|
3440
|
+
* Sets ECI encoding. Used when AztecEncodeMode is Auto.
|
|
3441
|
+
* Default value: ISO-8859-1
|
|
3442
|
+
* </p>
|
|
3443
|
+
*/
|
|
3444
|
+
setECIEncoding(value)
|
|
3445
|
+
{
|
|
3446
|
+
this.getJavaClass().setECIEncodingSync(value);
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
/**
|
|
3450
|
+
* <p>
|
|
3451
|
+
* Barcode ID for Structured Append mode of Aztec barcode. Barcode ID should be in range from 1 to barcodes count.
|
|
3452
|
+
* Default value: 0
|
|
3453
|
+
* </p>
|
|
3454
|
+
*/
|
|
3455
|
+
getStructuredAppendBarcodeId()
|
|
3456
|
+
{
|
|
3457
|
+
return this.getJavaClass().getStructuredAppendBarcodeIdSync();
|
|
3458
|
+
}
|
|
3459
|
+
/**
|
|
3460
|
+
* <p>
|
|
3461
|
+
* Barcode ID for Structured Append mode of Aztec barcode. Barcode ID should be in range from 1 to barcodes count.
|
|
3462
|
+
* Default value: 0
|
|
3463
|
+
* </p>
|
|
3464
|
+
*/
|
|
3465
|
+
setStructuredAppendBarcodeId(value)
|
|
3466
|
+
{
|
|
3467
|
+
this.getJavaClass().setStructuredAppendBarcodeIdSync(value);
|
|
3468
|
+
}
|
|
3469
|
+
|
|
3470
|
+
/**
|
|
3471
|
+
* <p>
|
|
3472
|
+
* Barcodes count for Structured Append mode of Aztec barcode. Barcodes count should be in range from 1 to 26.
|
|
3473
|
+
* Default value: 0
|
|
3474
|
+
* </p>
|
|
3475
|
+
*/
|
|
3476
|
+
getStructuredAppendBarcodesCount()
|
|
3477
|
+
{
|
|
3478
|
+
return this.getJavaClass().getStructuredAppendBarcodesCountSync();
|
|
3479
|
+
}
|
|
3480
|
+
/**
|
|
3481
|
+
* <p>
|
|
3482
|
+
* Barcodes count for Structured Append mode of Aztec barcode. Barcodes count should be in range from 1 to 26.
|
|
3483
|
+
* Default value: 0
|
|
3484
|
+
* </p>
|
|
3485
|
+
*/
|
|
3486
|
+
setStructuredAppendBarcodesCount(value)
|
|
3487
|
+
{
|
|
3488
|
+
this.getJavaClass().setStructuredAppendBarcodesCountSync(value);
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
* <p>
|
|
3493
|
+
* File ID for Structured Append mode of Aztec barcode (optional field). File ID should not contain spaces.
|
|
3494
|
+
* Default value: empty string
|
|
3495
|
+
* </p>
|
|
3496
|
+
*/
|
|
3497
|
+
getStructuredAppendFileId()
|
|
3498
|
+
{
|
|
3499
|
+
return this.getJavaClass().getStructuredAppendFileIdSync();
|
|
3500
|
+
}
|
|
3501
|
+
/**
|
|
3502
|
+
* <p>
|
|
3503
|
+
* File ID for Structured Append mode of Aztec barcode (optional field). File ID should not contain spaces.
|
|
3504
|
+
* Default value: empty string
|
|
3505
|
+
* </p>
|
|
3506
|
+
*/
|
|
3507
|
+
setStructuredAppendFileId(value)
|
|
3508
|
+
{
|
|
3509
|
+
this.getJavaClass().setStructuredAppendFileIdSync(value);
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
/**
|
|
3513
|
+
* <p>
|
|
3514
|
+
* Level of error correction of Aztec types of barcode.
|
|
3515
|
+
* Value should between 5 to 95.
|
|
3516
|
+
* </p>
|
|
3390
3517
|
*/
|
|
3391
3518
|
getAztecErrorLevel()
|
|
3392
3519
|
{
|
|
3393
3520
|
return this.getJavaClass().getAztecErrorLevelSync();
|
|
3394
3521
|
}
|
|
3395
|
-
|
|
3396
3522
|
/**
|
|
3397
|
-
*
|
|
3398
|
-
*
|
|
3523
|
+
* <p>
|
|
3524
|
+
* Level of error correction of Aztec types of barcode.
|
|
3525
|
+
* Value should between 5 to 95.
|
|
3526
|
+
* </p>
|
|
3399
3527
|
*/
|
|
3400
3528
|
setAztecErrorLevel(value)
|
|
3401
3529
|
{
|
|
@@ -3403,17 +3531,20 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3403
3531
|
}
|
|
3404
3532
|
|
|
3405
3533
|
/**
|
|
3406
|
-
*
|
|
3407
|
-
*
|
|
3534
|
+
* <p>
|
|
3535
|
+
* Gets a Aztec Symbol mode.
|
|
3536
|
+
* Default value: AztecSymbolMode.Auto.
|
|
3537
|
+
* </p>
|
|
3408
3538
|
*/
|
|
3409
3539
|
getAztecSymbolMode()
|
|
3410
3540
|
{
|
|
3411
3541
|
return this.getJavaClass().getAztecSymbolModeSync();
|
|
3412
3542
|
}
|
|
3413
|
-
|
|
3414
3543
|
/**
|
|
3415
|
-
*
|
|
3416
|
-
*
|
|
3544
|
+
* <p>
|
|
3545
|
+
* Sets a Aztec Symbol mode.
|
|
3546
|
+
* Default value: AztecSymbolMode.Auto.
|
|
3547
|
+
* </p>
|
|
3417
3548
|
*/
|
|
3418
3549
|
setAztecSymbolMode(value)
|
|
3419
3550
|
{
|
|
@@ -3421,15 +3552,63 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3421
3552
|
}
|
|
3422
3553
|
|
|
3423
3554
|
/**
|
|
3555
|
+
* <p>
|
|
3556
|
+
* Gets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and
|
|
3557
|
+
* in range from 1 to 32 for Full Range mode.
|
|
3558
|
+
* Default value: 0 (auto).
|
|
3559
|
+
* </p>
|
|
3560
|
+
*/
|
|
3561
|
+
getLayersCount()
|
|
3562
|
+
{
|
|
3563
|
+
return this.getJavaClass().getLayersCountSync();
|
|
3564
|
+
}
|
|
3565
|
+
/**
|
|
3566
|
+
* <p>
|
|
3567
|
+
* Sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and
|
|
3568
|
+
* in range from 1 to 32 for Full Range mode.
|
|
3569
|
+
* Default value: 0 (auto).
|
|
3570
|
+
* </p>
|
|
3571
|
+
*/
|
|
3572
|
+
setLayersCount(value)
|
|
3573
|
+
{
|
|
3574
|
+
this.getJavaClass().setLayersCountSync(value);
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
/**
|
|
3578
|
+
* <p>
|
|
3579
|
+
* Used to instruct the reader to interpret the data contained within the symbol
|
|
3580
|
+
* as programming for reader initialization.
|
|
3581
|
+
* </p>
|
|
3582
|
+
*/
|
|
3583
|
+
isReaderInitialization()
|
|
3584
|
+
{
|
|
3585
|
+
return this.getJavaClass().isReaderInitializationSync();
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
* <p>
|
|
3590
|
+
* Used to instruct the reader to interpret the data contained within the symbol
|
|
3591
|
+
* as programming for reader initialization.
|
|
3592
|
+
* </p>
|
|
3593
|
+
*/
|
|
3594
|
+
setReaderInitialization(value)
|
|
3595
|
+
{
|
|
3596
|
+
this.getJavaClass().setReaderInitializationSync(value);
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
/**
|
|
3600
|
+
* <p>
|
|
3424
3601
|
* Height/Width ratio of 2D BarCode module.
|
|
3602
|
+
* </p>
|
|
3425
3603
|
*/
|
|
3426
3604
|
getAspectRatio()
|
|
3427
3605
|
{
|
|
3428
3606
|
return this.getJavaClass().getAspectRatioSync();
|
|
3429
3607
|
}
|
|
3430
|
-
|
|
3431
3608
|
/**
|
|
3609
|
+
* <p>
|
|
3432
3610
|
* Height/Width ratio of 2D BarCode module.
|
|
3611
|
+
* </p>
|
|
3433
3612
|
*/
|
|
3434
3613
|
setAspectRatio(value)
|
|
3435
3614
|
{
|
|
@@ -3437,26 +3616,34 @@ class AztecParameters extends joint.BaseJavaClass
|
|
|
3437
3616
|
}
|
|
3438
3617
|
|
|
3439
3618
|
/**
|
|
3440
|
-
*
|
|
3619
|
+
* <p>
|
|
3620
|
+
* Gets the encoding of codetext.
|
|
3441
3621
|
* Default value: UTF-8
|
|
3622
|
+
* </p>
|
|
3442
3623
|
*/
|
|
3443
3624
|
getCodeTextEncoding()
|
|
3444
3625
|
{
|
|
3626
|
+
console.log('This function is deprecated.');
|
|
3445
3627
|
return this.getJavaClass().getCodeTextEncodingSync();
|
|
3446
3628
|
}
|
|
3447
3629
|
|
|
3448
3630
|
/**
|
|
3449
|
-
*
|
|
3631
|
+
* <p>
|
|
3632
|
+
* Sets the encoding of codetext.
|
|
3450
3633
|
* Default value: UTF-8
|
|
3634
|
+
* </p>
|
|
3451
3635
|
*/
|
|
3452
|
-
setCodeTextEncoding(
|
|
3636
|
+
setCodeTextEncoding(codeTextEncoding)
|
|
3453
3637
|
{
|
|
3454
|
-
|
|
3638
|
+
console.log('This function is deprecated.');
|
|
3639
|
+
this.getJavaClass().setCodeTextEncodingSync(codeTextEncoding);
|
|
3455
3640
|
}
|
|
3456
3641
|
|
|
3457
3642
|
/**
|
|
3458
|
-
*
|
|
3459
|
-
*
|
|
3643
|
+
* <p>
|
|
3644
|
+
* Returns a human-readable string representation of this {@code AztecParameters}.
|
|
3645
|
+
* </p>
|
|
3646
|
+
* @return A string that represents this {@code AztecParameters}.
|
|
3460
3647
|
*/
|
|
3461
3648
|
toString()
|
|
3462
3649
|
{
|
|
@@ -4069,7 +4256,7 @@ class Code128Parameters extends joint.BaseJavaClass
|
|
|
4069
4256
|
|
|
4070
4257
|
/**
|
|
4071
4258
|
* <p>
|
|
4072
|
-
* Gets
|
|
4259
|
+
* Gets a Code128 encode mode.
|
|
4073
4260
|
* Default value: Code128EncodeMode.Auto
|
|
4074
4261
|
* </p>
|
|
4075
4262
|
*/
|
|
@@ -4079,7 +4266,7 @@ class Code128Parameters extends joint.BaseJavaClass
|
|
|
4079
4266
|
}
|
|
4080
4267
|
/**
|
|
4081
4268
|
* <p>
|
|
4082
|
-
*
|
|
4269
|
+
* Sets a Code128 encode mode.
|
|
4083
4270
|
* Default value: Code128EncodeMode.Auto
|
|
4084
4271
|
* </p>
|
|
4085
4272
|
*/
|
|
@@ -4297,6 +4484,201 @@ class DataMatrixExtCodetextBuilder extends ExtCodetextBuilder
|
|
|
4297
4484
|
}
|
|
4298
4485
|
}
|
|
4299
4486
|
|
|
4487
|
+
/**
|
|
4488
|
+
* <p>
|
|
4489
|
+
* <p>Extended codetext generator for Han Xin Code for Extended Mode of HanXinEncodeMode</p>
|
|
4490
|
+
* </p><p><hr><blockquote><pre>
|
|
4491
|
+
* <pre>
|
|
4492
|
+
*
|
|
4493
|
+
* //Extended codetext mode
|
|
4494
|
+
* //create codetext
|
|
4495
|
+
* let codeTextBuilder = new HanXinExtCodetextBuilder();
|
|
4496
|
+
* codeTextBuilder.addGB18030TwoByte("漄");
|
|
4497
|
+
* codeTextBuilder.addGB18030FourByte("㐁");
|
|
4498
|
+
* codeTextBuilder.addCommonChineseRegionOne("全");
|
|
4499
|
+
* codeTextBuilder.addCommonChineseRegionTwo("螅");
|
|
4500
|
+
* codeTextBuilder.addNumeric("123");
|
|
4501
|
+
* codeTextBuilder.addText("qwe");
|
|
4502
|
+
* codeTextBuilder.addUnicode("ıntəˈnæʃənəl");
|
|
4503
|
+
* codeTextBuilder.addECI("ΑΒΓΔΕ", 9);
|
|
4504
|
+
* codeTextBuilder.addAuto("abc");
|
|
4505
|
+
* codeTextBuilder.addBinary("abc");
|
|
4506
|
+
* codeTextBuilder.addURI("backslashes_should_be_doubled\000555:test");
|
|
4507
|
+
* codeTextBuilder.addGS1("(01)03453120000011(17)191125(10)ABCD1234(21)10");
|
|
4508
|
+
* let expectedStr = "漄㐁全螅123qweıntəˈnæʃənəlΑΒΓΔΕabcabcbackslashes_should_be_doubled\000555:test(01)03453120000011(17)191125(10)ABCD1234(21)10";
|
|
4509
|
+
* //generate codetext
|
|
4510
|
+
* let str = codeTextBuilder.getExtendedCodetext();
|
|
4511
|
+
* //generate
|
|
4512
|
+
* let bg = new BarcodeGenerator(EncodeTypes.HAN_XIN, str);
|
|
4513
|
+
* bg.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.EXTENDED);
|
|
4514
|
+
* let img = bg.generateBarCodeImage(BarcodeImageFormat.PNG);
|
|
4515
|
+
* let r = new BarCodeReader(img, null, DecodeType.HAN_XIN))
|
|
4516
|
+
* let found = r.readBarCodes();
|
|
4517
|
+
* assert.assertEquals(1, found.length);
|
|
4518
|
+
* assert.assertEquals(expectedStr, found[0].getCodeText());
|
|
4519
|
+
* </pre>
|
|
4520
|
+
* </pre></blockquote></hr></p>
|
|
4521
|
+
*/
|
|
4522
|
+
class HanXinExtCodetextBuilder extends joint.BaseJavaClass
|
|
4523
|
+
{
|
|
4524
|
+
static JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwHanXinExtCodetextBuilder";
|
|
4525
|
+
|
|
4526
|
+
constructor()
|
|
4527
|
+
{
|
|
4528
|
+
let java_class_link = java.import(HanXinExtCodetextBuilder.JAVA_CLASS_NAME);
|
|
4529
|
+
let javaClass = new java_class_link();
|
|
4530
|
+
super(javaClass);
|
|
4531
|
+
}
|
|
4532
|
+
|
|
4533
|
+
init()
|
|
4534
|
+
{
|
|
4535
|
+
}
|
|
4536
|
+
|
|
4537
|
+
/**
|
|
4538
|
+
* <p>
|
|
4539
|
+
* Adds codetext fragment in ECI mode
|
|
4540
|
+
* </p>
|
|
4541
|
+
* @param text Codetext string
|
|
4542
|
+
* @param encoding ECI encoding in number format
|
|
4543
|
+
*/
|
|
4544
|
+
addECI(text, encoding)
|
|
4545
|
+
{
|
|
4546
|
+
this.getJavaClass().addECISync(text, encoding);
|
|
4547
|
+
}
|
|
4548
|
+
|
|
4549
|
+
/**
|
|
4550
|
+
* <p>
|
|
4551
|
+
* Adds codetext fragment in Auto mode
|
|
4552
|
+
* </p>
|
|
4553
|
+
* @param text Codetext string
|
|
4554
|
+
*/
|
|
4555
|
+
addAuto(text)
|
|
4556
|
+
{
|
|
4557
|
+
this.getJavaClass().addAutoSync(text);
|
|
4558
|
+
}
|
|
4559
|
+
|
|
4560
|
+
/**
|
|
4561
|
+
* <p>
|
|
4562
|
+
* Adds codetext fragment in Binary mode
|
|
4563
|
+
* </p>
|
|
4564
|
+
* @param text Codetext string
|
|
4565
|
+
*/
|
|
4566
|
+
addBinary(text)
|
|
4567
|
+
{
|
|
4568
|
+
this.getJavaClass().addBinarySync(text);
|
|
4569
|
+
}
|
|
4570
|
+
|
|
4571
|
+
/**
|
|
4572
|
+
* <p>
|
|
4573
|
+
* Adds codetext fragment in URI mode
|
|
4574
|
+
* </p>
|
|
4575
|
+
* @param text Codetext string
|
|
4576
|
+
*/
|
|
4577
|
+
addURI(text)
|
|
4578
|
+
{
|
|
4579
|
+
this.getJavaClass().addURISync(text);
|
|
4580
|
+
}
|
|
4581
|
+
|
|
4582
|
+
/**
|
|
4583
|
+
* <p>
|
|
4584
|
+
* Adds codetext fragment in Text mode
|
|
4585
|
+
* </p>
|
|
4586
|
+
* @param text Codetext string
|
|
4587
|
+
*/
|
|
4588
|
+
addText(text)
|
|
4589
|
+
{
|
|
4590
|
+
this.getJavaClass().addTextSync(text);
|
|
4591
|
+
}
|
|
4592
|
+
|
|
4593
|
+
/**
|
|
4594
|
+
* <p>
|
|
4595
|
+
* Adds codetext fragment in Numeric mode
|
|
4596
|
+
* </p>
|
|
4597
|
+
* @param text Codetext string
|
|
4598
|
+
*/
|
|
4599
|
+
addNumeric(text)
|
|
4600
|
+
{
|
|
4601
|
+
this.getJavaClass().addNumericSync(text);
|
|
4602
|
+
}
|
|
4603
|
+
|
|
4604
|
+
/**
|
|
4605
|
+
* <p>
|
|
4606
|
+
* Adds codetext fragment in Unicode mode
|
|
4607
|
+
* </p>
|
|
4608
|
+
* @param text Codetext string
|
|
4609
|
+
*/
|
|
4610
|
+
addUnicode(text)
|
|
4611
|
+
{
|
|
4612
|
+
this.getJavaClass().addUnicodeSync(text);
|
|
4613
|
+
}
|
|
4614
|
+
|
|
4615
|
+
/**
|
|
4616
|
+
* <p>
|
|
4617
|
+
* Adds codetext fragment in Common Chinese Region One mode
|
|
4618
|
+
* </p>
|
|
4619
|
+
* @param text Codetext string
|
|
4620
|
+
*/
|
|
4621
|
+
addCommonChineseRegionOne(text)
|
|
4622
|
+
{
|
|
4623
|
+
this.getJavaClass().addCommonChineseRegionOneSync(text);
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
/**
|
|
4627
|
+
* <p>
|
|
4628
|
+
* Adds codetext fragment in Common Chinese Region Two mode
|
|
4629
|
+
* </p>
|
|
4630
|
+
* @param text Codetext string
|
|
4631
|
+
*/
|
|
4632
|
+
addCommonChineseRegionTwo(text)
|
|
4633
|
+
{
|
|
4634
|
+
this.getJavaClass().addCommonChineseRegionTwoSync(text);
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4637
|
+
/**
|
|
4638
|
+
* <p>
|
|
4639
|
+
* Adds codetext fragment in GB18030 Two Byte mode
|
|
4640
|
+
* </p>
|
|
4641
|
+
* @param text Codetext string
|
|
4642
|
+
*/
|
|
4643
|
+
addGB18030TwoByte(text)
|
|
4644
|
+
{
|
|
4645
|
+
this.getJavaClass().addGB18030TwoByteSync(text);
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
/**
|
|
4649
|
+
* <p>
|
|
4650
|
+
* Adds codetext fragment in GB18030 Four Byte mode
|
|
4651
|
+
* </p>
|
|
4652
|
+
* @param text Codetext string
|
|
4653
|
+
*/
|
|
4654
|
+
addGB18030FourByte(text)
|
|
4655
|
+
{
|
|
4656
|
+
this.getJavaClass().addGB18030FourByteSync(text);
|
|
4657
|
+
}
|
|
4658
|
+
|
|
4659
|
+
/**
|
|
4660
|
+
* <p>
|
|
4661
|
+
* Adds codetext fragment in GS1 mode
|
|
4662
|
+
* </p>
|
|
4663
|
+
* @param text Codetext string
|
|
4664
|
+
*/
|
|
4665
|
+
addGS1(text)
|
|
4666
|
+
{
|
|
4667
|
+
this.getJavaClass().addGS1Sync(text);
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4670
|
+
/**
|
|
4671
|
+
* <p>
|
|
4672
|
+
* Returns codetext from Extended mode codetext builder
|
|
4673
|
+
* </p>
|
|
4674
|
+
* @return Codetext in Extended mode
|
|
4675
|
+
*/
|
|
4676
|
+
getExtendedCodetext()
|
|
4677
|
+
{
|
|
4678
|
+
return this.getJavaClass().getExtendedCodetextSync();
|
|
4679
|
+
}
|
|
4680
|
+
}
|
|
4681
|
+
|
|
4300
4682
|
/**
|
|
4301
4683
|
* Enable checksum validation during recognition for 1D barcodes.<br>
|
|
4302
4684
|
* Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.<br>
|
|
@@ -5430,6 +5812,14 @@ EncodeTypes =
|
|
|
5430
5812
|
*/
|
|
5431
5813
|
AZTEC: 35,
|
|
5432
5814
|
|
|
5815
|
+
/**
|
|
5816
|
+
* <p>
|
|
5817
|
+
* Specifies that the data should be encoded with {@code <b>GS1 Aztec</b>} barcode specification. The codetext must contains parentheses for AI.
|
|
5818
|
+
* </p>
|
|
5819
|
+
*/
|
|
5820
|
+
GS_1_AZTEC:81,
|
|
5821
|
+
|
|
5822
|
+
|
|
5433
5823
|
/**
|
|
5434
5824
|
* Specifies that the data should be encoded with Pdf417 barcode specification
|
|
5435
5825
|
*/
|
|
@@ -5760,6 +6150,8 @@ EncodeTypes =
|
|
|
5760
6150
|
|
|
5761
6151
|
else if(encodeTypeName == "AZTEC") return 35;
|
|
5762
6152
|
|
|
6153
|
+
else if(encodeTypeName == "GS_1_AZTEC") return 81;
|
|
6154
|
+
|
|
5763
6155
|
else if(encodeTypeName == "PDF_417") return 36;
|
|
5764
6156
|
|
|
5765
6157
|
else if(encodeTypeName == "MACRO_PDF_417") return 37;
|
|
@@ -5854,6 +6246,54 @@ EncodeTypes =
|
|
|
5854
6246
|
}
|
|
5855
6247
|
}
|
|
5856
6248
|
|
|
6249
|
+
/**
|
|
6250
|
+
* <p>
|
|
6251
|
+
* <p>Extended codetext generator for Aztec barcodes for ExtendedCodetext Mode of AztecEncodeMode</p>
|
|
6252
|
+
* <p>Use TwoDDisplayText property of BarcodeGenerator to set visible text to removing managing characters.</p>
|
|
6253
|
+
* </p><p><hr><blockquote><pre>
|
|
6254
|
+
* This sample shows how to use AztecExtCodetextBuilder in Extended Mode.
|
|
6255
|
+
* <pre>
|
|
6256
|
+
* @example
|
|
6257
|
+
* //create codetext
|
|
6258
|
+
* let textBuilder = new AztecExtCodetextBuilder();
|
|
6259
|
+
* textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
|
|
6260
|
+
* textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗");
|
|
6261
|
+
* textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
|
|
6262
|
+
* textBuilder.addPlainCodetext("Plain text");
|
|
6263
|
+
* //generate codetext
|
|
6264
|
+
* let codetext = textBuilder.getExtendedCodetext();
|
|
6265
|
+
* //generate
|
|
6266
|
+
* let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
|
|
6267
|
+
* generator.getParameters().getBarcode().getCodeTextParameters().setwoDDisplayText("My Text");
|
|
6268
|
+
* generator.save("test.bmp", BarcodeImageFormat.BMP);
|
|
6269
|
+
*/
|
|
6270
|
+
class AztecExtCodetextBuilder extends ExtCodetextBuilder
|
|
6271
|
+
{
|
|
6272
|
+
static JAVA_CLASS_NAME = "com.aspose.mw.barcode.generation.MwAztecExtCodetextBuilder";
|
|
6273
|
+
|
|
6274
|
+
constructor()
|
|
6275
|
+
{
|
|
6276
|
+
let java_class_link = java.import(AztecExtCodetextBuilder.JAVA_CLASS_NAME);
|
|
6277
|
+
let javaClass = new java_class_link();
|
|
6278
|
+
super(javaClass);
|
|
6279
|
+
}
|
|
6280
|
+
|
|
6281
|
+
init()
|
|
6282
|
+
{
|
|
6283
|
+
}
|
|
6284
|
+
|
|
6285
|
+
/**
|
|
6286
|
+
* <p>
|
|
6287
|
+
* Generates Extended codetext from the extended codetext list.
|
|
6288
|
+
* </p>
|
|
6289
|
+
* @return Extended codetext as string
|
|
6290
|
+
*/
|
|
6291
|
+
getExtendedCodetext()
|
|
6292
|
+
{
|
|
6293
|
+
return this.getJavaClass().getExtendedCodetextSync();
|
|
6294
|
+
}
|
|
6295
|
+
}
|
|
6296
|
+
|
|
5857
6297
|
/**
|
|
5858
6298
|
* Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.<br>
|
|
5859
6299
|
* 05 Macro craracter is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.<br>
|
|
@@ -7654,6 +8094,81 @@ DataMatrixVersion =
|
|
|
7654
8094
|
DMRE_26x64:70
|
|
7655
8095
|
}
|
|
7656
8096
|
|
|
8097
|
+
/**
|
|
8098
|
+
* <p>
|
|
8099
|
+
* Encoding mode for Aztec barcodes.
|
|
8100
|
+
* </p><p><hr><blockquote><pre>
|
|
8101
|
+
* <pre>
|
|
8102
|
+
*
|
|
8103
|
+
* @example
|
|
8104
|
+
* //Auto mode
|
|
8105
|
+
* let codetext = "犬Right狗";
|
|
8106
|
+
* let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
|
|
8107
|
+
* generator.getParameters().getBarcode().getAztec().setECIEncoding(ECIEncodings.UTF_8);
|
|
8108
|
+
* generator.save("test.bmp");
|
|
8109
|
+
*
|
|
8110
|
+
* @example
|
|
8111
|
+
* //Bytes mode
|
|
8112
|
+
* let encodedArr = [ 0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9 ];
|
|
8113
|
+
* //encode array to string
|
|
8114
|
+
* let strBld = "";
|
|
8115
|
+
* for(let i = 0; i < encodedArr; i++)
|
|
8116
|
+
* {
|
|
8117
|
+
* byte bval = encodedArr[i]
|
|
8118
|
+
* strBld.append(String.fromCharCode(bval));
|
|
8119
|
+
* }
|
|
8120
|
+
* let codetext = strBld;
|
|
8121
|
+
* let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
|
|
8122
|
+
* generator.getParameters().getBarcode().getAztec().setAztecEncodeMode(AztecEncodeMode.BYTES);
|
|
8123
|
+
* generator.save("test.bmp", BarcodeImageFormat.PNG);
|
|
8124
|
+
*
|
|
8125
|
+
* @example
|
|
8126
|
+
* //Extended codetext mode
|
|
8127
|
+
* //create codetext
|
|
8128
|
+
* let textBuilder = new AztecExtCodetextBuilder();
|
|
8129
|
+
* textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
|
|
8130
|
+
* textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗");
|
|
8131
|
+
* textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
|
|
8132
|
+
* textBuilder.addPlainCodetext("Plain text");
|
|
8133
|
+
* //generate codetext
|
|
8134
|
+
* let codetext = textBuilder.getExtendedCodetext();
|
|
8135
|
+
* //generate
|
|
8136
|
+
* let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
|
|
8137
|
+
* generator.getParameters().getBarcode().getAztec().setAztecEncodeMode(AztecEncodeMode.EXTENDED_CODETEXT);
|
|
8138
|
+
* generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text");
|
|
8139
|
+
* generator.save("test.bmp", BarcodeImageFormat.PNG);
|
|
8140
|
+
*
|
|
8141
|
+
* </pre>
|
|
8142
|
+
* </pre></blockquote></hr></p>
|
|
8143
|
+
*/
|
|
8144
|
+
AztecEncodeMode =
|
|
8145
|
+
{
|
|
8146
|
+
/**
|
|
8147
|
+
* <p>
|
|
8148
|
+
* Encode codetext with value set in the ECIEncoding property.
|
|
8149
|
+
* </p>
|
|
8150
|
+
*/
|
|
8151
|
+
AUTO: 0,
|
|
8152
|
+
|
|
8153
|
+
/**
|
|
8154
|
+
* <p>
|
|
8155
|
+
* Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
|
|
8156
|
+
* </p>
|
|
8157
|
+
*/
|
|
8158
|
+
BYTES: 1,
|
|
8159
|
+
|
|
8160
|
+
/**
|
|
8161
|
+
* <p>
|
|
8162
|
+
* <p>Extended mode which supports multi ECI modes.</p>
|
|
8163
|
+
* <p>It is better to use AztecExtCodetextBuilder for extended codetext generation.</p>
|
|
8164
|
+
* <p>Use Display2DText property to set visible text to removing managing characters.</p>
|
|
8165
|
+
* <p>ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier</p>
|
|
8166
|
+
* <p>All unicode characters after ECI identifier are automatically encoded into correct character codeset.</p>
|
|
8167
|
+
* </p>
|
|
8168
|
+
*/
|
|
8169
|
+
EXTENDED_CODETEXT: 2
|
|
8170
|
+
}
|
|
8171
|
+
|
|
7657
8172
|
module.exports = {
|
|
7658
8173
|
BarcodeGenerator,
|
|
7659
8174
|
EncodeTypes,
|
|
@@ -7723,5 +8238,8 @@ module.exports = {
|
|
|
7723
8238
|
Code128EncodeMode,
|
|
7724
8239
|
HanXinParameters,
|
|
7725
8240
|
DataMatrixVersion,
|
|
7726
|
-
DataMatrixExtCodetextBuilder
|
|
8241
|
+
DataMatrixExtCodetextBuilder,
|
|
8242
|
+
HanXinExtCodetextBuilder,
|
|
8243
|
+
AztecEncodeMode,
|
|
8244
|
+
AztecExtCodetextBuilder
|
|
7727
8245
|
};
|
package/lib/Recognition.js
CHANGED
|
@@ -891,8 +891,8 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
|
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
/**
|
|
894
|
-
*
|
|
895
|
-
* @return
|
|
894
|
+
* <p>Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.</p>
|
|
895
|
+
* @return Reader initialization flag
|
|
896
896
|
*/
|
|
897
897
|
getMacroPdf417Terminator()
|
|
898
898
|
{
|
|
@@ -900,12 +900,23 @@ class Pdf417ExtendedParameters extends joint.BaseJavaClass
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
/**
|
|
903
|
-
*
|
|
904
|
-
*
|
|
903
|
+
* <p>
|
|
904
|
+
* Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
|
|
905
|
+
* </p>
|
|
906
|
+
*
|
|
907
|
+
* @return Reader initialization flag
|
|
905
908
|
*/
|
|
906
|
-
|
|
909
|
+
isReaderInitialization()
|
|
907
910
|
{
|
|
908
|
-
return this.getJavaClass().
|
|
911
|
+
return this.getJavaClass().isReaderInitializationSync();
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* <p>Flag that indicates that the barcode must be linked to 1D barcode.</p>Value: Linkage flag
|
|
916
|
+
*/
|
|
917
|
+
isLinked()
|
|
918
|
+
{
|
|
919
|
+
return this.getJavaClass().isLinkedSync();
|
|
909
920
|
}
|
|
910
921
|
|
|
911
922
|
/**
|
|
@@ -1639,6 +1650,8 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1639
1650
|
_maxiCodeParameters;
|
|
1640
1651
|
_dotCodeExtendedParameters;
|
|
1641
1652
|
_dataMatrixExtendedParameters;
|
|
1653
|
+
_aztecExtendedParameters;
|
|
1654
|
+
_gs1CompositeBarExtendedParameters;
|
|
1642
1655
|
|
|
1643
1656
|
constructor(javaclass)
|
|
1644
1657
|
{
|
|
@@ -1656,6 +1669,8 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1656
1669
|
this._maxiCodeParameters = new MaxiCodeExtendedParameters(this.getJavaClass().getMaxiCodeSync());
|
|
1657
1670
|
this._dotCodeExtendedParameters = new DotCodeExtendedParameters(this.getJavaClass().getDotCodeSync());
|
|
1658
1671
|
this._dataMatrixExtendedParameters = new DataMatrixExtendedParameters(this.getJavaClass().getDataMatrixSync());
|
|
1672
|
+
this._aztecExtendedParameters = new AztecExtendedParameters(this.getJavaClass().getAztecSync());
|
|
1673
|
+
this._gs1CompositeBarExtendedParameters = new GS1CompositeBarExtendedParameters(this.getJavaClass().getGS1CompositeBarSync());
|
|
1659
1674
|
}
|
|
1660
1675
|
|
|
1661
1676
|
/**
|
|
@@ -1701,6 +1716,22 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1701
1716
|
return this._dataMatrixExtendedParameters;
|
|
1702
1717
|
}
|
|
1703
1718
|
|
|
1719
|
+
/**
|
|
1720
|
+
* <p>Gets a Aztec additional information{@code AztecExtendedParameters} of recognized barcode</p>Value: A Aztec additional information{@code AztecExtendedParameters} of recognized barcode
|
|
1721
|
+
*/
|
|
1722
|
+
getAztec()
|
|
1723
|
+
{
|
|
1724
|
+
return this._aztecExtendedParameters;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* <p>Gets a GS1CompositeBar additional information{@code GS1CompositeBarExtendedParameters} of recognized barcode</p>Value: A GS1CompositeBar additional information{@code GS1CompositeBarExtendedParameters} of recognized barcode
|
|
1729
|
+
*/
|
|
1730
|
+
getGS1CompositeBar()
|
|
1731
|
+
{
|
|
1732
|
+
return this._gs1CompositeBarExtendedParameters;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1704
1735
|
/**
|
|
1705
1736
|
* Gets a special data Code128ExtendedParameters of Code128 recognized barcode Value: A special data Code128ExtendedParameters of Code128 recognized barcode
|
|
1706
1737
|
*/
|
|
@@ -2168,6 +2199,28 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2168
2199
|
}
|
|
2169
2200
|
}
|
|
2170
2201
|
|
|
2202
|
+
/**
|
|
2203
|
+
* <p>
|
|
2204
|
+
* Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type.
|
|
2205
|
+
* </p>Value:
|
|
2206
|
+
* Allows engine using additional image restorations to recognize corrupted barcodes.
|
|
2207
|
+
*/
|
|
2208
|
+
getAllowAdditionalRestorations()
|
|
2209
|
+
{
|
|
2210
|
+
return this.getJavaClass().getAllowAdditionalRestorationsSync();
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* <p>
|
|
2215
|
+
* Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type.
|
|
2216
|
+
* </p>Value:
|
|
2217
|
+
* Allows engine using additional image restorations to recognize corrupted barcodes.
|
|
2218
|
+
*/
|
|
2219
|
+
setAllowAdditionalRestorations(value)
|
|
2220
|
+
{
|
|
2221
|
+
this.getJavaClass().setAllowAdditionalRestorationsSync(value);
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2171
2224
|
/**
|
|
2172
2225
|
* Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize sligtly damaged Postal barcodes.
|
|
2173
2226
|
*/
|
|
@@ -3184,6 +3237,193 @@ class DataMatrixExtendedParameters extends joint.BaseJavaClass
|
|
|
3184
3237
|
}
|
|
3185
3238
|
}
|
|
3186
3239
|
|
|
3240
|
+
/**
|
|
3241
|
+
* <p>
|
|
3242
|
+
* Stores special data of {@code <b>GS1 Composite Bar</b>} recognized barcode
|
|
3243
|
+
* </p>
|
|
3244
|
+
*/
|
|
3245
|
+
class GS1CompositeBarExtendedParameters extends joint.BaseJavaClass
|
|
3246
|
+
{
|
|
3247
|
+
constructor(javaClass)
|
|
3248
|
+
{
|
|
3249
|
+
super(javaClass);
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
init()
|
|
3253
|
+
{
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
/**
|
|
3257
|
+
* <p>Gets the 1D (linear) barcode type of GS1 Composite</p>Value: 2D barcode type
|
|
3258
|
+
*/
|
|
3259
|
+
getOneDType()
|
|
3260
|
+
{
|
|
3261
|
+
return this.getJavaClass().getOneDTypeSync();
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
/**
|
|
3265
|
+
* <p>Gets the 1D (linear) barcode value of GS1 Composite</p>Value: 1D barcode value
|
|
3266
|
+
*/
|
|
3267
|
+
getOneDCodeText()
|
|
3268
|
+
{
|
|
3269
|
+
return this.getJavaClass().getOneDCodeTextSync();
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
/**
|
|
3273
|
+
* <p>Gets the 2D barcode type of GS1 Composite</p>Value: 2D barcode type
|
|
3274
|
+
*/
|
|
3275
|
+
getTwoDType()
|
|
3276
|
+
{
|
|
3277
|
+
return this.getJavaClass().getTwoDTypeSync();
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
/**
|
|
3281
|
+
* <p>Gets the 2D barcode value of GS1 Composite</p>Value: 2D barcode value
|
|
3282
|
+
*/
|
|
3283
|
+
getTwoDCodeText()
|
|
3284
|
+
{
|
|
3285
|
+
return this.getJavaClass().getTwoDCodeTextSync();
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* <p>
|
|
3290
|
+
* Returns a value indicating whether this instance is equal to a specified {@code GS1CompositeBarExtendedParameters} value.
|
|
3291
|
+
* </p>
|
|
3292
|
+
* @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
|
|
3293
|
+
* @param obj An System.Object value to compare to this instance.
|
|
3294
|
+
*/
|
|
3295
|
+
equals(obj)
|
|
3296
|
+
{
|
|
3297
|
+
return this.getJavaClass().equalsSync(obj.getJavaClass());
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* <p>
|
|
3302
|
+
* Returns the hash code for this instance.
|
|
3303
|
+
* </p>
|
|
3304
|
+
* @return A 32-bit signed integer hash code.
|
|
3305
|
+
*/
|
|
3306
|
+
hashCode()
|
|
3307
|
+
{
|
|
3308
|
+
return this.getJavaClass().hashCodeSync();
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
/**
|
|
3312
|
+
* <p>
|
|
3313
|
+
* Returns a human-readable string representation of this {@code GS1CompositeBarExtendedParameters}.
|
|
3314
|
+
* </p>
|
|
3315
|
+
* @return A string that represents this {@code GS1CompositeBarExtendedParameters}.
|
|
3316
|
+
*/
|
|
3317
|
+
toString()
|
|
3318
|
+
{
|
|
3319
|
+
return this.getJavaClass().toStringSync();
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
/**
|
|
3324
|
+
* <p>
|
|
3325
|
+
* Stores special data of Aztec recognized barcode
|
|
3326
|
+
* </p><p><hr><blockquote><pre>
|
|
3327
|
+
* This sample shows how to get Aztec raw values
|
|
3328
|
+
* <pre>
|
|
3329
|
+
* let generator = new BarcodeGenerator(EncodeTypes.AZTEC, "12345");
|
|
3330
|
+
* generator.save("test.png", BarcodeImageFormat::PNG);
|
|
3331
|
+
*
|
|
3332
|
+
* @example
|
|
3333
|
+
* BarCodeReader reader = new BarCodeReader("test.png", null, DecodeType.AZTEC);
|
|
3334
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3335
|
+
* {
|
|
3336
|
+
* console.log("BarCode type: " + result.getCodeTypeName());
|
|
3337
|
+
* console.log("BarCode codetext: " + result.getCodeText());
|
|
3338
|
+
* console.log("Aztec barcode ID: " + result.getExtended().getAztec().getStructuredAppendBarcodeId());
|
|
3339
|
+
* console.log("Aztec barcodes count: " + result.getExtended().getAztec().getStructuredAppendBarcodesCount());
|
|
3340
|
+
* console.log("Aztec file ID: " + result.getExtended().getAztec().getStructuredAppendFileId());
|
|
3341
|
+
* console.log("Aztec is reader initialization: " + result.getExtended().getAztec().isReaderInitialization());
|
|
3342
|
+
* });
|
|
3343
|
+
* </pre>
|
|
3344
|
+
* </pre></blockquote></hr></p>
|
|
3345
|
+
*/
|
|
3346
|
+
class AztecExtendedParameters extends joint.BaseJavaClass
|
|
3347
|
+
{
|
|
3348
|
+
constructor(javaClass)
|
|
3349
|
+
{
|
|
3350
|
+
super(javaClass);
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
init()
|
|
3354
|
+
{
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* <p>Gets the Aztec structured append mode barcodes count. Default value is 0. Count must be a value from 1 to 26.</p>Value: The barcodes count of the Aztec structured append mode.
|
|
3359
|
+
*/
|
|
3360
|
+
getStructuredAppendBarcodesCount()
|
|
3361
|
+
{
|
|
3362
|
+
return this.getJavaClass().getStructuredAppendBarcodesCountSync();
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
/**
|
|
3366
|
+
* <p>Gets the ID of the Aztec structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is 0.</p>Value: The barcode ID of the Aztec structured append mode.
|
|
3367
|
+
*/
|
|
3368
|
+
getStructuredAppendBarcodeId()
|
|
3369
|
+
{
|
|
3370
|
+
return this.getJavaClass().getStructuredAppendBarcodeIdSync();
|
|
3371
|
+
}
|
|
3372
|
+
|
|
3373
|
+
/**
|
|
3374
|
+
* <p>Gets the File ID of the Aztec structured append mode. Default value is empty string</p>Value: The File ID of the Aztec structured append mode.
|
|
3375
|
+
*/
|
|
3376
|
+
getStructuredAppendFileId()
|
|
3377
|
+
{
|
|
3378
|
+
return this.getJavaClass().getStructuredAppendFileIdSync();
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* <p>
|
|
3383
|
+
* Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.
|
|
3384
|
+
* Default value is false.
|
|
3385
|
+
* </p>
|
|
3386
|
+
*/
|
|
3387
|
+
isReaderInitialization()
|
|
3388
|
+
{
|
|
3389
|
+
return this.getJavaClass().isReaderInitializationSync();
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* <p>
|
|
3394
|
+
* Returns a value indicating whether this instance is equal to a specified {@code AztecExtendedParameters} value.
|
|
3395
|
+
* </p>
|
|
3396
|
+
* @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
|
|
3397
|
+
* @param obj An System.Object value to compare to this instance.
|
|
3398
|
+
*/
|
|
3399
|
+
equals(obj)
|
|
3400
|
+
{
|
|
3401
|
+
return this.getJavaClass().equalsSync(obj.getJavaClass());
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* <p>
|
|
3406
|
+
* Returns the hash code for this instance.
|
|
3407
|
+
* </p>
|
|
3408
|
+
* @return 32-bit signed integer hash code.
|
|
3409
|
+
*/
|
|
3410
|
+
hashCode()
|
|
3411
|
+
{
|
|
3412
|
+
return this.getJavaClass().hashCodeSync();
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
/**
|
|
3416
|
+
* <p>
|
|
3417
|
+
* Returns a human-readable string representation of this {@code AztecExtendedParameters}.
|
|
3418
|
+
* </p>
|
|
3419
|
+
* @return A string that represents this {@code AztecExtendedParameters}.
|
|
3420
|
+
*/
|
|
3421
|
+
toString()
|
|
3422
|
+
{
|
|
3423
|
+
return this.getJavaClass().toStringSync();
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3187
3427
|
/**
|
|
3188
3428
|
* Specify the type of barcode to read.
|
|
3189
3429
|
*
|
|
@@ -3375,6 +3615,13 @@ DecodeType =
|
|
|
3375
3615
|
*/
|
|
3376
3616
|
AZTEC: 33,
|
|
3377
3617
|
|
|
3618
|
+
/**
|
|
3619
|
+
* <p>
|
|
3620
|
+
* Specifies that the data should be decoded with {@code <b>GS1 Aztec</b>} barcode specification
|
|
3621
|
+
* </p>
|
|
3622
|
+
*/
|
|
3623
|
+
GS_1_AZTEC: 81,
|
|
3624
|
+
|
|
3378
3625
|
/**
|
|
3379
3626
|
* Specifies that the data should be decoded with {@code <b>Pdf417</b>} barcode symbology
|
|
3380
3627
|
*/
|
|
@@ -3626,6 +3873,13 @@ DecodeType =
|
|
|
3626
3873
|
*/
|
|
3627
3874
|
GS_1_HAN_XIN: 79,
|
|
3628
3875
|
|
|
3876
|
+
/**
|
|
3877
|
+
* <p>
|
|
3878
|
+
* Specifies that the data should be decoded with {@code <b>GS1 Composite Bar</b>} barcode specification
|
|
3879
|
+
* </p>
|
|
3880
|
+
*/
|
|
3881
|
+
GS_1_COMPOSITE_BAR: 80,
|
|
3882
|
+
|
|
3629
3883
|
/**
|
|
3630
3884
|
* Specifies that data will be checked with all of 1D barcode symbologies
|
|
3631
3885
|
*/
|
|
@@ -3884,5 +4138,6 @@ module.exports = {
|
|
|
3884
4138
|
CustomerInformationInterpretingType,
|
|
3885
4139
|
RecognitionAbortedException,
|
|
3886
4140
|
DotCodeExtendedParameters,
|
|
3887
|
-
DataMatrixExtendedParameters
|
|
4141
|
+
DataMatrixExtendedParameters,
|
|
4142
|
+
GS1CompositeBarExtendedParameters
|
|
3888
4143
|
};
|
|
Binary file
|