aspose.barcode 21.9.5 → 21.12.5
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/lib/AsposeBarcode.js
CHANGED
package/lib/ComplexBarcode.js
CHANGED
|
@@ -400,6 +400,7 @@ class Address extends joint.BaseJavaClass {
|
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
402
|
* Address type
|
|
403
|
+
* @enum
|
|
403
404
|
*/
|
|
404
405
|
AddressType =
|
|
405
406
|
{
|
|
@@ -519,10 +520,30 @@ class ComplexCodetextReader {
|
|
|
519
520
|
let javaJsComplexCodetextReader = java.import(ComplexCodetextReader.javaClassName);
|
|
520
521
|
return Mailmark2DCodetext.construct(javaJsComplexCodetextReader.tryDecodeMailmark2DSync(encodedCodetext));
|
|
521
522
|
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Decodes Mailmark Barcode C and L codetext.
|
|
526
|
+
* @param encodedCodetext encoded codetext
|
|
527
|
+
* @return Decoded Mailmark Barcode C and L or null.
|
|
528
|
+
*/
|
|
529
|
+
static tryDecodeMailmark(encodedCodetext)
|
|
530
|
+
{
|
|
531
|
+
let res = new MailmarkCodetext(null);
|
|
532
|
+
try
|
|
533
|
+
{
|
|
534
|
+
res.initFromString(encodedCodetext);
|
|
535
|
+
}
|
|
536
|
+
catch (e)
|
|
537
|
+
{
|
|
538
|
+
return null;
|
|
539
|
+
}
|
|
540
|
+
return res;
|
|
541
|
+
}
|
|
522
542
|
}
|
|
523
543
|
|
|
524
544
|
/**
|
|
525
545
|
* SwissQR bill standard version
|
|
546
|
+
* @enum
|
|
526
547
|
*/
|
|
527
548
|
QrBillStandardVersion =
|
|
528
549
|
{
|
|
@@ -531,7 +552,7 @@ QrBillStandardVersion =
|
|
|
531
552
|
* Version 2.0
|
|
532
553
|
*
|
|
533
554
|
*/
|
|
534
|
-
V2_0:
|
|
555
|
+
V2_0: 0
|
|
535
556
|
};
|
|
536
557
|
|
|
537
558
|
/**
|
|
@@ -883,6 +904,163 @@ class SwissQRCodetext extends IComplexCodetext {
|
|
|
883
904
|
}
|
|
884
905
|
}
|
|
885
906
|
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Class for encoding and decoding the text embedded in the 4-state Royal Mailmark code.
|
|
910
|
+
*/
|
|
911
|
+
class MailmarkCodetext extends IComplexCodetext
|
|
912
|
+
{
|
|
913
|
+
static javaClassName = "com.aspose.mw.barcode.complexbarcode.MwMailmarkCodetext";
|
|
914
|
+
/**
|
|
915
|
+
* "0" – Null or Test
|
|
916
|
+
* "1" – Letter
|
|
917
|
+
* "2" – Large Letter
|
|
918
|
+
*/
|
|
919
|
+
getFormat()
|
|
920
|
+
{ return this.getJavaClass().getFormatSync(); }
|
|
921
|
+
/**
|
|
922
|
+
* "0" – Null or Test
|
|
923
|
+
* "1" – LetterN
|
|
924
|
+
* "2" – Large Letter
|
|
925
|
+
*/
|
|
926
|
+
setFormat(value)
|
|
927
|
+
{ this.getJavaClass().setFormatSync(value); }
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
|
|
931
|
+
*/
|
|
932
|
+
getVersionID()
|
|
933
|
+
{ return this.getJavaClass().getVersionIDSync(); }
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
|
|
937
|
+
*/
|
|
938
|
+
setVersionID(value)
|
|
939
|
+
{ this.getJavaClass().setVersionIDSync(value); }
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* "0" - Null or Test
|
|
943
|
+
* "1" - 1C (Retail)
|
|
944
|
+
* "2" - 2C (Retail)
|
|
945
|
+
* "3" - 3C (Retail)
|
|
946
|
+
* "4" - Premium (RetailPublishing Mail) (for potential future use)
|
|
947
|
+
* "5" - Deferred (Retail)
|
|
948
|
+
* "6" - Air (Retail) (for potential future use)
|
|
949
|
+
* "7" - Surface (Retail) (for potential future use)
|
|
950
|
+
* "8" - Premium (Network Access)
|
|
951
|
+
* "9" - Standard (Network Access)
|
|
952
|
+
*/
|
|
953
|
+
getClass_()
|
|
954
|
+
{ return this.getJavaClass().getClass_Sync(); }
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* "0" - Null or Test
|
|
958
|
+
* "1" - 1C (Retail)
|
|
959
|
+
* "2" - 2C (Retail)
|
|
960
|
+
* "3" - 3C (Retail)
|
|
961
|
+
* "4" - Premium (RetailPublishing Mail) (for potential future use)
|
|
962
|
+
* "5" - Deferred (Retail)
|
|
963
|
+
* "6" - Air (Retail) (for potential future use)
|
|
964
|
+
* "7" - Surface (Retail) (for potential future use)
|
|
965
|
+
* "8" - Premium (Network Access)
|
|
966
|
+
* "9" - Standard (Network Access)
|
|
967
|
+
*/
|
|
968
|
+
setClass(value)
|
|
969
|
+
{ this.getJavaClass().setClassSync(value); }
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Maximum values are 99 for Barcode C and 999999 for Barcode L.
|
|
973
|
+
*/
|
|
974
|
+
getSupplychainID()
|
|
975
|
+
{ return this.getJavaClass().getSupplychainIDSync(); }
|
|
976
|
+
/**
|
|
977
|
+
* Maximum values are 99 for Barcode C and 999999 for Barcode L.
|
|
978
|
+
*/
|
|
979
|
+
setSupplychainID(value)
|
|
980
|
+
{ this.getJavaClass().setSupplychainIDSync(value); }
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Maximum value is 99999999.
|
|
984
|
+
*/
|
|
985
|
+
getItemID()
|
|
986
|
+
{ return this.getJavaClass().getItemIDSync(); }
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Maximum value is 99999999.
|
|
990
|
+
*/
|
|
991
|
+
setItemID(value)
|
|
992
|
+
{ this.getJavaClass().setItemIDSync(value); }
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* The PC and DP must comply with a PAF format.
|
|
996
|
+
* Nine character string denoting international "XY11 " (note the 5 trailing spaces) or a pattern
|
|
997
|
+
* of characters denoting a domestic sorting code.
|
|
998
|
+
* A domestic sorting code consists of an outward postcode, an inward postcode, and a Delivery Point Suffix.
|
|
999
|
+
*/
|
|
1000
|
+
getDestinationPostCodePlusDPS()
|
|
1001
|
+
{ return this.getJavaClass().getDestinationPostCodePlusDPSSync(); }
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* The PC and DP must comply with a PAF format.
|
|
1005
|
+
* Nine character string denoting international "XY11 " (note the 5 trailing spaces) or a pattern
|
|
1006
|
+
* of characters denoting a domestic sorting code.
|
|
1007
|
+
* A domestic sorting code consists of an outward postcode, an inward postcode, and a Delivery Point Suffix.
|
|
1008
|
+
*/
|
|
1009
|
+
setDestinationPostCodePlusDPS(value)
|
|
1010
|
+
{ this.getJavaClass().setDestinationPostCodePlusDPSSync(value); }
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Initializes a new instance of the {@code MailmarkCodetext} class.
|
|
1014
|
+
*/
|
|
1015
|
+
constructor(mailmarkCodetext)
|
|
1016
|
+
{
|
|
1017
|
+
let java_class_link = java.import(MailmarkCodetext.javaClassName);
|
|
1018
|
+
let javaClass = null;
|
|
1019
|
+
if (mailmarkCodetext == null)
|
|
1020
|
+
{
|
|
1021
|
+
javaClass = new java_class_link();
|
|
1022
|
+
}
|
|
1023
|
+
else
|
|
1024
|
+
{
|
|
1025
|
+
javaClass = new java_class_link(mailmarkCodetext.getJavaClass());
|
|
1026
|
+
}
|
|
1027
|
+
super(javaClass);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
init()
|
|
1031
|
+
{}
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Construct codetext from Mailmark data.
|
|
1035
|
+
*
|
|
1036
|
+
* @return Constructed codetext
|
|
1037
|
+
*/
|
|
1038
|
+
getConstructedCodetext()
|
|
1039
|
+
{
|
|
1040
|
+
return this.getJavaClass().getConstructedCodetextSync();
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Initializes Mailmark data from constructed codetext.
|
|
1045
|
+
*
|
|
1046
|
+
* @param constructedCodetext Constructed codetext.
|
|
1047
|
+
*/
|
|
1048
|
+
initFromString(constructedCodetext)
|
|
1049
|
+
{
|
|
1050
|
+
this.getJavaClass().initFromStringSync(constructedCodetext);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Gets barcode type.
|
|
1055
|
+
*
|
|
1056
|
+
* @return Barcode type.
|
|
1057
|
+
*/
|
|
1058
|
+
getBarcodeType()
|
|
1059
|
+
{
|
|
1060
|
+
return this.getJavaClass().getBarcodeTypeSync();
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
886
1064
|
class Mailmark2DCodetext extends IComplexCodetext
|
|
887
1065
|
{
|
|
888
1066
|
|
|
@@ -1277,5 +1455,7 @@ module.exports = {
|
|
|
1277
1455
|
AddressType,
|
|
1278
1456
|
SwissQRBill,
|
|
1279
1457
|
Mailmark2DCodetext,
|
|
1280
|
-
|
|
1458
|
+
MailmarkCodetext,
|
|
1459
|
+
Mailmark2DType,
|
|
1460
|
+
QrBillStandardVersion
|
|
1281
1461
|
};
|
package/lib/Generation.js
CHANGED
|
@@ -242,9 +242,11 @@ class BarcodeParameters extends joint.BaseJavaClass
|
|
|
242
242
|
getBarColor()
|
|
243
243
|
{
|
|
244
244
|
let intColor = this.getJavaClass().getBarColorSync();
|
|
245
|
-
let hexColor = ((intColor)>>>0).toString(16).slice(-6).toUpperCase()
|
|
245
|
+
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
246
246
|
while (hexColor.length < 6)
|
|
247
|
+
{
|
|
247
248
|
hexColor = "0" + hexColor;
|
|
249
|
+
}
|
|
248
250
|
hexColor = "#" + hexColor;
|
|
249
251
|
return hexColor;
|
|
250
252
|
}
|
|
@@ -574,9 +576,11 @@ class BaseGenerationParameters extends joint.BaseJavaClass
|
|
|
574
576
|
getBackColor()
|
|
575
577
|
{
|
|
576
578
|
let intColor = this.getJavaClass().getBackColorSync();
|
|
577
|
-
let hexColor = ((intColor)>>>0).toString(16).slice(-6).toUpperCase()
|
|
579
|
+
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
578
580
|
while (hexColor.length < 6)
|
|
581
|
+
{
|
|
579
582
|
hexColor = "0" + hexColor;
|
|
583
|
+
}
|
|
580
584
|
hexColor = "#" + hexColor;
|
|
581
585
|
return hexColor;
|
|
582
586
|
}
|
|
@@ -850,9 +854,11 @@ class BorderParameters extends joint.BaseJavaClass
|
|
|
850
854
|
getColor()
|
|
851
855
|
{
|
|
852
856
|
let intColor = this.getJavaClass().getColorSync();
|
|
853
|
-
let hexColor = ((intColor)>>>0).toString(16).slice(-6).toUpperCase()
|
|
857
|
+
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
854
858
|
while (hexColor.length < 6)
|
|
859
|
+
{
|
|
855
860
|
hexColor = "0" + hexColor;
|
|
861
|
+
}
|
|
856
862
|
hexColor = "#" + hexColor;
|
|
857
863
|
return hexColor;
|
|
858
864
|
}
|
|
@@ -902,7 +908,7 @@ ChecksumValidation =
|
|
|
902
908
|
/**
|
|
903
909
|
* If checksum is required by the specification - it will be validated.
|
|
904
910
|
*/
|
|
905
|
-
|
|
911
|
+
DEFAULT: 0,
|
|
906
912
|
|
|
907
913
|
/**
|
|
908
914
|
* Always validate checksum if possible.
|
|
@@ -988,9 +994,11 @@ class CaptionParameters extends joint.BaseJavaClass
|
|
|
988
994
|
getTextColor()
|
|
989
995
|
{
|
|
990
996
|
let intColor = this.getJavaClass().getTextColorSync();
|
|
991
|
-
let hexColor = ((intColor)>>>0).toString(16).slice(-6).toUpperCase()
|
|
997
|
+
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
992
998
|
while (hexColor.length < 6)
|
|
999
|
+
{
|
|
993
1000
|
hexColor = "0" + hexColor;
|
|
1001
|
+
}
|
|
994
1002
|
hexColor = "#" + hexColor;
|
|
995
1003
|
return hexColor;
|
|
996
1004
|
}
|
|
@@ -1422,9 +1430,11 @@ class CodetextParameters extends joint.BaseJavaClass
|
|
|
1422
1430
|
getColor()
|
|
1423
1431
|
{
|
|
1424
1432
|
let intColor = this.getJavaClass().getColorSync();
|
|
1425
|
-
let hexColor = ((intColor)>>>0).toString(16).slice(-6).toUpperCase()
|
|
1433
|
+
let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
|
|
1426
1434
|
while (hexColor.length < 6)
|
|
1435
|
+
{
|
|
1427
1436
|
hexColor = "0" + hexColor;
|
|
1437
|
+
}
|
|
1428
1438
|
hexColor = "#" + hexColor;
|
|
1429
1439
|
return hexColor;
|
|
1430
1440
|
}
|
|
@@ -1460,7 +1470,7 @@ class CodetextParameters extends joint.BaseJavaClass
|
|
|
1460
1470
|
* Specify word wraps (line breaks) within text.<br>
|
|
1461
1471
|
* Default value: false.
|
|
1462
1472
|
*/
|
|
1463
|
-
|
|
1473
|
+
getNoWrap()
|
|
1464
1474
|
{
|
|
1465
1475
|
return this.getJavaClass().getNoWrapSync();
|
|
1466
1476
|
}
|
|
@@ -2589,7 +2599,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2589
2599
|
{
|
|
2590
2600
|
this.getJavaClass().setPdf417MacroTimeStampSync((value.getTime() / 1000).toString());
|
|
2591
2601
|
}
|
|
2592
|
-
|
|
2602
|
+
|
|
2593
2603
|
/**
|
|
2594
2604
|
* Gets macro Pdf417 barcode sender name.
|
|
2595
2605
|
*/
|
|
@@ -2597,7 +2607,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2597
2607
|
{
|
|
2598
2608
|
return this.getJavaClass().getPdf417MacroSenderSync();
|
|
2599
2609
|
}
|
|
2600
|
-
|
|
2610
|
+
|
|
2601
2611
|
/**
|
|
2602
2612
|
* Sets macro Pdf417 barcode sender name.
|
|
2603
2613
|
*/
|
|
@@ -2605,7 +2615,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2605
2615
|
{
|
|
2606
2616
|
this.getJavaClass().setPdf417MacroSenderSync(value);
|
|
2607
2617
|
}
|
|
2608
|
-
|
|
2618
|
+
|
|
2609
2619
|
/**
|
|
2610
2620
|
* Gets macro Pdf417 barcode addressee name.
|
|
2611
2621
|
*/
|
|
@@ -2613,7 +2623,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2613
2623
|
{
|
|
2614
2624
|
return this.getJavaClass().getPdf417MacroAddresseeSync();
|
|
2615
2625
|
}
|
|
2616
|
-
|
|
2626
|
+
|
|
2617
2627
|
/**
|
|
2618
2628
|
* Sets macro Pdf417 barcode addressee name.
|
|
2619
2629
|
*/
|
|
@@ -2621,7 +2631,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2621
2631
|
{
|
|
2622
2632
|
this.getJavaClass().setPdf417MacroAddresseeSync(value);
|
|
2623
2633
|
}
|
|
2624
|
-
|
|
2634
|
+
|
|
2625
2635
|
/**
|
|
2626
2636
|
* Gets or sets macro Pdf417 file size.<br>
|
|
2627
2637
|
* @return The file size field contains the size in bytes of the entire source file.
|
|
@@ -2630,7 +2640,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2630
2640
|
{
|
|
2631
2641
|
return this.getJavaClass().getPdf417MacroFileSizeSync();
|
|
2632
2642
|
}
|
|
2633
|
-
|
|
2643
|
+
|
|
2634
2644
|
/**
|
|
2635
2645
|
* Gets or sets macro Pdf417 file size.<br>
|
|
2636
2646
|
* @param value The file size field contains the size in bytes of the entire source file.
|
|
@@ -2639,7 +2649,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2639
2649
|
{
|
|
2640
2650
|
this.getJavaClass().setPdf417MacroFileSizeSync(value);
|
|
2641
2651
|
}
|
|
2642
|
-
|
|
2652
|
+
|
|
2643
2653
|
/**
|
|
2644
2654
|
* Gets macro Pdf417 barcode checksum.<br>
|
|
2645
2655
|
* @return The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial.
|
|
@@ -2648,7 +2658,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
|
|
|
2648
2658
|
{
|
|
2649
2659
|
return this.getJavaClass().getPdf417MacroChecksumSync();
|
|
2650
2660
|
}
|
|
2651
|
-
|
|
2661
|
+
|
|
2652
2662
|
/**
|
|
2653
2663
|
* Sets macro Pdf417 barcode checksum.<br>
|
|
2654
2664
|
* @param value The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial.
|
|
@@ -3198,19 +3208,6 @@ class ExtCodetextBuilder extends joint.BaseJavaClass
|
|
|
3198
3208
|
this.init();
|
|
3199
3209
|
}
|
|
3200
3210
|
|
|
3201
|
-
/**
|
|
3202
|
-
* <p>
|
|
3203
|
-
* Checks necessity to shield previous item by "\000000"
|
|
3204
|
-
* </p>
|
|
3205
|
-
*
|
|
3206
|
-
* @param Index Index in m_List
|
|
3207
|
-
* @return Necessity to shield
|
|
3208
|
-
*/
|
|
3209
|
-
isNeedToShieldItemFromPrevECI(Index)
|
|
3210
|
-
{
|
|
3211
|
-
return this.getJavaClass().isNeedToShieldItemFromPrevECISync(Index);
|
|
3212
|
-
}
|
|
3213
|
-
|
|
3214
3211
|
/**
|
|
3215
3212
|
* <p>
|
|
3216
3213
|
* Clears extended codetext items
|
|
@@ -3293,8 +3290,8 @@ class ExtCodetextBuilder extends joint.BaseJavaClass
|
|
|
3293
3290
|
* lTextBuilder.addPlainCodetext("t\\e\\\\st");
|
|
3294
3291
|
* //generate codetext
|
|
3295
3292
|
* String lCodetext = lTextBuilder.getExtendedCodetext();
|
|
3296
|
-
*
|
|
3297
|
-
*
|
|
3293
|
+
*
|
|
3294
|
+
*
|
|
3298
3295
|
*/
|
|
3299
3296
|
class QrExtCodetextBuilder extends ExtCodetextBuilder
|
|
3300
3297
|
{
|
|
@@ -3463,9 +3460,9 @@ BarcodeClassifications =
|
|
|
3463
3460
|
};
|
|
3464
3461
|
|
|
3465
3462
|
/**
|
|
3466
|
-
* FontStyle classification
|
|
3467
|
-
* @enum
|
|
3468
|
-
*/
|
|
3463
|
+
* FontStyle classification
|
|
3464
|
+
* @enum
|
|
3465
|
+
*/
|
|
3469
3466
|
FontStyle =
|
|
3470
3467
|
{
|
|
3471
3468
|
BOLD: 1,
|
|
@@ -3477,6 +3474,7 @@ FontStyle =
|
|
|
3477
3474
|
|
|
3478
3475
|
/**
|
|
3479
3476
|
* Specifies the start or stop symbol of the Codabar barcode specification.
|
|
3477
|
+
* @enum
|
|
3480
3478
|
*/
|
|
3481
3479
|
CodabarSymbol =
|
|
3482
3480
|
{
|
|
@@ -4305,6 +4303,10 @@ GraphicsUnit =
|
|
|
4305
4303
|
MILLIMETER: 6,
|
|
4306
4304
|
};
|
|
4307
4305
|
|
|
4306
|
+
/**
|
|
4307
|
+
* Specifies the type of barcode to encode.
|
|
4308
|
+
* @enum
|
|
4309
|
+
*/
|
|
4308
4310
|
EncodeTypes =
|
|
4309
4311
|
{
|
|
4310
4312
|
|
|
@@ -4554,6 +4556,11 @@ EncodeTypes =
|
|
|
4554
4556
|
*/
|
|
4555
4557
|
RM_4_SCC: 42,
|
|
4556
4558
|
|
|
4559
|
+
/**
|
|
4560
|
+
* Represents Royal Mail Mailmark barcode.
|
|
4561
|
+
*/
|
|
4562
|
+
MAILMARK: 71,
|
|
4563
|
+
|
|
4557
4564
|
/**
|
|
4558
4565
|
* Specifies that the data should be encoded with GS1 Databar omni-directional barcode specification.
|
|
4559
4566
|
*/
|
|
@@ -4656,35 +4663,35 @@ EncodeTypes =
|
|
|
4656
4663
|
*@enum
|
|
4657
4664
|
*/
|
|
4658
4665
|
MacroCharacter =
|
|
4659
|
-
{
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4666
|
+
{
|
|
4667
|
+
/**
|
|
4668
|
+
* None of Macro Characters are added to barcode data
|
|
4669
|
+
*/
|
|
4670
|
+
NONE: 0,
|
|
4664
4671
|
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4672
|
+
/**
|
|
4673
|
+
* 05 Macro craracter is added to barcode data in first position.
|
|
4674
|
+
* GS1 Data Identifier ISO 15434
|
|
4675
|
+
* Character is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
|
|
4676
|
+
*
|
|
4677
|
+
* //to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
|
|
4678
|
+
* let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, "10123ABC\u001D10123ABC");
|
|
4679
|
+
* generator.getParameters().getBarcode().getDataMatrix().setMacroCharacters(MacroCharacter.MACRO_05);
|
|
4680
|
+
* let reader = new BarCodeReader(generator.generateBarCodeImage(), DecodeType.GS_1_DATA_MATRIX);
|
|
4681
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
4682
|
+
* {
|
|
4683
|
+
* cosole.log("BarCode CodeText: " + result.getCodeText());
|
|
4684
|
+
* });
|
|
4685
|
+
*/
|
|
4686
|
+
MACRO_05: 5,
|
|
4680
4687
|
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
};
|
|
4688
|
+
/**
|
|
4689
|
+
* 06 Macro craracter is added to barcode data in first position.
|
|
4690
|
+
* ASC MH10 Data Identifier ISO 15434
|
|
4691
|
+
* Character is translated to "[)>\u001E06\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
|
|
4692
|
+
*/
|
|
4693
|
+
MACRO_06: 6
|
|
4694
|
+
};
|
|
4688
4695
|
|
|
4689
4696
|
/**
|
|
4690
4697
|
* PatchCode format. Choose PatchOnly to generate single PatchCode. Use page format to generate Patch page with PatchCodes as borders
|
|
@@ -4731,7 +4738,7 @@ PatchFormat =
|
|
|
4731
4738
|
* generator.getParameters().getBarcode().getQR().setQrECIEncoding(ECIEncodings.UTF_8);
|
|
4732
4739
|
* generator.save("test.png", BarCodeImageFormat.PNG);
|
|
4733
4740
|
*
|
|
4734
|
-
*
|
|
4741
|
+
* @enum
|
|
4735
4742
|
*/
|
|
4736
4743
|
ECIEncodings =
|
|
4737
4744
|
{
|
|
@@ -4887,27 +4894,27 @@ EnableChecksum =
|
|
|
4887
4894
|
* @enum
|
|
4888
4895
|
*/
|
|
4889
4896
|
Code128Emulation =
|
|
4890
|
-
{
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4897
|
+
{
|
|
4898
|
+
/**
|
|
4899
|
+
* No Code 128 emulation
|
|
4900
|
+
*/
|
|
4901
|
+
NONE: 0,
|
|
4895
4902
|
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4903
|
+
/**
|
|
4904
|
+
* UCC/EAN-128 emulation. Text compactionmode implied.
|
|
4905
|
+
*/
|
|
4906
|
+
CODE_903: 903,
|
|
4900
4907
|
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4908
|
+
/**
|
|
4909
|
+
* UCC/EAN-128 emulation. Numeric compactionmode implied.
|
|
4910
|
+
*/
|
|
4911
|
+
CODE_904: 904,
|
|
4905
4912
|
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
}
|
|
4913
|
+
/**
|
|
4914
|
+
* UCC/EAN-128 emulation. Implied “01” AI and 14-digit codetext.
|
|
4915
|
+
*/
|
|
4916
|
+
CODE_905: 905
|
|
4917
|
+
}
|
|
4911
4918
|
|
|
4912
4919
|
/**
|
|
4913
4920
|
* Specifies the file format of the image.
|
|
@@ -4941,7 +4948,13 @@ BarCodeImageFormat =
|
|
|
4941
4948
|
* Specifies the Graphics Interchange Format (GIF) image format.
|
|
4942
4949
|
* </p>
|
|
4943
4950
|
*/
|
|
4944
|
-
PNG: 3
|
|
4951
|
+
PNG: 3,
|
|
4952
|
+
|
|
4953
|
+
/**
|
|
4954
|
+
* Specifies the Enhanced Metafile (EMF) image format.
|
|
4955
|
+
* (Supported only on Windows platform, on *nix platforms is saved as PNG)
|
|
4956
|
+
*/
|
|
4957
|
+
EMF: 6
|
|
4945
4958
|
};
|
|
4946
4959
|
|
|
4947
4960
|
module.exports = {
|
package/lib/Recognition.js
CHANGED
|
@@ -2362,6 +2362,24 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2362
2362
|
this.getJavaClass().setAllowMicroWhiteSpotsRemovingSync(value);
|
|
2363
2363
|
}
|
|
2364
2364
|
|
|
2365
|
+
/**
|
|
2366
|
+
* Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms.
|
|
2367
|
+
* @return Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
2368
|
+
*/
|
|
2369
|
+
getFastScanOnly()
|
|
2370
|
+
{
|
|
2371
|
+
return this.getJavaClass().getFastScanOnlySync();
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms.
|
|
2376
|
+
* @param value Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
2377
|
+
*/
|
|
2378
|
+
setFastScanOnly(value)
|
|
2379
|
+
{
|
|
2380
|
+
this.getJavaClass().setFastScanOnlySync(value);
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2365
2383
|
/**
|
|
2366
2384
|
* Allows engine to recognize barcodes with salt and paper noise type. Mode can remove small noise with white and black dots.
|
|
2367
2385
|
* Value:
|
|
@@ -3222,6 +3240,10 @@ DecodeType =
|
|
|
3222
3240
|
* Specifies that the data should be decoded with {@code <b>CodablockF</b>} barcode specification
|
|
3223
3241
|
*/
|
|
3224
3242
|
CODABLOCK_F: 65,
|
|
3243
|
+
/**
|
|
3244
|
+
* Specifies that the data should be decoded with <b>Royal Mail Mailmark</b> barcode specification.
|
|
3245
|
+
*/
|
|
3246
|
+
MAILMARK: 66,
|
|
3225
3247
|
|
|
3226
3248
|
/**
|
|
3227
3249
|
* Specifies that the data should be decoded with {@code <b>Australia Post</b>} barcode specification
|
|
@@ -3366,7 +3388,7 @@ DecodeType =
|
|
|
3366
3388
|
/**
|
|
3367
3389
|
* Specifies that data will be checked with all available symbologies
|
|
3368
3390
|
*/
|
|
3369
|
-
ALL_SUPPORTED_TYPES:
|
|
3391
|
+
ALL_SUPPORTED_TYPES: 71,
|
|
3370
3392
|
|
|
3371
3393
|
/**
|
|
3372
3394
|
* Specifies that data will be checked with all of 1D barcode symbologies
|
|
Binary file
|