aspose-barcode-for-python-via-java 25.3.0__tar.gz → 25.5.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.3.0 → aspose-barcode-for-python-via-java-25.5.0}/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +1 -1
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/asposebarcode/Generation.py +108 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/asposebarcode/__init__.py +1 -1
- aspose-barcode-for-python-via-java-25.3.0/asposebarcode/jlib/aspose-barcode-python-25.3.jar → aspose-barcode-for-python-via-java-25.5.0/asposebarcode/jlib/aspose-barcode-python-25.5.jar +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/setup.py +1 -1
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/MANIFEST.in +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/README.md +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/asposebarcode/Assist.py +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/asposebarcode/ComplexBarcode.py +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/asposebarcode/Recognition.py +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/license/End+User+License+Agreement.html +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
- {aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/setup.cfg +0 -0
{aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.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.5.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.5.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.5.jar
|
|
15
15
|
license/End+User+License+Agreement.html
|
|
16
16
|
license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf
|
|
@@ -3680,10 +3680,12 @@ class ImageParameters(Assist.BaseJavaClass):
|
|
|
3680
3680
|
|
|
3681
3681
|
def __init__(self, javaClass) -> None:
|
|
3682
3682
|
self.svg: Optional[SvgParameters] = None
|
|
3683
|
+
self.pdf: Optional[PdfParameters] = None
|
|
3683
3684
|
super().__init__(javaClass)
|
|
3684
3685
|
|
|
3685
3686
|
def init(self) -> None:
|
|
3686
3687
|
self.svg = SvgParameters(self.getJavaClass().getSvg())
|
|
3688
|
+
self.pdf = PdfParameters(self.getJavaClass().getPdf())
|
|
3687
3689
|
|
|
3688
3690
|
def getSvg(self) -> Optional[SvgParameters]:
|
|
3689
3691
|
"""!
|
|
@@ -3697,7 +3699,19 @@ class ImageParameters(Assist.BaseJavaClass):
|
|
|
3697
3699
|
"""
|
|
3698
3700
|
self.svg = svg
|
|
3699
3701
|
self.getJavaClass().setSvg(svg.getJavaClass())
|
|
3702
|
+
def getPdf(self) -> PdfParameters:
|
|
3703
|
+
"""
|
|
3704
|
+
PDF parameters
|
|
3705
|
+
"""
|
|
3706
|
+
return self.pdf
|
|
3700
3707
|
|
|
3708
|
+
def setPdf(self, value: PdfParameters) -> None:
|
|
3709
|
+
"""
|
|
3710
|
+
PDF parameters
|
|
3711
|
+
"""
|
|
3712
|
+
self.pdf = value
|
|
3713
|
+
# propagate the change to the underlying Java object
|
|
3714
|
+
self.getJavaClass().setPdf(value.getJavaClass())
|
|
3701
3715
|
|
|
3702
3716
|
class SvgParameters(Assist.BaseJavaClass):
|
|
3703
3717
|
"""!
|
|
@@ -3834,6 +3848,100 @@ class HslaColor:
|
|
|
3834
3848
|
return p + (q - p) * (2.0 / 3.0 - t) * 6.0
|
|
3835
3849
|
return p
|
|
3836
3850
|
|
|
3851
|
+
class PdfParameters(Assist.BaseJavaClass):
|
|
3852
|
+
"""
|
|
3853
|
+
PDF parameters.
|
|
3854
|
+
Nullable CMYK color values; None means CMYK is not used and RGB is used instead.
|
|
3855
|
+
"""
|
|
3856
|
+
|
|
3857
|
+
def __init__(self, javaClass) -> None:
|
|
3858
|
+
super().__init__(javaClass)
|
|
3859
|
+
|
|
3860
|
+
def init(self) -> None:
|
|
3861
|
+
pass
|
|
3862
|
+
|
|
3863
|
+
def getCMYKBarColor(self) -> Optional[CMYKColor]:
|
|
3864
|
+
raw = self.getJavaClass().getCMYKBarColor()
|
|
3865
|
+
return None if raw is None else CMYKColor.parseCMYK(raw)
|
|
3866
|
+
|
|
3867
|
+
def setCMYKBarColor(self, value: Optional[CMYKColor]) -> None:
|
|
3868
|
+
formatted = None if value is None else value.formatCMYK()
|
|
3869
|
+
self.getJavaClass().setCMYKBarColor(formatted)
|
|
3870
|
+
|
|
3871
|
+
def getCMYKBackColor(self) -> Optional[CMYKColor]:
|
|
3872
|
+
raw = self.getJavaClass().getCMYKBackColor()
|
|
3873
|
+
return None if raw is None else CMYKColor.parseCMYK(raw)
|
|
3874
|
+
|
|
3875
|
+
def setCMYKBackColor(self, value: Optional[CMYKColor]) -> None:
|
|
3876
|
+
formatted = None if value is None else value.formatCMYK()
|
|
3877
|
+
self.getJavaClass().setCMYKBackColor(formatted)
|
|
3878
|
+
|
|
3879
|
+
def getCMYKCodetextColor(self) -> Optional[CMYKColor]:
|
|
3880
|
+
raw = self.getJavaClass().getCMYKCodetextColor()
|
|
3881
|
+
return None if raw is None else CMYKColor.parseCMYK(raw)
|
|
3882
|
+
|
|
3883
|
+
def setCMYKCodetextColor(self, value: Optional[CMYKColor]) -> None:
|
|
3884
|
+
formatted = None if value is None else value.formatCMYK()
|
|
3885
|
+
self.getJavaClass().setCMYKCodetextColor(formatted)
|
|
3886
|
+
|
|
3887
|
+
def getCMYKCaptionAboveColor(self) -> Optional[CMYKColor]:
|
|
3888
|
+
raw = self.getJavaClass().getCMYKCaptionAboveColor()
|
|
3889
|
+
return None if raw is None else CMYKColor.parseCMYK(raw)
|
|
3890
|
+
|
|
3891
|
+
def setCMYKCaptionAboveColor(self, value: Optional[CMYKColor]) -> None:
|
|
3892
|
+
formatted = None if value is None else value.formatCMYK()
|
|
3893
|
+
self.getJavaClass().setCMYKCaptionAboveColor(formatted)
|
|
3894
|
+
|
|
3895
|
+
def getCMYKCaptionBelowColor(self) -> Optional[CMYKColor]:
|
|
3896
|
+
raw = self.getJavaClass().getCMYKCaptionBelowColor()
|
|
3897
|
+
return None if raw is None else CMYKColor.parseCMYK(raw)
|
|
3898
|
+
|
|
3899
|
+
def setCMYKCaptionBelowColor(self, value: Optional[CMYKColor]) -> None:
|
|
3900
|
+
formatted = None if value is None else value.formatCMYK()
|
|
3901
|
+
self.getJavaClass().setCMYKCaptionBelowColor(formatted)
|
|
3902
|
+
|
|
3903
|
+
class CMYKColor:
|
|
3904
|
+
"""
|
|
3905
|
+
Class for CMYK color. None means CMYK is not used, default RGB color is in use.
|
|
3906
|
+
|
|
3907
|
+
CMYK values are 0–100 on input; stored internally as 0.0–1.0 floats.
|
|
3908
|
+
"""
|
|
3909
|
+
|
|
3910
|
+
def __init__(self, c: float, m: float, y: float, k: float):
|
|
3911
|
+
# clamp inputs to [0, 100]
|
|
3912
|
+
c = max(0, min(100, c))
|
|
3913
|
+
m = max(0, min(100, m))
|
|
3914
|
+
y = max(0, min(100, y))
|
|
3915
|
+
k = max(0, min(100, k))
|
|
3916
|
+
|
|
3917
|
+
# store as 0.0–1.0
|
|
3918
|
+
self.C = c / 100.0
|
|
3919
|
+
self.M = m / 100.0
|
|
3920
|
+
self.Y = y / 100.0
|
|
3921
|
+
self.K = k / 100.0
|
|
3922
|
+
|
|
3923
|
+
@staticmethod
|
|
3924
|
+
def parseCMYK(s: str) -> "CMYKColor":
|
|
3925
|
+
parts = s.split("_")
|
|
3926
|
+
if len(parts) != 4:
|
|
3927
|
+
raise ValueError(f"Invalid CMYK string: expected 4 parts but got {len(parts)}")
|
|
3928
|
+
|
|
3929
|
+
try:
|
|
3930
|
+
c, m, y, k = map(float, parts)
|
|
3931
|
+
except ValueError as e:
|
|
3932
|
+
raise ValueError(f"Invalid number in CMYK string: {e}")
|
|
3933
|
+
|
|
3934
|
+
# pass percentages into constructor (it will clamp and scale)
|
|
3935
|
+
return CMYKColor(c, m, y, k)
|
|
3936
|
+
|
|
3937
|
+
def formatCMYK(self) -> str:
|
|
3938
|
+
return f"{int(self.C * 100)}_{int(self.M * 100)}_{int(self.Y * 100)}_{int(self.K * 100)}"
|
|
3939
|
+
|
|
3940
|
+
def __repr__(self) -> str:
|
|
3941
|
+
return (f"CMYKColor(C={int(self.C * 100)}, "
|
|
3942
|
+
f"M={int(self.M * 100)}, "
|
|
3943
|
+
f"Y={int(self.Y * 100)}, "
|
|
3944
|
+
f"K={int(self.K * 100)})")
|
|
3837
3945
|
|
|
3838
3946
|
class MacroCharacter(Enum):
|
|
3839
3947
|
"""!
|
|
@@ -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.5.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.3.0 → aspose-barcode-for-python-via-java-25.5.0}/MANIFEST.in
RENAMED
|
File without changes
|
{aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.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
|
|
File without changes
|
{aspose-barcode-for-python-via-java-25.3.0 → aspose-barcode-for-python-via-java-25.5.0}/setup.cfg
RENAMED
|
File without changes
|