Skip to content

Commit 681c5b4

Browse files
author
Kirill Novinskiy
committed
update to 25.7.0
1 parent 278a73b commit 681c5b4

File tree

10 files changed

+307
-12
lines changed

10 files changed

+307
-12
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
3030
## Read PDF Formats
3131
MHT, PCL, PS, XSLFO, MD
3232

33-
## Enhancements in Version 25.6
34-
- Develop Rotate Document Pages method.
33+
## Enhancements in Version 25.7
34+
- Add possibility to hide subject field in signature appearance.
3535
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3636

37+
## Bugs fixed in Version 25.7
38+
- PostDeleteStamps removing stamps from PDF page is incorrect.
39+
3740
## Requirements.
3841
Python 2.7 and 3.4+
3942

asposepdfcloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
from .models.shape_type import ShapeType
124124
from .models.signature import Signature
125125
from .models.signature_custom_appearance import SignatureCustomAppearance
126+
from .models.signature_subject_name_elements import SignatureSubjectNameElements
126127
from .models.signature_type import SignatureType
127128
from .models.sound_encoding import SoundEncoding
128129
from .models.sound_icon import SoundIcon

asposepdfcloud/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, app_key, app_sid, host=None, self_host=False):
8383
self.rest_client = RESTClientObject()
8484
self.default_headers = {}
8585
self.default_headers['x-aspose-client'] = 'python sdk'
86-
self.default_headers['x-aspose-client-version'] = '25.6.0'
86+
self.default_headers['x-aspose-client-version'] = '25.7.0'
8787

8888
self.self_host = self_host
8989
self.app_key = app_key

asposepdfcloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ def to_debug_report(self):
199199
"OS: {env}\n"\
200200
"Python Version: {pyversion}\n"\
201201
"Version of the API: 3.0\n"\
202-
"SDK Package Version: 25.6.0".\
202+
"SDK Package Version: 25.7.0".\
203203
format(env=sys.platform, pyversion=sys.version)

asposepdfcloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
from .shape_type import ShapeType
124124
from .signature import Signature
125125
from .signature_custom_appearance import SignatureCustomAppearance
126+
from .signature_subject_name_elements import SignatureSubjectNameElements
126127
from .signature_type import SignatureType
127128
from .sound_encoding import SoundEncoding
128129
from .sound_icon import SoundIcon

asposepdfcloud/models/signature_custom_appearance.py

Lines changed: 147 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class SignatureCustomAppearance(object):
5050
swagger_types = {
5151
'font_family_name': 'str',
5252
'font_size': 'float',
53+
'rotation': 'Rotation',
5354
'show_contact_info': 'bool',
5455
'show_reason': 'bool',
5556
'show_location': 'bool',
@@ -59,12 +60,17 @@ class SignatureCustomAppearance(object):
5960
'digital_signed_label': 'str',
6061
'date_signed_at_label': 'str',
6162
'date_time_local_format': 'str',
62-
'date_time_format': 'str'
63+
'date_time_format': 'str',
64+
'background_color': 'Color',
65+
'foreground_color': 'Color',
66+
'use_digital_subject_format': 'bool',
67+
'digital_subject_format': 'list[SignatureSubjectNameElements]'
6368
}
6469

6570
attribute_map = {
6671
'font_family_name': 'FontFamilyName',
6772
'font_size': 'FontSize',
73+
'rotation': 'Rotation',
6874
'show_contact_info': 'ShowContactInfo',
6975
'show_reason': 'ShowReason',
7076
'show_location': 'ShowLocation',
@@ -74,16 +80,21 @@ class SignatureCustomAppearance(object):
7480
'digital_signed_label': 'DigitalSignedLabel',
7581
'date_signed_at_label': 'DateSignedAtLabel',
7682
'date_time_local_format': 'DateTimeLocalFormat',
77-
'date_time_format': 'DateTimeFormat'
83+
'date_time_format': 'DateTimeFormat',
84+
'background_color': 'BackgroundColor',
85+
'foreground_color': 'ForegroundColor',
86+
'use_digital_subject_format': 'UseDigitalSubjectFormat',
87+
'digital_subject_format': 'DigitalSubjectFormat'
7888
}
7989

