aspose-barcode-for-python-via-java 25.1.0__tar.gz → 25.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.
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +1 -1
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/asposebarcode/Generation.py +9 -5
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/asposebarcode/Recognition.py +1 -1
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/asposebarcode/__init__.py +1 -1
- aspose-barcode-for-python-via-java-25.1.0/asposebarcode/jlib/aspose-barcode-python-25.1.jar → aspose-barcode-for-python-via-java-25.3.0/asposebarcode/jlib/aspose-barcode-python-25.3.jar +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/setup.py +1 -1
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/MANIFEST.in +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/README.md +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/asposebarcode/Assist.py +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/asposebarcode/ComplexBarcode.py +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/license/End+User+License+Agreement.html +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
- {aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/setup.cfg +0 -0
{aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aspose-barcode-for-python-via-java
|
|
3
|
-
Version: 25.
|
|
3
|
+
Version: 25.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: 25.
|
|
3
|
+
Version: 25.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-25.
|
|
14
|
+
asposebarcode/jlib/aspose-barcode-python-25.3.jar
|
|
15
15
|
license/End+User+License+Agreement.html
|
|
16
16
|
license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf
|
|
@@ -85,21 +85,25 @@ class BarcodeGenerator(Assist.BaseJavaClass):
|
|
|
85
85
|
value = self.getJavaClass().getCodeText()
|
|
86
86
|
return str(value) if value is not None else None
|
|
87
87
|
|
|
88
|
-
def setCodeText(self,
|
|
88
|
+
def setCodeText(self, codeText: Union[str, bytes], encoding: Optional[str], BoM: Optional[bool]) -> None:
|
|
89
89
|
"""
|
|
90
90
|
Encodes codetext with a byte order mark (BOM) using the specified encoding.
|
|
91
|
-
@param
|
|
91
|
+
@param codeText: The CodeText string or bytes.
|
|
92
92
|
If a bytes object is provided, it will be encoded to Base64.
|
|
93
93
|
@param encoding: The encoding to apply when processing the string value.
|
|
94
94
|
|
|
95
|
+
@param BoM: flag indicates insertion of the Encoding byte order mark (BOM). In case, the Encoding requires byte order mark (BOM) insertion: like UTF8,
|
|
96
|
+
UTF16, UTF32, e.t.c. and flag is set to true, the BOM is added, in case of setting flag to false, the BOM insertion is ignored.
|
|
97
|
+
|
|
95
98
|
If 'value' is a bytes object, it is encoded using Base64.
|
|
96
99
|
If 'value' is a string, it's passed to 'setCodeText' of the Java class along with the specified encoding.
|
|
97
100
|
"""
|
|
98
|
-
if isinstance(
|
|
99
|
-
base64_bytes = base64.b64encode(
|
|
101
|
+
if isinstance(codeText, bytes):
|
|
102
|
+
base64_bytes = base64.b64encode(codeText)
|
|
100
103
|
self.getJavaClass().setCodeBytes(base64_bytes)
|
|
101
104
|
else:
|
|
102
|
-
|
|
105
|
+
adaptedBoMStr = None if BoM is None else str(BoM)
|
|
106
|
+
self.getJavaClass().setCodeText(codeText, encoding, adaptedBoMStr)
|
|
103
107
|
|
|
104
108
|
def generateBarCodeImage(self) -> Image:
|
|
105
109
|
"""! Generate the barcode image under current settings.
|
|
@@ -106,7 +106,7 @@ class BarCodeReader(Assist.BaseJavaClass):
|
|
|
106
106
|
else:
|
|
107
107
|
image = Image.open(image)
|
|
108
108
|
buffered = BytesIO()
|
|
109
|
-
image.save(buffered, format=
|
|
109
|
+
image.save(buffered, format=image.format)
|
|
110
110
|
return base64.b64encode(buffered.getvalue())
|
|
111
111
|
|
|
112
112
|
def containsAny(self, decodeTypes: Union[List[DecodeType], DecodeType]) -> bool:
|
|
@@ -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-25.
|
|
6
|
+
__barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-25.3.jar"
|
|
7
7
|
jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.class.path=%s" % __barcode_jar_path__)
|
|
8
8
|
__all__ = ['Assist','Recognition','Generation','ComplexBarcode']
|
{aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/MANIFEST.in
RENAMED
|
File without changes
|
{aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aspose-barcode-for-python-via-java-25.1.0 → aspose-barcode-for-python-via-java-25.3.0}/setup.cfg
RENAMED
|
File without changes
|