aspose-barcode-for-python-via-java 24.2.0__tar.gz → 24.3.0__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.
Files changed (18) hide show
  1. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/PKG-INFO +1 -1
  2. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
  3. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +1 -1
  4. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/asposebarcode/ComplexBarcode.py +8 -8
  5. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/asposebarcode/Generation.py +101 -6
  6. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/asposebarcode/Recognition.py +26 -25
  7. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/asposebarcode/__init__.py +1 -1
  8. aspose-barcode-for-python-via-java-24.2.0/asposebarcode/jlib/aspose-barcode-python-24.2.jar → aspose-barcode-for-python-via-java-24.3.0/asposebarcode/jlib/aspose-barcode-python-24.3.jar +0 -0
  9. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/setup.py +1 -1
  10. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/MANIFEST.in +0 -0
  11. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/README.md +0 -0
  12. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
  13. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
  14. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
  15. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/asposebarcode/Assist.py +0 -0
  16. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/license/End+User+License+Agreement.html +0 -0
  17. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
  18. {aspose-barcode-for-python-via-java-24.2.0 → aspose-barcode-for-python-via-java-24.3.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aspose-barcode-for-python-via-java
3
- Version: 24.2.0
3
+ Version: 24.3.0
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.2.0
3
+ Version: 24.3.0
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
@@ -11,6 +11,6 @@ asposebarcode/ComplexBarcode.py
11
11
  asposebarcode/Generation.py
12
12
  asposebarcode/Recognition.py
13
13
  asposebarcode/__init__.py
14
- asposebarcode/jlib/aspose-barcode-python-24.2.jar
14
+ asposebarcode/jlib/aspose-barcode-python-24.3.jar
15
15
  license/End+User+License+Agreement.html
16
16
  license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf
@@ -1395,8 +1395,8 @@ class MaxiCodeStandardCodetext(MaxiCodeCodetext):
1395
1395
 
1396
1396
  def equals(self, obj):
1397
1397
  """!
1398
- Returns a value indicating whether this instance is equal to a specified <see cref="MaxiCodeStandardCodetext"/> value.
1399
- @param: obj:An <see cref="MaxiCodeStandardCodetext"/> value to compare to this instance.
1398
+ Returns a value indicating whether this instance is equal to a specified MaxiCodeStandardCodetext value.
1399
+ @param: obj:An MaxiCodeStandardCodetext value to compare to this instance.
1400
1400
  @:return:<b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
1401
1401
  """
1402
1402
  return self.getJavaClass().equals(obj.getJavaClass())
@@ -1439,9 +1439,9 @@ class MaxiCodeStandartSecondMessage(MaxiCodeSecondMessage):
1439
1439
 
1440
1440
  def equals(self, obj):
1441
1441
  """!
1442
- Returns a value indicating whether this instance is equal to a specified <see cref="MaxiCodeStandartSecondMessage"/> value.
1442
+ Returns a value indicating whether this instance is equal to a specified MaxiCodeStandartSecondMessage value.
1443
1443
 
1444
- @param: obj:An <see cref="MaxiCodeStandartSecondMessage"/> value to compare to this instance.
1444
+ @param: obj:An MaxiCodeStandartSecondMessage value to compare to this instance.
1445
1445
  @:return:<b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>
1446
1446
  """
1447
1447
  return self.getJavaClass().equals(obj.getJavaClass())
@@ -1555,9 +1555,9 @@ class MaxiCodeStructuredCodetext(MaxiCodeCodetext):
1555
1555
 
1556
1556
  def equals(self, obj):
1557
1557
  """
1558
- Returns a value indicating whether this instance is equal to a specified <see cref="MaxiCodeStructuredCodetext"/> value.
1558
+ Returns a value indicating whether this instance is equal to a specified MaxiCodeStructuredCodetext value.
1559
1559
 
1560
- @param: obj:An <see cref="MaxiCodeStructuredCodetext"/> value to compare to this instance.
1560
+ @param: obj:An MaxiCodeStructuredCodetext value to compare to this instance.
1561
1561
  @:return:<b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
1562
1562
  """
1563
1563
  return self.getJavaClass().equals(obj.getJavaClass())
@@ -1816,9 +1816,9 @@ class MaxiCodeStructuredSecondMessage(MaxiCodeSecondMessage):
1816
1816
 
1817
1817
  def equals(self, obj):
1818
1818
  """!
1819
- Returns a value indicating whether this instance is equal to a specified <see cref="MaxiCodeStructuredSecondMessage"/> value.
1819
+ Returns a value indicating whether this instance is equal to a specified MaxiCodeStructuredSecondMessage value.
1820
1820
 
1821
- @param: obj: An <see cref="MaxiCodeStructuredSecondMessage"/> value to compare to this instance
1821
+ @param: obj: An MaxiCodeStructuredSecondMessage value to compare to this instance
1822
1822
  @:return: <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
1823
1823
  """
1824
1824
  return self.getJavaClass().equals(obj.getJavaClass())
@@ -576,6 +576,7 @@ class BaseGenerationParameters(Assist.BaseJavaClass):
576
576
  self.borderParameters = BorderParameters(self.getJavaClass().getBorder())
577
577
  self.imageWidth = Unit(self.getJavaClass().getImageWidth())
578
578
  self.imageHeight = Unit(self.getJavaClass().getImageHeight())
579
+ self.image = ImageParameters(self.getJavaClass().getImage())
579
580
 
580
581
  def getUseAntiAlias(self):
581
582
  """
@@ -620,6 +621,13 @@ class BaseGenerationParameters(Assist.BaseJavaClass):
620
621
  """
621
622
  return self.getJavaClass().getResolution()
622
623
 
624
+ def getImage(self):
625
+ """
626
+ Image parameters. See ImageParameters
627
+ :return:
628
+ """
629
+ return self.image
630
+
623
631
  def setResolution(self, value):
624
632
  """!
625
633
  Sets the resolution of the BarCode image.
@@ -1734,8 +1742,8 @@ class PatchCodeParameters(Assist.BaseJavaClass):
1734
1742
 
1735
1743
  def toString(self):
1736
1744
  """!
1737
- Returns a human-readable string representation of this <see cref="PatchCodeParameters"/>.
1738
- @return A string that represents this <see cref="PatchCodeParameters"/>.
1745
+ Returns a human-readable string representation of this PatchCodeParameters.
1746
+ @return A string that represents this PatchCodeParameters.
1739
1747
  """
1740
1748
  return self.getJavaClass().toString()
1741
1749
 
@@ -1976,8 +1984,8 @@ class GS1CompositeBarParameters(Assist.BaseJavaClass):
1976
1984
 
1977
1985
  def toString(self):
1978
1986
  """!
1979
- Returns a human-readable string representation of this <see cref="DataBarParameters"/>.
1980
- @return A string that represents this <see cref="DataBarParameters"/>
1987
+ Returns a human-readable string representation of this DataBarParameters
1988
+ @return A string that represents this DataBarParameters
1981
1989
  """
1982
1990
  return self.getJavaClass().toString()
1983
1991
 
@@ -2166,7 +2174,7 @@ class QrParameters(Assist.BaseJavaClass):
2166
2174
  Version of RectMicroQR Code. From version R7x59 to version R17x139.
2167
2175
  Default value is RectMicroQRVersion.Auto
2168
2176
  """
2169
- return RectMicroQrVersion(self.getJavaClass().getRectMicroQrVersion())
2177
+ return RectMicroQRVersion(self.getJavaClass().getRectMicroQrVersion())
2170
2178
 
2171
2179
  def setRectMicroQrVersion(self, value):
2172
2180
  """!
@@ -3968,7 +3976,72 @@ class AztecExtCodetextBuilder(ExtCodetextBuilder):
3968
3976
  """
3969
3977
  return self.getJavaClass().getExtendedCodetext()
3970
3978
 
3971
- class MacroCharacter:
3979
+ class ImageParameters(Assist.BaseJavaClass):
3980
+ """!
3981
+ Image parameters.
3982
+ """
3983
+
3984
+ def __init__(self, javaClass):
3985
+ super().__init__(javaClass)
3986
+ self.svg = None
3987
+
3988
+
3989
+ def init(self):
3990
+ self.svg = SvgParameters(self.getJavaClass().getSvg())
3991
+
3992
+ def getSvg(self):
3993
+ """!
3994
+ SVG parameters
3995
+ """
3996
+ return self.svg
3997
+
3998
+ def setSvg(self, svg):
3999
+ """!
4000
+ SVG parameters
4001
+ """
4002
+ self.svg = svg
4003
+ self.getJavaClass().setSvg(svg.getJavaClass())
4004
+
4005
+ class SvgParameters(Assist.BaseJavaClass):
4006
+ """!
4007
+ SVG parameters.
4008
+ """
4009
+
4010
+ def __init__(self, javaClass):
4011
+ super().__init__(javaClass)
4012
+
4013
+ def init(self):
4014
+ pass
4015
+
4016
+ def isExplicitSizeInPixels(self):
4017
+ """!
4018
+ Does SVG image contain explicit size in pixels (recommended)
4019
+ Default value: true.
4020
+ """
4021
+ return self.getJavaClass().isExplicitSizeInPixels()
4022
+
4023
+ def setExplicitSizeInPixels(self, explicitSizeInPixels):
4024
+ """!
4025
+ Does SVG image contain explicit size in pixels (recommended)
4026
+ Default value: true.
4027
+ """
4028
+ self.getJavaClass().setExplicitSizeInPixels(explicitSizeInPixels)
4029
+
4030
+ def isTextDrawnInTextElement(self):
4031
+ """!
4032
+ Does SVG image contain text as text element rather than paths (recommended)
4033
+ Default value: true.
4034
+ """
4035
+ return self.getJavaClass().isTextDrawnInTextElement()
4036
+
4037
+ def setTextDrawnInTextElement(self, textDrawnInTextElement):
4038
+ """!
4039
+ Does SVG image contain text as text element rather than paths (recommended)
4040
+ Default value: true.
4041
+ """
4042
+ self.getJavaClass().setTextDrawnInTextElement(textDrawnInTextElement)
4043
+
4044
+ class MacroCharacter(Enum):
3972
4045
  """!
3973
4046
  Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes.
3974
4047
  05 Macro craracter is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
@@ -4023,6 +4096,28 @@ class MacroCharacter:
4023
4096
  # Character is translated to "[)>\u001E06\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
4024
4097
  MACRO_06 = 6
4025
4098
 
4099
+ class BarcodeClassifications(Enum):
4100
+ """!
4101
+ BarcodeClassifications EncodeTypes classification
4102
+ """
4103
+ ## Unspecified classification
4104
+ NONE = 0
4105
+
4106
+ ## Specifies 1D-barcode
4107
+ TYPE_1D = 1
4108
+
4109
+ ## Specifies 2D-barcode
4110
+ TYPE_2D = 2
4111
+
4112
+ ## Specifies POSTAL-barcode
4113
+ POSTAL = 3
4114
+
4115
+ ## Specifies DataBar-barcode
4116
+ DATABAR = 4
4117
+
4118
+ ## Specifies COUPON-barcode
4119
+ COUPON = 5
4120
+
4026
4121
  class FontStyle(Enum):
4027
4122
  """!
4028
4123
  Specifies style information applied to text.
@@ -42,12 +42,13 @@ class BarCodeReader(Assist.BaseJavaClass):
42
42
  image = BarCodeReader.convertToBase64Image(image)
43
43
  if not (rectangles is None):
44
44
  if not (is_array(rectangles)):
45
- rectangles = [rectangles.toString()]
46
- else:
47
- i = 0
48
- while (i < len(rectangles)):
49
- rectangles[i] = rectangles[i].toString()
50
- i = i + 1
45
+ rectangles = [rectangles]
46
+ i = 0
47
+ while (i < len(rectangles)):
48
+ if not rectangles[i] is Assist.Rectangle:
49
+ raise Exception("Invalid arguments")
50
+ rectangles[i] = rectangles[i].toString()
51
+ i = i + 1
51
52
  if (decodeTypes != None):
52
53
  if not (is_array(decodeTypes)):
53
54
  decodeTypes = [decodeTypes]
@@ -1108,8 +1109,8 @@ class BarCodeExtendedParameters(Assist.BaseJavaClass):
1108
1109
 
1109
1110
  def getDataBar(self):
1110
1111
  """!
1111
- Gets a DataBar additional information<see cref="DataBarExtendedParameters"/> of recognized barcode
1112
- @return: mixed A DataBar additional information<see cref="DataBarExtendedParameters"/> of recognized barcode
1112
+ Gets a DataBar additional information DataBarExtendedParameters of recognized barcode
1113
+ @return: mixed A DataBar additional information DataBarExtendedParameters of recognized barcode
1113
1114
  """
1114
1115
  return self._dataBarParameters
1115
1116
 
@@ -1548,7 +1549,7 @@ class DataBarExtendedParameters(Assist.BaseJavaClass):
1548
1549
 
1549
1550
  def equals(self, obj):
1550
1551
  """!
1551
- Returns a value indicating whether this instance is equal to a specified <see cref="DataBarExtendedParameters"/> value.
1552
+ Returns a value indicating whether this instance is equal to a specified DataBarExtendedParameters value.
1552
1553
  @param: obj An System.Object value to compare to this instance.
1553
1554
  @return: <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
1554
1555
  """
@@ -1563,8 +1564,8 @@ class DataBarExtendedParameters(Assist.BaseJavaClass):
1563
1564
 
1564
1565
  def toString(self):
1565
1566
  """!
1566
- Returns a human-readable string representation of this <see cref="DataBarExtendedParameters"/>.
1567
- @return: A string that represents this <see cref="DataBarExtendedParameters"/>.
1567
+ Returns a human-readable string representation of this DataBarExtendedParameters"/>.
1568
+ @return: A string that represents this DataBarExtendedParameters.
1568
1569
  """
1569
1570
  return self.getJavaClass().toString()
1570
1571
 
@@ -1886,7 +1887,7 @@ class RecognitionAbortedException(Exception):
1886
1887
 
1887
1888
  def __init__(self, message, executionTime):
1888
1889
  """!
1889
- Initializes a new instance of the <see cref="RecognitionAbortedException" /> class with specified recognition abort message.
1890
+ Initializes a new instance of the RecognitionAbortedException class with specified recognition abort message.
1890
1891
 
1891
1892
  @param: message: The error message of the exception.
1892
1893
  @param: executionTime: The execution time of current recognition session.
@@ -1965,7 +1966,7 @@ class MaxiCodeExtendedParameters(Assist.BaseJavaClass):
1965
1966
 
1966
1967
  def equals(self, obj):
1967
1968
  """!
1968
- Returns a value indicating whether this instance is equal to a specified <see cref="MaxiCodeExtendedParameters"/> value.
1969
+ Returns a value indicating whether this instance is equal to a specified MaxiCodeExtendedParameters value.
1969
1970
  @param: obj:An System.Object value to compare to this instance
1970
1971
  @return:<b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
1971
1972
  """
@@ -1973,15 +1974,15 @@ class MaxiCodeExtendedParameters(Assist.BaseJavaClass):
1973
1974
 
1974
1975
  def getHashCode(self):
1975
1976
  """!
1976
- Returns a human-readable string representation of this <see cref="MaxiCodeExtendedParameters"/>.
1977
- @return:A string that represents this <see cref="MaxiCodeExtendedParameters"/>.
1977
+ Returns a human-readable string representation of this MaxiCodeExtendedParameters.
1978
+ @return:A string that represents this MaxiCodeExtendedParameters.
1978
1979
  """
1979
1980
  return self.getJavaClass().getHashCode()
1980
1981
 
1981
1982
  def toString(self):
1982
1983
  """!
1983
- Returns a human-readable string representation of this <see cref="MaxiCodeExtendedParameters"/>.
1984
- @return:A string that represents this <see cref="MaxiCodeExtendedParameters"/>.
1984
+ Returns a human-readable string representation of this MaxiCodeExtendedParameters.
1985
+ @return:A string that represents this MaxiCodeExtendedParameters.
1985
1986
  """
1986
1987
  return self.getJavaClass().toString()
1987
1988
 
@@ -2543,9 +2544,9 @@ class DecodeType(Enum):
2543
2544
  @staticmethod
2544
2545
  def is1D(symbology):
2545
2546
  """!
2546
- Determines if the specified <see cref="BaseDecodeType"/> contains any 1D barcode symbology
2547
+ Determines if the specified BaseDecodeType contains any 1D barcode symbology
2547
2548
  @param: symbology:
2548
- @return: string <b>true</b> if <see cref="BaseDecodeType"/> contains any 1D barcode symbology; otherwise, returns <b>false</b>.
2549
+ @return: string <b>true</b> if BaseDecodeType contains any 1D barcode symbology; otherwise, returns <b>false</b>.
2549
2550
  """
2550
2551
  java_link = jpype.JClass(DecodeType.javaClassName)
2551
2552
  javaClass = java_link()
@@ -2554,9 +2555,9 @@ class DecodeType(Enum):
2554
2555
  @staticmethod
2555
2556
  def isPostal(symbology):
2556
2557
  """!
2557
- Determines if the specified <see cref="BaseDecodeType"/> contains any Postal barcode symbology
2558
- @param: symbology: symbology The <see cref="BaseDecodeType"/> to test
2559
- @return: Returns <b>true</b> if <see cref="BaseDecodeType"/> contains any Postal barcode symbology; otherwise, returns <b>false</b>.
2558
+ Determines if the specified BaseDecodeType contains any Postal barcode symbology
2559
+ @param: symbology: symbology The BaseDecodeType to test
2560
+ @return: Returns <b>true</b> if BaseDecodeType contains any Postal barcode symbology; otherwise, returns <b>false</b>.
2560
2561
  """
2561
2562
  java_link = jpype.JClass(DecodeType.javaClassName)
2562
2563
  javaClass = java_link()
@@ -2565,9 +2566,9 @@ class DecodeType(Enum):
2565
2566
  @staticmethod
2566
2567
  def is2D(symbology):
2567
2568
  """!
2568
- Determines if the specified <see cref="BaseDecodeType"/> contains any 2D barcode symbology
2569
- @param: symbology: symbology The <see cref="BaseDecodeType"/> to test.
2570
- @return: Returns <b>true</b> if <see cref="BaseDecodeType"/> contains any 2D barcode symbology; otherwise, returns <b>false</b>.
2569
+ Determines if the specified BaseDecodeType contains any 2D barcode symbology
2570
+ @param: symbology: symbology The BaseDecodeType to test.
2571
+ @return: Returns <b>true</b> if BaseDecodeType contains any 2D barcode symbology; otherwise, returns <b>false</b>.
2571
2572
  """
2572
2573
  java_link = jpype.JClass(DecodeType.javaClassName)
2573
2574
  javaClass = java_link()
@@ -3,6 +3,6 @@ import os
3
3
  from asposebarcode import Generation, Recognition, Assist
4
4
 
5
5
  __asposebarcode_dir__ = os.path.dirname(__file__)
6
- __barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-24.2.jar"
6
+ __barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-24.3.jar"
7
7
  jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.class.path=%s" % __barcode_jar_path__)
8
8
  __all__ = ['Assist','Recognition','Generation','ComplexBarcode']
@@ -1,7 +1,7 @@
1
1
  from setuptools import setup
2
2
 
3
3
  NAME = "aspose-barcode-for-python-via-java"
4
- VERSION = "24.2.0"
4
+ VERSION = "24.3.0"
5
5
  REQUIRES = ["JPype1==1.4.1"]
6
6
 
7
7
  setup(