80-
def __init__(self, font_family_name=None, font_size=None, show_contact_info=None, show_reason=None, show_location=None, contact_info_label=None, reason_label=None, location_label=None, digital_signed_label=None, date_signed_at_label=None, date_time_local_format=None, date_time_format=None):
90+
def __init__(self, font_family_name=None, font_size=None, rotation=None, show_contact_info=None, show_reason=None, show_location=None, contact_info_label=None, reason_label=None, location_label=None, digital_signed_label=None, date_signed_at_label=None, date_time_local_format=None, date_time_format=None, background_color=None, foreground_color=None, use_digital_subject_format=None, digital_subject_format=None):
8191
"""
8292
SignatureCustomAppearance - a model defined in Swagger
8393
"""
8494

8595
self._font_family_name = None
8696
self._font_size = None
97+
self._rotation = None
8798
self._show_contact_info = None
8899
self._show_reason = None
89100
self._show_location = None
@@ -94,10 +105,16 @@ def __init__(self, font_family_name=None, font_size=None, show_contact_info=None
94105
self._date_signed_at_label = None
95106
self._date_time_local_format = None
96107
self._date_time_format = None
108+
self._background_color = None
109+
self._foreground_color = None
110+
self._use_digital_subject_format = None
111+
self._digital_subject_format = None
97112

98113
if font_family_name is not None:
99114
self.font_family_name = font_family_name
100-
self.font_size = font_size
115+
if font_size is not None:
116+
self.font_size = font_size
117+
self.rotation = rotation
101118
self.show_contact_info = show_contact_info
102119
self.show_reason = show_reason
103120
self.show_location = show_location
@@ -115,6 +132,13 @@ def __init__(self, font_family_name=None, font_size=None, show_contact_info=None
115132
self.date_time_local_format = date_time_local_format
116133
if date_time_format is not None:
117134
self.date_time_format = date_time_format
135+
if background_color is not None:
136+
self.background_color = background_color
137+
if foreground_color is not None:
138+
self.foreground_color = foreground_color
139+
self.use_digital_subject_format = use_digital_subject_format
140+
if digital_subject_format is not None:
141+
self.digital_subject_format = digital_subject_format
118142

119143
@property
120144
def font_family_name(self):
@@ -159,11 +183,34 @@ def font_size(self, font_size):
159183
:param font_size: The font_size of this SignatureCustomAppearance.
160184
:type: float
161185
"""
162-
if font_size is None:
163-
raise ValueError("Invalid value for `font_size`, must not be `None`")
164186

165187
self._font_size = font_size
166188

189+
@property
190+
def rotation(self):
191+
"""
192+
Gets the rotation of this SignatureCustomAppearance.
193+
Gets or sets signature rotation.
194+
195+
:return: The rotation of this SignatureCustomAppearance.
196+
:rtype: Rotation
197+
"""
198+
return self._rotation
199+
200+
@rotation.setter
201+
def rotation(self, rotation):
202+
"""
203+
Sets the rotation of this SignatureCustomAppearance.
204+
Gets or sets signature rotation.
205+
206+
:param rotation: The rotation of this SignatureCustomAppearance.
207+
:type: Rotation
208+
"""
209+
if rotation is None:
210+
raise ValueError("Invalid value for `rotation`, must not be `None`")
211+
212+
self._rotation = rotation
213+
167214
@property
168215
def show_contact_info(self):
169216
"""
@@ -400,6 +447,100 @@ def date_time_format(self, date_time_format):
400447

401448
self._date_time_format = date_time_format
402449

450+
@property
451+
def background_color(self):
452+
"""
453+
Gets the background_color of this SignatureCustomAppearance.
454+
Gets/sets background color.
455+
456+
:return: The background_color of this SignatureCustomAppearance.
457+
:rtype: Color
458+
"""
459+
return self._background_color
460+
461+
@background_color.setter
462+
def background_color(self, background_color):
463+
"""
464+
Sets the background_color of this SignatureCustomAppearance.
465+
Gets/sets background color.
466+
467+
:param background_color: The background_color of this SignatureCustomAppearance.
468+
:type: Color
469+
"""
470+
471+
self._background_color = background_color
472+
473+
@property
474+
def foreground_color(self):
475+
"""
476+
Gets the foreground_color of this SignatureCustomAppearance.
477+
Gets/sets foreground color.
478+
479+
:return: The foreground_color of this SignatureCustomAppearance.
480+
:rtype: Color
481+
"""
482+
return self._foreground_color
483+
484+
@foreground_color.setter
485+
def foreground_color(self, foreground_color):
486+
"""
487+
Sets the foreground_color of this SignatureCustomAppearance.
488+
Gets/sets foreground color.
489+
490+
:param foreground_color: The foreground_color of this SignatureCustomAppearance.
491+
:type: Color
492+
"""
493+
494+
self._foreground_color = foreground_color
495+
496+
@property
497+
def use_digital_subject_format(self):
498+
"""
499+
Gets the use_digital_subject_format of this SignatureCustomAppearance.
500+
Gets/sets subject format usage.
501+
502+
:return: The use_digital_subject_format of this SignatureCustomAppearance.
503+
:rtype: bool
504+
"""
505+
return self._use_digital_subject_format
506+
507+
@use_digital_subject_format.setter
508+
def use_digital_subject_format(self, use_digital_subject_format):
509+
"""
510+
Sets the use_digital_subject_format of this SignatureCustomAppearance.
511+
Gets/sets subject format usage.
512+
513+
:param use_digital_subject_format: The use_digital_subject_format of this SignatureCustomAppearance.
514+
:type: bool
515+
"""
516+
if use_digital_subject_format is None:
517+
raise ValueError("Invalid value for `use_digital_subject_format`, must not be `None`")
518+
519+
self._use_digital_subject_format = use_digital_subject_format
520+
521+
@property
522+
def digital_subject_format(self):
523+
"""
524+
Gets the digital_subject_format of this SignatureCustomAppearance.
525+
Gets/sets subject format.
526+
527+
:return: The digital_subject_format of this SignatureCustomAppearance.
528+
:rtype: list[SignatureSubjectNameElements]
529+
"""
530+
return self._digital_subject_format
531+
532+
@digital_subject_format.setter
533+
def digital_subject_format(self, digital_subject_format):
534+
"""
535+
Sets the digital_subject_format of this SignatureCustomAppearance.
536+
Gets/sets subject format.
537+
538+
:param digital_subject_format: The digital_subject_format of this SignatureCustomAppearance.
539+
:type: list[SignatureSubjectNameElements]
540+
"""
541+
542+
self._digital_subject_format = digital_subject_format
543+
403544
def to_dict(self):
404545
"""
405546
Returns the model properties as a dict
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# coding: utf-8
2+
3+
"""
4+
Aspose.PDF Cloud API Reference
5+
6+
7+
Copyright (c) 2025 Aspose.PDF Cloud
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
25+
26+
OpenAPI spec version: 3.0
27+
28+
"""
29+
30+
31+
from pprint import pformat
32+
from six import iteritems
33+
import re
34+
35+
36+
class SignatureSubjectNameElements(object):
37+
"""
38+
NOTE: This class is auto generated by the swagger code generator program.
39+
Do not edit the class manually.
40+
"""
41+
42+
"""
43+
allowed enum values
44+
"""
45+
CN = "CN"
46+
O = "O"
47+
L = "L"
48+
OU = "OU"
49+
S = "S"
50+
C = "C"
51+
E = "E"
52+
53+
"""
54+
Attributes:
55+
swagger_types (dict): The key is attribute name
56+
and the value is attribute type.
57+
attribute_map (dict): The key is attribute name
58+
and the value is json key in definition.
59+
"""
60+
swagger_types = {
61+
62+
}
63+
64+
attribute_map = {
65+
66+
}
67+
68+
def __init__(self):
69+
"""
70+
SignatureSubjectNameElements - a model defined in Swagger
71+
"""
72+
73+
74+
75+
def to_dict(self):
76+
"""
77+
Returns the model properties as a dict
78+
"""
79+
result = {}
80+
81+
for attr, _ in iteritems(self.swagger_types):
82+
value = getattr(self, attr)
83+
if isinstance(value, list):
84+
result[attr] = list(map(
85+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86+
value
87+
))
88+
elif hasattr(value, "to_dict"):
89+
result[attr] = value.to_dict()
90+
elif isinstance(value, dict):
91+
result[attr] = dict(map(
92+
lambda item: (item[0], item[1].to_dict())
93+
if hasattr(item[1], "to_dict") else item,
94+
value.items()
95+
))
96+
else:
97+
result[attr] = value
98+
99+
return result
100+
101+
def to_str(self):
102+
"""
103+
Returns the string representation of the model
104+
"""
105+
return pformat(self.to_dict())
106+
107+
def __repr__(self):
108+
"""
109+
For `print` and `pprint`
110+
"""
111+
return self.to_str()
112+
113+
def __eq__(self, other):
114+
"""
115+
Returns true if both objects are equal
116+
"""
117+
if not isinstance(other, SignatureSubjectNameElements):
118+
return False
119+
120+
return self.__dict__ == other.__dict__
121+
122+
def __ne__(self, other):
123+
"""
124+
Returns true if both objects are not equal
125+
"""
126+
return not self == other

0 commit comments

Comments
 (0)