aspose-barcode-for-python-via-java 25.6.0__tar.gz → 25.8.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.6.0 → aspose-barcode-for-python-via-java-25.8.0}/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +1 -1
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/asposebarcode/Generation.py +55 -10
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/asposebarcode/Recognition.py +19 -5
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/asposebarcode/__init__.py +1 -1
- aspose-barcode-for-python-via-java-25.6.0/asposebarcode/jlib/aspose-barcode-python-25.6.jar → aspose-barcode-for-python-via-java-25.8.0/asposebarcode/jlib/aspose-barcode-python-25.8.jar +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/setup.py +1 -1
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/MANIFEST.in +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/README.md +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/asposebarcode/Assist.py +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/asposebarcode/ComplexBarcode.py +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/license/End+User+License+Agreement.html +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
- {aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.0}/setup.cfg +0 -0
{aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.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.8.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.8.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.8.jar
|
|
15
15
|
license/End+User+License+Agreement.html
|
|
16
16
|
license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf
|
|
@@ -87,16 +87,47 @@ class BarcodeGenerator(Assist.BaseJavaClass):
|
|
|
87
87
|
|
|
88
88
|
def setCodeText(self, codeText: Union[str, bytes], encoding: Optional[str], BoM: Optional[bool]) -> None:
|
|
89
89
|
"""
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
<p>
|
|
91
|
+
<p>
|
|
92
|
+
Encodes the Unicode {@code <b>codeText</b>} into a byte sequence using the specified {@code <b>encoding</b>}.
|
|
93
|
+
UTF-8 is the most commonly used encoding.
|
|
94
|
+
If the encoding supports it and {@code <b>insertBOM</b>} is set to {@code true}, the function includes a
|
|
95
|
+
{@code <a href="https://en.wikipedia.org/wiki/Byte_order_mark#Byte-order_marks_by_encoding">byte order mark (BOM)</a>}.
|
|
96
|
+
</p>
|
|
97
|
+
<p>
|
|
98
|
+
This function is intended for use with 2D barcodes only (e.g., Aztec, QR, DataMatrix, PDF417, MaxiCode, DotCode, HanXin, RectMicroQR, etc.).
|
|
99
|
+
It enables manual encoding of Unicode text using national or special encodings; however, this method is considered obsolete in modern applications.
|
|
100
|
+
For modern use cases, {@code <a href="https://en.wikipedia.org/wiki/Extended_Channel_Interpretation">ECI</a>} encoding is recommended for Unicode data.
|
|
101
|
+
</p>
|
|
102
|
+
<p>
|
|
103
|
+
Using this function with 1D barcodes, GS1-compliant barcodes (including 2D), or HIBC barcodes (including 2D) is not supported by the corresponding barcode standards and may lead to unpredictable results.
|
|
104
|
+
</p>
|
|
105
|
+
</p><p><hr><blockquote><pre>
|
|
106
|
+
<p>This example shows how to use {@code SetCodeText} with or without a BOM for 2D barcodes.</p>
|
|
107
|
+
<pre>
|
|
108
|
+
# Encode codetext using UTF-8 with BOM
|
|
109
|
+
gen = BarcodeGenerator(EncodeTypes.QR, None)
|
|
110
|
+
gen.setCodeText("車種名", "UTF-8", True)
|
|
111
|
+
gen.save("barcode.png", BarCodeImageFormat.PNG)
|
|
112
|
+
reader = new BarCodeReader("barcode.png", None, DecodeType.QR)
|
|
113
|
+
for result in reader.readBarCodes():
|
|
114
|
+
print("BarCode CodeText: " + result.getCodeText())
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
# Encode codetext using UTF-8 without BOM
|
|
118
|
+
gen = new BarcodeGenerator(EncodeTypes.QR, None)
|
|
119
|
+
gen.setCodeText("車種名", "UTF-8", false)
|
|
120
|
+
gen.save("barcode.png", BarCodeImageFormat.PNG)
|
|
121
|
+
reader = new BarCodeReader("barcode.png", None, DecodeType.QR)
|
|
122
|
+
for result in reader.readBarCodes():
|
|
123
|
+
print("BarCode CodeText: " + result.getCodeText())
|
|
124
|
+
</pre>
|
|
125
|
+
</pre></blockquote></hr></p>
|
|
126
|
+
@param codeText CodeText string
|
|
127
|
+
@param encoding Applied encoding
|
|
128
|
+
@param insertBOM
|
|
129
|
+
Indicates whether to insert a byte order mark (BOM) when the specified encoding supports it (e.g., UTF-8, UTF-16, UTF-32).
|
|
130
|
+
If set to {@code true}, the BOM is added; if {@code false}, the BOM is omitted even if the encoding normally uses one.
|
|
100
131
|
"""
|
|
101
132
|
if isinstance(codeText, bytes):
|
|
102
133
|
base64_bytes = base64.b64encode(codeText)
|
|
@@ -3900,6 +3931,20 @@ class PdfParameters(Assist.BaseJavaClass):
|
|
|
3900
3931
|
formatted = None if value is None else value.formatCMYK()
|
|
3901
3932
|
self.getJavaClass().setCMYKCaptionBelowColor(formatted)
|
|
3902
3933
|
|
|
3934
|
+
def isTextAsPath(self) -> bool:
|
|
3935
|
+
"""
|
|
3936
|
+
Are paths used instead of text (use if Unicode characters are not displayed)
|
|
3937
|
+
Default value: false.
|
|
3938
|
+
"""
|
|
3939
|
+
return self.getJavaClass().isTextAsPath()
|
|
3940
|
+
|
|
3941
|
+
def setTextAsPath(self, value : bool) -> None:
|
|
3942
|
+
"""
|
|
3943
|
+
Are paths used instead of text (use if Unicode characters are not displayed)
|
|
3944
|
+
Default value: false.
|
|
3945
|
+
"""
|
|
3946
|
+
self.getJavaClass().setTextAsPathSync(value)
|
|
3947
|
+
|
|
3903
3948
|
class CMYKColor:
|
|
3904
3949
|
"""
|
|
3905
3950
|
Class for CMYK color. None means CMYK is not used, default RGB color is in use.
|
|
@@ -990,12 +990,26 @@ class BarCodeResult(Assist.BaseJavaClass):
|
|
|
990
990
|
"""
|
|
991
991
|
return BarCodeConfidence(str(self.getJavaClass().getConfidence()))
|
|
992
992
|
|
|
993
|
-
def getCodeText(self) -> str:
|
|
994
|
-
"""!
|
|
995
|
-
|
|
996
|
-
|
|
993
|
+
def getCodeText(self, encoding: Optional[str]) -> str:
|
|
994
|
+
"""!
|
|
995
|
+
<p>
|
|
996
|
+
Gets the code text with encoding.
|
|
997
|
+
</p><p><hr><blockquote><pre>
|
|
998
|
+
<p>This example shows how to use {@code GetCodeText}:</p>
|
|
999
|
+
<pre>
|
|
1000
|
+
gen = BarcodeGenerator(EncodeTypes.DATA_MATRIX, None);
|
|
1001
|
+
gen.setCodeText("車種名", "932");
|
|
1002
|
+
gen.save("barcode.png", BarCodeImageFormat.PNG);
|
|
1003
|
+
|
|
1004
|
+
reader = BarCodeReader("barcode.png", None, DecodeType.DATA_MATRIX);
|
|
1005
|
+
for result in reader.readBarCodes():
|
|
1006
|
+
console.log("BarCode CodeText: " + result.getCodeText("932"))
|
|
1007
|
+
</pre>
|
|
1008
|
+
</pre></blockquote></hr></p>
|
|
1009
|
+
@return A string containing recognized code text.
|
|
1010
|
+
@param encoding The encoding for codetext.
|
|
997
1011
|
"""
|
|
998
|
-
value = self.getJavaClass().getCodeText()
|
|
1012
|
+
value = self.getJavaClass().getCodeText(encoding)
|
|
999
1013
|
return str(value) if value is not None else None
|
|
1000
1014
|
|
|
1001
1015
|
def getCodeBytes(self) -> List[str]:
|
|
@@ -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.8.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.6.0 → aspose-barcode-for-python-via-java-25.8.0}/MANIFEST.in
RENAMED
|
File without changes
|
{aspose-barcode-for-python-via-java-25.6.0 → aspose-barcode-for-python-via-java-25.8.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.6.0 → aspose-barcode-for-python-via-java-25.8.0}/setup.cfg
RENAMED
|
File without changes
|