aspose-barcode-for-python-via-java 24.8.0__tar.gz → 24.8.1__tar.gz
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.
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/asposebarcode/ComplexBarcode.py +109 -105
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/asposebarcode/Generation.py +661 -677
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/asposebarcode/Recognition.py +427 -433
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/asposebarcode/jlib/aspose-barcode-python-24.8.jar +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/setup.py +1 -1
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/MANIFEST.in +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/README.md +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/asposebarcode/Assist.py +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/asposebarcode/__init__.py +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/license/End+User+License+Agreement.html +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
- {aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/setup.cfg +0 -0
{aspose-barcode-for-python-via-java-24.8.0 → aspose-barcode-for-python-via-java-24.8.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aspose-barcode-for-python-via-java
|
|
3
|
-
Version: 24.8.
|
|
3
|
+
Version: 24.8.1
|
|
4
4
|
Summary: Barcode generation and recognition component. It allows developers to quickly and easily add barcode creation and scanning functionality to their Python applications.
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: Aspose
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aspose-barcode-for-python-via-java
|
|
3
|
-
Version: 24.8.
|
|
3
|
+
Version: 24.8.1
|
|
4
4
|
Summary: Barcode generation and recognition component. It allows developers to quickly and easily add barcode creation and scanning functionality to their Python applications.
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: Aspose
|
|
@@ -83,7 +83,7 @@ class ComplexBarcodeGenerator(Assist.BaseJavaClass):
|
|
|
83
83
|
javaComplexBarcodeGenerator = jpype.JClass(ComplexBarcodeGenerator.javaClassName)
|
|
84
84
|
super().__init__(javaComplexBarcodeGenerator(complexCodetext.getJavaClass()))
|
|
85
85
|
except Exception as e:
|
|
86
|
-
raise Assist.BarCodeException(e
|
|
86
|
+
raise Assist.BarCodeException(e)
|
|
87
87
|
self.init()
|
|
88
88
|
|
|
89
89
|
def generateBarCodeImage(self):
|
|
@@ -317,7 +317,7 @@ class Address(Assist.BaseJavaClass):
|
|
|
317
317
|
def equals(self, obj):
|
|
318
318
|
"""!
|
|
319
319
|
Determines whether the specified object is equal to the current object.
|
|
320
|
-
@return
|
|
320
|
+
@return True if the specified object is equal to the current object; otherwise, false.
|
|
321
321
|
@param obj The object to compare with the current object.
|
|
322
322
|
"""
|
|
323
323
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
@@ -388,7 +388,7 @@ class AlternativeScheme(Assist.BaseJavaClass):
|
|
|
388
388
|
def equals(self, obj):
|
|
389
389
|
"""!
|
|
390
390
|
Determines whether the specified object is equal to the current object.
|
|
391
|
-
@return
|
|
391
|
+
@return True if the specified object is equal to the current object; otherwise, false.
|
|
392
392
|
@param obj The object to compare with the current object.
|
|
393
393
|
"""
|
|
394
394
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
@@ -723,7 +723,7 @@ class SwissQRBill(Assist.BaseJavaClass):
|
|
|
723
723
|
def equals(self, obj):
|
|
724
724
|
"""!
|
|
725
725
|
Determines whether the specified object is equal to the current object.
|
|
726
|
-
@return
|
|
726
|
+
@return True if the specified object is equal to the current object; otherwise, false.
|
|
727
727
|
@param obj The object to compare with the current object.
|
|
728
728
|
"""
|
|
729
729
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
@@ -917,7 +917,7 @@ class MailmarkCodetext(IComplexCodetext):
|
|
|
917
917
|
|
|
918
918
|
def __init__(self, mailmarkCodetext):
|
|
919
919
|
"""!
|
|
920
|
-
Initializes a new instance of the
|
|
920
|
+
Initializes a new instance of the MailmarkCodetext class.
|
|
921
921
|
@param: mailmarkCodetext:
|
|
922
922
|
"""
|
|
923
923
|
|
|
@@ -1050,7 +1050,7 @@ class Mailmark2DCodetext(IComplexCodetext):
|
|
|
1050
1050
|
def setclass(self, value):
|
|
1051
1051
|
"""!
|
|
1052
1052
|
Identifies the class of the item.
|
|
1053
|
-
|
|
1053
|
+
@param Valid Values:
|
|
1054
1054
|
“1” - 1C (Retail)
|
|
1055
1055
|
“2” - 2C (Retail)
|
|
1056
1056
|
“3” - Economy (Retail)
|
|
@@ -1398,7 +1398,7 @@ class MaxiCodeStandardCodetext(MaxiCodeCodetext):
|
|
|
1398
1398
|
"""!
|
|
1399
1399
|
Returns a value indicating whether this instance is equal to a specified MaxiCodeStandardCodetext value.
|
|
1400
1400
|
@param: obj:An MaxiCodeStandardCodetext value to compare to this instance.
|
|
1401
|
-
@return:<b>
|
|
1401
|
+
@return:<b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
1402
1402
|
"""
|
|
1403
1403
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
1404
1404
|
|
|
@@ -1421,9 +1421,9 @@ class MaxiCodeStandartSecondMessage(MaxiCodeSecondMessage):
|
|
|
1421
1421
|
def __init__(self):
|
|
1422
1422
|
try:
|
|
1423
1423
|
java_class = jpype.JClass(MaxiCodeStandartSecondMessage.JAVA_CLASS_NAME)
|
|
1424
|
-
super().__init__(java_class)
|
|
1424
|
+
super().__init__(java_class())
|
|
1425
1425
|
except Exception as ex:
|
|
1426
|
-
raise Assist.BarCodeException(ex
|
|
1426
|
+
raise Assist.BarCodeException(ex)
|
|
1427
1427
|
|
|
1428
1428
|
def setMessage(self, value):
|
|
1429
1429
|
"""!
|
|
@@ -1443,7 +1443,7 @@ class MaxiCodeStandartSecondMessage(MaxiCodeSecondMessage):
|
|
|
1443
1443
|
Returns a value indicating whether this instance is equal to a specified MaxiCodeStandartSecondMessage value.
|
|
1444
1444
|
|
|
1445
1445
|
@param: obj:An MaxiCodeStandartSecondMessage value to compare to this instance.
|
|
1446
|
-
@return:<b>
|
|
1446
|
+
@return:<b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>
|
|
1447
1447
|
"""
|
|
1448
1448
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
1449
1449
|
|
|
@@ -1483,7 +1483,7 @@ class MaxiCodeStructuredCodetext(MaxiCodeCodetext):
|
|
|
1483
1483
|
super().__init__(javaClass)
|
|
1484
1484
|
self.maxiCodeSecondMessage = None
|
|
1485
1485
|
except Exception as ex:
|
|
1486
|
-
raise Assist.BarCodeException(ex
|
|
1486
|
+
raise Assist.BarCodeException(ex)
|
|
1487
1487
|
|
|
1488
1488
|
def init(self):
|
|
1489
1489
|
javaMaxiCodeSecondMessage = self.getJavaClass().getSecondMessage()
|
|
@@ -1553,7 +1553,7 @@ class MaxiCodeStructuredCodetext(MaxiCodeCodetext):
|
|
|
1553
1553
|
Constructs codetext
|
|
1554
1554
|
@return:Constructed codetext
|
|
1555
1555
|
"""
|
|
1556
|
-
return self.getJavaClass().getConstructedCodetext()
|
|
1556
|
+
return str(self.getJavaClass().getConstructedCodetext())
|
|
1557
1557
|
|
|
1558
1558
|
def initFromString(self, constructedCodetext):
|
|
1559
1559
|
"""
|
|
@@ -1567,7 +1567,7 @@ class MaxiCodeStructuredCodetext(MaxiCodeCodetext):
|
|
|
1567
1567
|
Returns a value indicating whether this instance is equal to a specified MaxiCodeStructuredCodetext value.
|
|
1568
1568
|
|
|
1569
1569
|
@param: obj:An MaxiCodeStructuredCodetext value to compare to this instance.
|
|
1570
|
-
@return:<b>
|
|
1570
|
+
@return:<b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
1571
1571
|
"""
|
|
1572
1572
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
1573
1573
|
|
|
@@ -1652,9 +1652,9 @@ class MaxiCodeCodetextMode2(MaxiCodeStructuredCodetext):
|
|
|
1652
1652
|
def __init__(self):
|
|
1653
1653
|
try:
|
|
1654
1654
|
java_class = jpype.JClass(MaxiCodeCodetextMode2.JAVA_CLASS_NAME)
|
|
1655
|
-
super().__init__(java_class)
|
|
1655
|
+
super().__init__(java_class())
|
|
1656
1656
|
except Exception as ex:
|
|
1657
|
-
raise Assist.BarCodeException(ex
|
|
1657
|
+
raise Assist.BarCodeException(ex)
|
|
1658
1658
|
|
|
1659
1659
|
@staticmethod
|
|
1660
1660
|
def construct(javaClass):
|
|
@@ -1696,7 +1696,7 @@ class MaxiCodeCodetextMode3(MaxiCodeStructuredCodetext):
|
|
|
1696
1696
|
# Mode 3 with structured second message
|
|
1697
1697
|
maxiCodeCodetext = MaxiCodeCodetextMode3()
|
|
1698
1698
|
maxiCodeCodetext.setPostalCode("B1050")
|
|
1699
|
-
maxiCodeCodetext.setCountryCode(
|
|
1699
|
+
maxiCodeCodetext.setCountryCode(156)
|
|
1700
1700
|
maxiCodeCodetext.setServiceCategory(999)
|
|
1701
1701
|
maxiCodeStructuredSecondMessage = MaxiCodeStructuredSecondMessage()
|
|
1702
1702
|
maxiCodeStructuredSecondMessage.add("634 ALPHA DRIVE")
|
|
@@ -1724,8 +1724,8 @@ class MaxiCodeCodetextMode3(MaxiCodeStructuredCodetext):
|
|
|
1724
1724
|
print("Message: " + secondMessage.getMessage())
|
|
1725
1725
|
\endcode
|
|
1726
1726
|
\code
|
|
1727
|
-
|
|
1728
|
-
|
|
1727
|
+
reader = Recognition.BarCodeReader(imagePath, None, DecodeType.MAXI_CODE)
|
|
1728
|
+
for result in reader.readBarCodes():
|
|
1729
1729
|
resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(
|
|
1730
1730
|
result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText())
|
|
1731
1731
|
if resultMaxiCodeCodetext is MaxiCodeCodetextMode3:
|
|
@@ -1745,9 +1745,10 @@ class MaxiCodeCodetextMode3(MaxiCodeStructuredCodetext):
|
|
|
1745
1745
|
def __init__(self):
|
|
1746
1746
|
try:
|
|
1747
1747
|
java_class = jpype.JClass(MaxiCodeCodetextMode3.JAVA_CLASS_NAME)
|
|
1748
|
-
super().__init__(java_class)
|
|
1748
|
+
super().__init__(java_class())
|
|
1749
1749
|
except Exception as ex:
|
|
1750
|
-
raise Assist.BarCodeException(ex
|
|
1750
|
+
raise Assist.BarCodeException(str(ex))
|
|
1751
|
+
# raise Assist.BarCodeException(ex)
|
|
1751
1752
|
|
|
1752
1753
|
@staticmethod
|
|
1753
1754
|
def construct(javaClass):
|
|
@@ -1765,7 +1766,7 @@ class MaxiCodeCodetextMode3(MaxiCodeStructuredCodetext):
|
|
|
1765
1766
|
return self.getJavaClass().getMode()
|
|
1766
1767
|
|
|
1767
1768
|
def init(self):
|
|
1768
|
-
super().init(
|
|
1769
|
+
super().init()
|
|
1769
1770
|
|
|
1770
1771
|
class MaxiCodeStructuredSecondMessage(MaxiCodeSecondMessage):
|
|
1771
1772
|
"""!
|
|
@@ -1779,7 +1780,7 @@ class MaxiCodeStructuredSecondMessage(MaxiCodeSecondMessage):
|
|
|
1779
1780
|
super().__init__(java_class())
|
|
1780
1781
|
self.maxiCodeSecondMessage = None
|
|
1781
1782
|
except Exception as ex:
|
|
1782
|
-
raise Assist.BarCodeException(ex
|
|
1783
|
+
raise Assist.BarCodeException(ex)
|
|
1783
1784
|
|
|
1784
1785
|
def getYear(self):
|
|
1785
1786
|
"""!
|
|
@@ -1832,7 +1833,7 @@ class MaxiCodeStructuredSecondMessage(MaxiCodeSecondMessage):
|
|
|
1832
1833
|
Returns a value indicating whether this instance is equal to a specified MaxiCodeStructuredSecondMessage value.
|
|
1833
1834
|
|
|
1834
1835
|
@param: obj: An MaxiCodeStructuredSecondMessage value to compare to this instance
|
|
1835
|
-
@return: <b>
|
|
1836
|
+
@return: <b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
1836
1837
|
"""
|
|
1837
1838
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
1838
1839
|
|
|
@@ -1898,33 +1899,34 @@ class HIBCLICCombinedCodetext(HIBCLICComplexCodetext):
|
|
|
1898
1899
|
|
|
1899
1900
|
This sample shows how to encode and decode HIBC LIC using HIBCLICCombinedCodetext.
|
|
1900
1901
|
\code
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1902
|
+
combinedCodetext = HIBCLICCombinedCodetext()
|
|
1903
|
+
combinedCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC)
|
|
1904
|
+
combinedCodetext.setPrimaryData(PrimaryData())
|
|
1905
|
+
combinedCodetext.getPrimaryData().setProductOrCatalogNumber("12345")
|
|
1906
|
+
combinedCodetext.getPrimaryData().setLabelerIdentificationCode("A999")
|
|
1907
|
+
combinedCodetext.getPrimaryData().setUnitOfMeasureID(1)
|
|
1908
|
+
combinedCodetext.setSecondaryAndAdditionalData(SecondaryAndAdditionalData())
|
|
1909
|
+
combinedCodetext.getSecondaryAndAdditionalData().setExpiryDate(datetime.now())
|
|
1910
|
+
combinedCodetext.getSecondaryAndAdditionalData().setExpiryDateFormat(HIBCLICDateFormat.MMDDYY)
|
|
1911
|
+
combinedCodetext.getSecondaryAndAdditionalData().setQuantity(30)
|
|
1912
|
+
combinedCodetext.getSecondaryAndAdditionalData().setLotNumber("LOT123")
|
|
1913
|
+
combinedCodetext.getSecondaryAndAdditionalData().setSerialNumber("SERIAL123")
|
|
1914
|
+
combinedCodetext.getSecondaryAndAdditionalData().setDateOfManufacture(datetime.now())
|
|
1915
|
+
generator = ComplexBarcode.ComplexBarcodeGenerator(combinedCodetext)
|
|
1916
|
+
image = generator.generateBarCodeImage()
|
|
1917
|
+
reader = Recognition.BarCodeReader(image, None, DecodeType.HIBCQRLIC)
|
|
1918
|
+
reader.readBarCodes()
|
|
1919
|
+
codetext = reader.getFoundBarCodes()[0].getCodeText()
|
|
1920
|
+
result = ComplexCodetextReader.tryDecodeHIBCLIC(codetext)
|
|
1921
|
+
if result is not None:
|
|
1922
|
+
print("Product or catalog number: " + result.getPrimaryData().getProductOrCatalogNumber())
|
|
1923
|
+
print("Labeler identification code: " + result.getPrimaryData().getLabelerIdentificationCode())
|
|
1924
|
+
print("Unit of measure ID: " + result.getPrimaryData().getUnitOfMeasureID())
|
|
1925
|
+
print("Expiry date: " + result.getSecondaryAndAdditionalData().getExpiryDate())
|
|
1926
|
+
print("Quantity: " + result.getSecondaryAndAdditionalData().getQuantity())
|
|
1927
|
+
print("Lot number: " + result.getSecondaryAndAdditionalData().getLotNumber())
|
|
1928
|
+
print("Serial number: " + result.getSecondaryAndAdditionalData().getSerialNumber())
|
|
1929
|
+
print("Date of manufacture: " + result.getSecondaryAndAdditionalData().getDateOfManufacture())
|
|
1928
1930
|
\endcode
|
|
1929
1931
|
"""
|
|
1930
1932
|
|
|
@@ -1991,9 +1993,9 @@ class HIBCLICCombinedCodetext(HIBCLICComplexCodetext):
|
|
|
1991
1993
|
|
|
1992
1994
|
def equals(self, obj):
|
|
1993
1995
|
"""!
|
|
1994
|
-
Returns a value indicating whether this instance is equal to a specified
|
|
1995
|
-
@param: obj:An
|
|
1996
|
-
@return:
|
|
1996
|
+
Returns a value indicating whether this instance is equal to a specified HIBCLICCombinedCodetext value.
|
|
1997
|
+
@param: obj:An HIBCLICCombinedCodetext value to compare to this instance.
|
|
1998
|
+
@return: <b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
1997
1999
|
"""
|
|
1998
2000
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
1999
2001
|
|
|
@@ -2008,9 +2010,9 @@ class HIBCLICPrimaryDataCodetext(HIBCLICComplexCodetext):
|
|
|
2008
2010
|
"""!
|
|
2009
2011
|
Class for encoding and decoding the text embedded in the HIBC LIC code which stores primary data.
|
|
2010
2012
|
|
|
2011
|
-
This sample shows how to encode and decode HIBC LIC using
|
|
2013
|
+
This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryDataCodetext.
|
|
2012
2014
|
\code
|
|
2013
|
-
complexCodetext = ComplexBarcode.
|
|
2015
|
+
complexCodetext = ComplexBarcode.HIBCLICPrimaryDataCodetext()
|
|
2014
2016
|
complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC)
|
|
2015
2017
|
complexCodetext.setData(PrimaryData())
|
|
2016
2018
|
complexCodetext.getData().setProductOrCatalogNumber("12345")
|
|
@@ -2074,9 +2076,9 @@ class HIBCLICPrimaryDataCodetext(HIBCLICComplexCodetext):
|
|
|
2074
2076
|
|
|
2075
2077
|
def equals(self, obj):
|
|
2076
2078
|
"""!
|
|
2077
|
-
Returns a value indicating whether this instance is equal to a specified
|
|
2078
|
-
@param: obj:An
|
|
2079
|
-
@return
|
|
2079
|
+
Returns a value indicating whether this instance is equal to a specified HIBCLICPrimaryDataCodetext value.
|
|
2080
|
+
@param: obj:An HIBCLICPrimaryDataCodetext value to compare to this instance.
|
|
2081
|
+
@return:<b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
2080
2082
|
"""
|
|
2081
2083
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
2082
2084
|
|
|
@@ -2094,27 +2096,28 @@ class HIBCLICSecondaryAndAdditionalDataCodetext(HIBCLICComplexCodetext):
|
|
|
2094
2096
|
This sample shows how to encode and decode HIBC LIC using HIBCLICSecondaryAndAdditionalDataCodetext.
|
|
2095
2097
|
|
|
2096
2098
|
\code
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2099
|
+
complexCodetext = HIBCLICSecondaryAndAdditionalDataCodetext()
|
|
2100
|
+
complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC)
|
|
2101
|
+
complexCodetext.setLinkCharacter('L')
|
|
2102
|
+
complexCodetext.setData(SecondaryAndAdditionalData())
|
|
2103
|
+
complexCodetext.getData().setExpiryDate(datetime.now())
|
|
2104
|
+
complexCodetext.getData().setExpiryDateFormat(HIBCLICDateFormat.MMDDYY)
|
|
2105
|
+
complexCodetext.getData().setQuantity(30)
|
|
2106
|
+
complexCodetext.getData().setLotNumber("LOT123")
|
|
2107
|
+
complexCodetext.getData().setSerialNumber("SERIAL123")
|
|
2108
|
+
complexCodetext.getData().setDateOfManufacture(datetime.now())
|
|
2109
|
+
generator = ComplexBarcodeGenerator(complexCodetext)
|
|
2110
|
+
image = generator.generateBarCodeImage()
|
|
2111
|
+
reader = Recognition.BarCodeReader(image, None, DecodeType.HIBCQRLIC)
|
|
2112
|
+
reader.readBarCodes()
|
|
2113
|
+
codetext = reader.getFoundBarCodes()[0].getCodeText()
|
|
2114
|
+
result = ComplexCodetextReader.tryDecodeHIBCLIC(codetext)
|
|
2115
|
+
if result is not None:
|
|
2116
|
+
print("Expiry date: " + result.getData().getExpiryDate())
|
|
2117
|
+
print("Quantity: " + result.getData().getQuantity())
|
|
2118
|
+
print("Lot number: " + result.getData().getLotNumber())
|
|
2119
|
+
print("Serial number: " + result.getData().getSerialNumber())
|
|
2120
|
+
print("Date of manufacture: " + result.getData().getDateOfManufacture())
|
|
2118
2121
|
\endcode
|
|
2119
2122
|
"""
|
|
2120
2123
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICSecondaryAndAdditionalDataCodetext"
|
|
@@ -2172,9 +2175,9 @@ class HIBCLICSecondaryAndAdditionalDataCodetext(HIBCLICComplexCodetext):
|
|
|
2172
2175
|
|
|
2173
2176
|
def equals(self, obj):
|
|
2174
2177
|
"""!
|
|
2175
|
-
Returns a value indicating whether this instance is equal to a specified
|
|
2176
|
-
@param: obj:An
|
|
2177
|
-
@return:
|
|
2178
|
+
Returns a value indicating whether this instance is equal to a specified HIBCLICSecondaryAndAdditionalDataCodetext value.
|
|
2179
|
+
@param: obj:An HIBCLICSecondaryAndAdditionalDataCodetext value to compare to this instance.
|
|
2180
|
+
@return: <b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
2178
2181
|
"""
|
|
2179
2182
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
2180
2183
|
|
|
@@ -2193,21 +2196,22 @@ class HIBCPASCodetext(IComplexCodetext):
|
|
|
2193
2196
|
Class for encoding and decoding the text embedded in the HIBC PAS code.
|
|
2194
2197
|
This sample shows how to encode and decode HIBC PAS using HIBCPASCodetext.
|
|
2195
2198
|
\code
|
|
2196
|
-
complexCodetext =
|
|
2197
|
-
complexCodetext.setDataLocation(HIBCPASDataLocation.PATIENT)
|
|
2198
|
-
complexCodetext.addRecord(HIBCPASDataType.LABELER_IDENTIFICATION_CODE, "A123")
|
|
2199
|
-
complexCodetext.addRecord(HIBCPASDataType.MANUFACTURER_SERIAL_NUMBER, "SERIAL123")
|
|
2199
|
+
complexCodetext = ComplexBarcode.HIBCPASCodetext()
|
|
2200
|
+
complexCodetext.setDataLocation(ComplexBarcode.HIBCPASDataLocation.PATIENT)
|
|
2201
|
+
complexCodetext.addRecord(ComplexBarcode.HIBCPASDataType.LABELER_IDENTIFICATION_CODE, "A123")
|
|
2202
|
+
complexCodetext.addRecord(ComplexBarcode.HIBCPASDataType.MANUFACTURER_SERIAL_NUMBER, "SERIAL123")
|
|
2200
2203
|
complexCodetext.setBarcodeType(EncodeTypes.HIBC_DATA_MATRIX_PAS)
|
|
2201
2204
|
generator = ComplexBarcodeGenerator(complexCodetext)
|
|
2202
|
-
|
|
2205
|
+
reader = Recognition.BarCodeReader(generator.generateBarCodeImage(), None, DecodeType.HIBC_DATA_MATRIX_PAS)
|
|
2203
2206
|
reader.readBarCodes()
|
|
2204
2207
|
codetext = reader.getFoundBarCodes()[0].getCodeText()
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2208
|
+
if codetext is not None:
|
|
2209
|
+
readCodetext = ComplexCodetextReader.tryDecodeHIBCPAS(codetext)
|
|
2210
|
+
print("Data location: " + readCodetext.getDataLocation())
|
|
2211
|
+
print("Data type: " + readCodetext.getRecords()[0].getDataType())
|
|
2212
|
+
print("Data: " + readCodetext.getRecords()[0].getData())
|
|
2213
|
+
print("Data type: " + readCodetext.getRecords()[1].getDataType())
|
|
2214
|
+
print("Data: " + readCodetext.getRecords()[1].getData())
|
|
2211
2215
|
\endcode
|
|
2212
2216
|
"""
|
|
2213
2217
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCPASCodetext"
|
|
@@ -2306,9 +2310,9 @@ class HIBCPASCodetext(IComplexCodetext):
|
|
|
2306
2310
|
|
|
2307
2311
|
def equals(self, obj):
|
|
2308
2312
|
"""!
|
|
2309
|
-
Returns a value indicating whether this instance is equal to a specified
|
|
2310
|
-
@param: obj:An
|
|
2311
|
-
@return
|
|
2313
|
+
Returns a value indicating whether this instance is equal to a specified HIBCPASCodetext value.
|
|
2314
|
+
@param: obj:An HIBCPASCodetext value to compare to this instance.
|
|
2315
|
+
@return:<b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
2312
2316
|
"""
|
|
2313
2317
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
2314
2318
|
|
|
@@ -2370,9 +2374,9 @@ class HIBCPASRecord(Assist.BaseJavaClass):
|
|
|
2370
2374
|
|
|
2371
2375
|
def equals(self, obj):
|
|
2372
2376
|
"""!
|
|
2373
|
-
Returns a value indicating whether this instance is equal to a specified
|
|
2374
|
-
@param: obj:An
|
|
2375
|
-
@return:
|
|
2377
|
+
Returns a value indicating whether this instance is equal to a specified HIBCPASDataType value.
|
|
2378
|
+
@param: obj:An HIBCPASDataType value to compare to this instance.
|
|
2379
|
+
@return: <b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
2376
2380
|
"""
|
|
2377
2381
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
2378
2382
|
|
|
@@ -2454,9 +2458,9 @@ class PrimaryData(Assist.BaseJavaClass):
|
|
|
2454
2458
|
|
|
2455
2459
|
def equals(self, obj):
|
|
2456
2460
|
"""!
|
|
2457
|
-
Returns a value indicating whether this instance is equal to a specified
|
|
2458
|
-
@param: obj:An
|
|
2459
|
-
@return:
|
|
2461
|
+
Returns a value indicating whether this instance is equal to a specified PrimaryData value.
|
|
2462
|
+
@param: obj:An PrimaryData value to compare to this instance.
|
|
2463
|
+
@return: <b>True</b> if obj has the same value as this instance; otherwise, <b>false</b>.
|
|
2460
2464
|
"""
|
|
2461
2465
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
2462
2466
|
|
|
@@ -2587,9 +2591,9 @@ class SecondaryAndAdditionalData(Assist.BaseJavaClass):
|
|
|
2587
2591
|
|
|
2588
2592
|
def equals(self, obj):
|
|
2589
2593
|
"""!
|
|
2590
|
-
Returns a value indicating whether this instance is equal to a specified
|
|
2591
|
-
@param: obj:An
|
|
2592
|
-
@return:
|
|
2594
|
+
Returns a value indicating whether this instance is equal to a specified SecondaryAndAdditionalData value.
|
|
2595
|
+
@param: obj:An SecondaryAndAdditionalData value to compare to this instance.
|
|
2596
|
+
@return: True if obj has the same value as this instance; otherwise, false.
|
|
2593
2597
|
"""
|
|
2594
2598
|
return self.getJavaClass().equals(obj.getJavaClass())
|
|
2595
2599
|
|