aspose.barcode 23.12.0 → 24.2.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/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-
|
|
7
|
+
const jar_name_ = "/aspose-barcode-nodejs-24.2.jar";
|
|
8
8
|
const jar_path_ = __dirname + jar_name_;
|
|
9
9
|
const fs = require("fs");
|
|
10
10
|
|
package/lib/ComplexBarcode.js
CHANGED
|
@@ -2588,11 +2588,35 @@ class HIBCLICPrimaryDataCodetext extends HIBCLICComplexCodetext
|
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
|
|
2591
|
-
|
|
2592
2591
|
/**
|
|
2593
|
-
* <p>
|
|
2594
2592
|
* Class for encoding and decoding the text embedded in the HIBC LIC code which stores seconday data.
|
|
2595
|
-
*
|
|
2593
|
+
* @example
|
|
2594
|
+
* This sample shows how to encode and decode HIBC LIC using HIBCLICSecondaryAndAdditionalDataCodetext.
|
|
2595
|
+
*
|
|
2596
|
+
* @code
|
|
2597
|
+
* let complexCodetext = new HIBCLICSecondaryAndAdditionalDataCodetext();
|
|
2598
|
+
* complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC);
|
|
2599
|
+
* complexCodetext.setLinkCharacter('L');
|
|
2600
|
+
* complexCodetext.setData(new SecondaryAndAdditionalData());
|
|
2601
|
+
* complexCodetext.getData().setExpiryDate(new Date());
|
|
2602
|
+
* complexCodetext.getData().setExpiryDateFormat(HIBCLICDateFormat.MMDDYY);
|
|
2603
|
+
* complexCodetext.getData().setQuantity(30);
|
|
2604
|
+
* complexCodetext.getData().setLotNumber("LOT123");
|
|
2605
|
+
* complexCodetext.getData().setSerialNumber("SERIAL123");
|
|
2606
|
+
* complexCodetext.getData().setDateOfManufacture(new Date());
|
|
2607
|
+
* let generator = new ComplexBarcodeGenerator(complexCodetext);
|
|
2608
|
+
* let image = generator.generateBarCodeImage(BarcodeImageFormat.PNG);
|
|
2609
|
+
* let reader = new BarCodeReader(image, null, DecodeType.HIBCQRLIC);
|
|
2610
|
+
* reader.readBarCodes();
|
|
2611
|
+
* codetext = reader.getFoundBarCodes()[0].getCodeText();
|
|
2612
|
+
* result = ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
|
|
2613
|
+
* print("Expiry date: " + result.getData().getExpiryDate());
|
|
2614
|
+
* print("Quantity: " + result.getData().getQuantity());
|
|
2615
|
+
* print("Lot number: " + result.getData().getLotNumber());
|
|
2616
|
+
* print("Serial number: " + result.getData().getSerialNumber());
|
|
2617
|
+
* print("Date of manufacture: " + result.getData().getDateOfManufacture());
|
|
2618
|
+
* </code>
|
|
2619
|
+
* </example>
|
|
2596
2620
|
*/
|
|
2597
2621
|
class HIBCLICSecondaryAndAdditionalDataCodetext extends HIBCLICComplexCodetext
|
|
2598
2622
|
{
|
package/lib/Generation.js
CHANGED
|
@@ -2770,6 +2770,48 @@ class QrParameters extends joint.BaseJavaClass
|
|
|
2770
2770
|
this.getJavaClass().setQrVersionSync(value);
|
|
2771
2771
|
}
|
|
2772
2772
|
|
|
2773
|
+
/**
|
|
2774
|
+
* <p>
|
|
2775
|
+
* Version of MicroQR Code. From version M1 to version M4.
|
|
2776
|
+
* Default value is MicroQRVersion.Auto.
|
|
2777
|
+
* </p>
|
|
2778
|
+
*/
|
|
2779
|
+
getMicroQRVersion()
|
|
2780
|
+
{
|
|
2781
|
+
return this.getJavaClass().getMicroQRVersionSync();
|
|
2782
|
+
}
|
|
2783
|
+
/**
|
|
2784
|
+
* <p>
|
|
2785
|
+
* Version of MicroQR Code. From version M1 to version M4.
|
|
2786
|
+
* Default value is MicroQRVersion.Auto.
|
|
2787
|
+
* </p>
|
|
2788
|
+
*/
|
|
2789
|
+
setMicroQRVersion(value)
|
|
2790
|
+
{
|
|
2791
|
+
this.getJavaClass().setMicroQRVersionSync(value);
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
/**
|
|
2795
|
+
* <p>
|
|
2796
|
+
* Version of RectMicroQR Code. From version R7x59 to version R17x139.
|
|
2797
|
+
* Default value is RectMicroQRVersion.Auto.
|
|
2798
|
+
* </p>
|
|
2799
|
+
*/
|
|
2800
|
+
getRectMicroQrVersion()
|
|
2801
|
+
{
|
|
2802
|
+
return this.getJavaClass().getRectMicroQrVersionSync();
|
|
2803
|
+
}
|
|
2804
|
+
/**
|
|
2805
|
+
* <p>
|
|
2806
|
+
* Version of RectMicroQR Code. From version R7x59 to version R17x139.
|
|
2807
|
+
* Default value is RectMicroQRVersion.Auto.
|
|
2808
|
+
* </p>
|
|
2809
|
+
*/
|
|
2810
|
+
setRectMicroQrVersion(value)
|
|
2811
|
+
{
|
|
2812
|
+
this.getJavaClass().setRectMicroQrVersionSync(value);
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2773
2815
|
/**
|
|
2774
2816
|
* Height/Width ratio of 2D BarCode module.
|
|
2775
2817
|
*/
|
|
@@ -6466,6 +6508,16 @@ EncodeTypes =
|
|
|
6466
6508
|
*/
|
|
6467
6509
|
GS_1_HAN_XIN: 80,
|
|
6468
6510
|
|
|
6511
|
+
/**
|
|
6512
|
+
* Specifies that the data should be encoded with <b>MicroQR Code</b> barcode specification
|
|
6513
|
+
*/
|
|
6514
|
+
MICRO_QR: 83,
|
|
6515
|
+
|
|
6516
|
+
/**
|
|
6517
|
+
* Specifies that the data should be encoded with <b>RectMicroQR (rMQR) Code</b> barcode specification
|
|
6518
|
+
*/
|
|
6519
|
+
RECT_MICRO_QR: 84,
|
|
6520
|
+
|
|
6469
6521
|
parse(encodeTypeName)
|
|
6470
6522
|
{
|
|
6471
6523
|
if(encodeTypeName == "CODABAR") return 0;
|
|
@@ -6632,6 +6684,10 @@ EncodeTypes =
|
|
|
6632
6684
|
|
|
6633
6685
|
else if(encodeTypeName == "GS_1_HAN_XIN") return 80;
|
|
6634
6686
|
|
|
6687
|
+
else if(encodeTypeName == "MICRO_QR") return 83;
|
|
6688
|
+
|
|
6689
|
+
else if(encodeTypeName == "RECT_MICRO_QR") return 84;
|
|
6690
|
+
|
|
6635
6691
|
else return -1;
|
|
6636
6692
|
}
|
|
6637
6693
|
}
|
|
@@ -8558,6 +8614,294 @@ AztecEncodeMode =
|
|
|
8558
8614
|
EXTENDED_CODETEXT: 2
|
|
8559
8615
|
}
|
|
8560
8616
|
|
|
8617
|
+
/**
|
|
8618
|
+
* <p>
|
|
8619
|
+
* Version of MicroQR Code.
|
|
8620
|
+
* From M1 to M4.
|
|
8621
|
+
* </p>
|
|
8622
|
+
* @enum
|
|
8623
|
+
*/
|
|
8624
|
+
MicroQRVersion =
|
|
8625
|
+
{
|
|
8626
|
+
/**
|
|
8627
|
+
* <p>
|
|
8628
|
+
* Specifies to automatically pick up the best version for MicroQR.
|
|
8629
|
+
* This is default value.
|
|
8630
|
+
* </p>
|
|
8631
|
+
*/
|
|
8632
|
+
AUTO: 0,
|
|
8633
|
+
|
|
8634
|
+
/**
|
|
8635
|
+
* <p>
|
|
8636
|
+
* Specifies version M1 for Micro QR with 11 x 11 modules.
|
|
8637
|
+
* </p>
|
|
8638
|
+
*/
|
|
8639
|
+
M1: 1,
|
|
8640
|
+
|
|
8641
|
+
/**
|
|
8642
|
+
* <p>
|
|
8643
|
+
* Specifies version M2 for Micro QR with 13 x 13 modules.
|
|
8644
|
+
* </p>
|
|
8645
|
+
*/
|
|
8646
|
+
M2: 2,
|
|
8647
|
+
|
|
8648
|
+
/**
|
|
8649
|
+
* <p>
|
|
8650
|
+
* Specifies version M3 for Micro QR with 15 x 15 modules.
|
|
8651
|
+
* </p>
|
|
8652
|
+
*/
|
|
8653
|
+
M3: 3,
|
|
8654
|
+
|
|
8655
|
+
/**
|
|
8656
|
+
* <p>
|
|
8657
|
+
* Specifies version M4 for Micro QR with 17 x 17 modules.
|
|
8658
|
+
* </p>
|
|
8659
|
+
*/
|
|
8660
|
+
M4: 4
|
|
8661
|
+
}
|
|
8662
|
+
|
|
8663
|
+
/**
|
|
8664
|
+
* <p>
|
|
8665
|
+
* Version of RectMicroQR Code.
|
|
8666
|
+
* From version R7x43 to version R17x139.
|
|
8667
|
+
* </p>
|
|
8668
|
+
* @enum
|
|
8669
|
+
*/
|
|
8670
|
+
RectMicroQRVersion =
|
|
8671
|
+
{
|
|
8672
|
+
/**
|
|
8673
|
+
* <p>
|
|
8674
|
+
* Specifies to automatically pick up the best version for RectMicroQR.
|
|
8675
|
+
* This is default value.
|
|
8676
|
+
* </p>
|
|
8677
|
+
*/
|
|
8678
|
+
AUTO: 0,
|
|
8679
|
+
|
|
8680
|
+
/**
|
|
8681
|
+
* <p>
|
|
8682
|
+
* Specifies version with 7 x 43 modules.
|
|
8683
|
+
* </p>
|
|
8684
|
+
*/
|
|
8685
|
+
R7x43: 1,
|
|
8686
|
+
|
|
8687
|
+
/**
|
|
8688
|
+
* <p>
|
|
8689
|
+
* Specifies version with 7 x 59 modules.
|
|
8690
|
+
* </p>
|
|
8691
|
+
*/
|
|
8692
|
+
R7x59: 2,
|
|
8693
|
+
|
|
8694
|
+
/**
|
|
8695
|
+
* <p>
|
|
8696
|
+
* Specifies version with 7 x 77 modules.
|
|
8697
|
+
* </p>
|
|
8698
|
+
*/
|
|
8699
|
+
R7x77: 3,
|
|
8700
|
+
|
|
8701
|
+
/**
|
|
8702
|
+
* <p>
|
|
8703
|
+
* Specifies version with 7 x 99 modules.
|
|
8704
|
+
* </p>
|
|
8705
|
+
*/
|
|
8706
|
+
R7x99: 4,
|
|
8707
|
+
|
|
8708
|
+
/**
|
|
8709
|
+
* <p>
|
|
8710
|
+
* Specifies version with 7 x 139 modules.
|
|
8711
|
+
* </p>
|
|
8712
|
+
*/
|
|
8713
|
+
R7x139: 5,
|
|
8714
|
+
|
|
8715
|
+
/**
|
|
8716
|
+
* <p>
|
|
8717
|
+
* Specifies version with 9 x 43 modules.
|
|
8718
|
+
* </p>
|
|
8719
|
+
*/
|
|
8720
|
+
R9x43: 6,
|
|
8721
|
+
|
|
8722
|
+
/**
|
|
8723
|
+
* <p>
|
|
8724
|
+
* Specifies version with 9 x 59 modules.
|
|
8725
|
+
* </p>
|
|
8726
|
+
*/
|
|
8727
|
+
R9x59: 7,
|
|
8728
|
+
|
|
8729
|
+
/**
|
|
8730
|
+
* <p>
|
|
8731
|
+
* Specifies version with 9 x 77 modules.
|
|
8732
|
+
* </p>
|
|
8733
|
+
*/
|
|
8734
|
+
R9x77: 8,
|
|
8735
|
+
|
|
8736
|
+
/**
|
|
8737
|
+
* <p>
|
|
8738
|
+
* Specifies version with 9 x 99 modules.
|
|
8739
|
+
* </p>
|
|
8740
|
+
*/
|
|
8741
|
+
R9x99: 9,
|
|
8742
|
+
|
|
8743
|
+
/**
|
|
8744
|
+
* <p>
|
|
8745
|
+
* Specifies version with 9 x 139 modules.
|
|
8746
|
+
* </p>
|
|
8747
|
+
*/
|
|
8748
|
+
R9x139: 10,
|
|
8749
|
+
|
|
8750
|
+
/**
|
|
8751
|
+
* <p>
|
|
8752
|
+
* Specifies version with 11 x 27 modules.
|
|
8753
|
+
* </p>
|
|
8754
|
+
*/
|
|
8755
|
+
R11x27: 11,
|
|
8756
|
+
|
|
8757
|
+
/**
|
|
8758
|
+
* <p>
|
|
8759
|
+
* Specifies version with 11 x 43 modules.
|
|
8760
|
+
* </p>
|
|
8761
|
+
*/
|
|
8762
|
+
R11x43: 12,
|
|
8763
|
+
|
|
8764
|
+
/**
|
|
8765
|
+
* <p>
|
|
8766
|
+
* Specifies version with 11 x 59 modules.
|
|
8767
|
+
* </p>
|
|
8768
|
+
*/
|
|
8769
|
+
R11x59: 13,
|
|
8770
|
+
|
|
8771
|
+
/**
|
|
8772
|
+
* <p>
|
|
8773
|
+
* Specifies version with 11 x 77 modules.
|
|
8774
|
+
* </p>
|
|
8775
|
+
*/
|
|
8776
|
+
R11x77: 14,
|
|
8777
|
+
|
|
8778
|
+
/**
|
|
8779
|
+
* <p>
|
|
8780
|
+
* Specifies version with 11 x 99 modules.
|
|
8781
|
+
* </p>
|
|
8782
|
+
*/
|
|
8783
|
+
R11x99: 15,
|
|
8784
|
+
|
|
8785
|
+
/**
|
|
8786
|
+
* <p>
|
|
8787
|
+
* Specifies version with 11 x 139 modules.
|
|
8788
|
+
* </p>
|
|
8789
|
+
*/
|
|
8790
|
+
R11x139: 16,
|
|
8791
|
+
|
|
8792
|
+
/**
|
|
8793
|
+
* <p>
|
|
8794
|
+
* Specifies version with 13 x 27 modules.
|
|
8795
|
+
* </p>
|
|
8796
|
+
*/
|
|
8797
|
+
R13x27: 17,
|
|
8798
|
+
|
|
8799
|
+
/**
|
|
8800
|
+
* <p>
|
|
8801
|
+
* Specifies version with 13 x 43 modules.
|
|
8802
|
+
* </p>
|
|
8803
|
+
*/
|
|
8804
|
+
R13x43: 18,
|
|
8805
|
+
|
|
8806
|
+
/**
|
|
8807
|
+
* <p>
|
|
8808
|
+
* Specifies version with 13 x 59 modules.
|
|
8809
|
+
* </p>
|
|
8810
|
+
*/
|
|
8811
|
+
R13x59: 19,
|
|
8812
|
+
|
|
8813
|
+
/**
|
|
8814
|
+
* <p>
|
|
8815
|
+
* Specifies version with 13 x 77 modules.
|
|
8816
|
+
* </p>
|
|
8817
|
+
*/
|
|
8818
|
+
R13x77: 20,
|
|
8819
|
+
|
|
8820
|
+
/**
|
|
8821
|
+
* <p>
|
|
8822
|
+
* Specifies version with 13 x 99 modules.
|
|
8823
|
+
* </p>
|
|
8824
|
+
*/
|
|
8825
|
+
R13x99: 21,
|
|
8826
|
+
|
|
8827
|
+
/**
|
|
8828
|
+
* <p>
|
|
8829
|
+
* Specifies version with 13 x 139 modules.
|
|
8830
|
+
* </p>
|
|
8831
|
+
*/
|
|
8832
|
+
R13x139: 22,
|
|
8833
|
+
|
|
8834
|
+
/**
|
|
8835
|
+
* <p>
|
|
8836
|
+
* Specifies version with 15 x 43 modules.
|
|
8837
|
+
* </p>
|
|
8838
|
+
*/
|
|
8839
|
+
R15x43: 23,
|
|
8840
|
+
|
|
8841
|
+
/**
|
|
8842
|
+
* <p>
|
|
8843
|
+
* Specifies version with 15 x 59 modules.
|
|
8844
|
+
* </p>
|
|
8845
|
+
*/
|
|
8846
|
+
R15x59: 24,
|
|
8847
|
+
|
|
8848
|
+
/**
|
|
8849
|
+
* <p>
|
|
8850
|
+
* Specifies version with 15 x 77 modules.
|
|
8851
|
+
* </p>
|
|
8852
|
+
*/
|
|
8853
|
+
R15x77: 25,
|
|
8854
|
+
|
|
8855
|
+
/**
|
|
8856
|
+
* <p>
|
|
8857
|
+
* Specifies version with 15 x 99 modules.
|
|
8858
|
+
* </p>
|
|
8859
|
+
*/
|
|
8860
|
+
R15x99: 26,
|
|
8861
|
+
|
|
8862
|
+
/**
|
|
8863
|
+
* <p>
|
|
8864
|
+
* Specifies version with 15 x 139 modules.
|
|
8865
|
+
* </p>
|
|
8866
|
+
*/
|
|
8867
|
+
R15x139: 27,
|
|
8868
|
+
|
|
8869
|
+
/**
|
|
8870
|
+
* <p>
|
|
8871
|
+
* Specifies version with 17 x 43 modules.
|
|
8872
|
+
* </p>
|
|
8873
|
+
*/
|
|
8874
|
+
R17x43: 28,
|
|
8875
|
+
|
|
8876
|
+
/**
|
|
8877
|
+
* <p>
|
|
8878
|
+
* Specifies version with 17 x 59 modules.
|
|
8879
|
+
* </p>
|
|
8880
|
+
*/
|
|
8881
|
+
R17x59: 29,
|
|
8882
|
+
|
|
8883
|
+
/**
|
|
8884
|
+
* <p>
|
|
8885
|
+
* Specifies version with 17 x 77 modules.
|
|
8886
|
+
* </p>
|
|
8887
|
+
*/
|
|
8888
|
+
R17x77: 30,
|
|
8889
|
+
|
|
8890
|
+
/**
|
|
8891
|
+
* <p>
|
|
8892
|
+
* Specifies version with 17 x 99 modules.
|
|
8893
|
+
* </p>
|
|
8894
|
+
*/
|
|
8895
|
+
R17x99: 31,
|
|
8896
|
+
|
|
8897
|
+
/**
|
|
8898
|
+
* <p>
|
|
8899
|
+
* Specifies version with 17 x 139 modules.
|
|
8900
|
+
* </p>
|
|
8901
|
+
*/
|
|
8902
|
+
R17x139: 32
|
|
8903
|
+
}
|
|
8904
|
+
|
|
8561
8905
|
module.exports = {
|
|
8562
8906
|
BarcodeGenerator,
|
|
8563
8907
|
EncodeTypes,
|
|
@@ -8630,5 +8974,7 @@ module.exports = {
|
|
|
8630
8974
|
DataMatrixExtCodetextBuilder,
|
|
8631
8975
|
HanXinExtCodetextBuilder,
|
|
8632
8976
|
AztecEncodeMode,
|
|
8633
|
-
AztecExtCodetextBuilder
|
|
8977
|
+
AztecExtCodetextBuilder,
|
|
8978
|
+
MicroQRVersion,
|
|
8979
|
+
RectMicroQRVersion
|
|
8634
8980
|
};
|