Skip to content

Commit 825d963

Browse files
committed
Update to v20.9
1 parent cc4e198 commit 825d963

File tree

11 files changed

+54
-15
lines changed

11 files changed

+54
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Aspose.PDF Cloud
22
- API version: 3.0
3-
- Package version: 20.8.0
3+
- Package version: 20.9.0
44

55
[Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Pdf documents in the cloud.
66

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):
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'] = '20.8.0'
86+
self.default_headers['x-aspose-client-version'] = '20.9.0'
8787

8888
self.app_key = app_key
8989
self.app_sid = app_sid

asposepdfcloud/apis/pdf_api.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27180,6 +27180,7 @@ def post_page_redaction_annotations(self, name, page_number, annotations, **kwar
2718027180
:param list[RedactionAnnotation] annotations: The array of annotation. (required)
2718127181
:param str storage: The document storage.
2718227182
:param str folder: The document folder.
27183+
:param bool apply: Apply redaction immediately after adding.
2718327184
:return: AsposeResponse
2718427185
If the method is called asynchronously,
2718527186
returns the request thread.
@@ -27209,12 +27210,13 @@ def post_page_redaction_annotations_with_http_info(self, name, page_number, anno
2720927210
:param list[RedactionAnnotation] annotations: The array of annotation. (required)
2721027211
:param str storage: The document storage.
2721127212
:param str folder: The document folder.
27213+
:param bool apply: Apply redaction immediately after adding.
2721227214
:return: AsposeResponse
2721327215
If the method is called asynchronously,
2721427216
returns the request thread.
2721527217
"""
2721627218

27217-
all_params = ['name', 'page_number', 'annotations', 'storage', 'folder']
27219+
all_params = ['name', 'page_number', 'annotations', 'storage', 'folder', 'apply']
2721827220
all_params.append('callback')
2721927221
all_params.append('_return_http_data_only')
2722027222
all_params.append('_preload_content')
@@ -27253,6 +27255,8 @@ def post_page_redaction_annotations_with_http_info(self, name, page_number, anno
2725327255
query_params.append(('storage', params['storage']))
2725427256
if 'folder' in params:
2725527257
query_params.append(('folder', params['folder']))
27258+
if 'apply' in params:
27259+
query_params.append(('apply', params['apply']))
2725627260

2725727261
header_params = {}
2725827262

@@ -40708,6 +40712,7 @@ def put_redaction_annotation(self, name, annotation_id, annotation, **kwargs):
4070840712
:param RedactionAnnotation annotation: Annotation. (required)
4070940713
:param str storage: The document storage.
4071040714
:param str folder: The document folder.
40715+
:param bool apply: Apply redaction immediately after adding.
4071140716
:return: RedactionAnnotationResponse
4071240717
If the method is called asynchronously,
4071340718
returns the request thread.
@@ -40737,12 +40742,13 @@ def put_redaction_annotation_with_http_info(self, name, annotation_id, annotatio
4073740742
:param RedactionAnnotation annotation: Annotation. (required)
4073840743
:param str storage: The document storage.
4073940744
:param str folder: The document folder.
40745+
:param bool apply: Apply redaction immediately after adding.
4074040746
:return: RedactionAnnotationResponse
4074140747
If the method is called asynchronously,
4074240748
returns the request thread.
4074340749
"""
4074440750

40745-
all_params = ['name', 'annotation_id', 'annotation', 'storage', 'folder']
40751+
all_params = ['name', 'annotation_id', 'annotation', 'storage', 'folder', 'apply']
4074640752
all_params.append('callback')
4074740753
all_params.append('_return_http_data_only')
4074840754
all_params.append('_preload_content')
@@ -40781,6 +40787,8 @@ def put_redaction_annotation_with_http_info(self, name, annotation_id, annotatio
4078140787
query_params.append(('storage', params['storage']))
4078240788
if 'folder' in params:
4078340789
query_params.append(('folder', params['folder']))
40790+
if 'apply' in params:
40791+
query_params.append(('apply', params['apply']))
4078440792

4078540793
header_params = {}
4078640794

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: 20.8.0".\
202+
"SDK Package Version: 20.9.0".\
203203
format(env=sys.platform, pyversion=sys.version)

asposepdfcloud/models/redaction_annotation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def overlay_text(self, overlay_text):
523523
def repeat(self):
524524
"""
525525
Gets the repeat of this RedactionAnnotation.
526-
If true overlay text will be repated on the annotation.
526+
If true overlay text will be repeated on the annotation.
527527
528528
:return: The repeat of this RedactionAnnotation.
529529
:rtype: bool
@@ -534,7 +534,7 @@ def repeat(self):
534534
def repeat(self, repeat):
535535
"""
536536
Sets the repeat of this RedactionAnnotation.
537-
If true overlay text will be repated on the annotation.
537+
If true overlay text will be repeated on the annotation.
538538
539539
:param repeat: The repeat of this RedactionAnnotation.
540540
:type: bool

asposepdfcloud/models/text_style.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,19 @@ class TextStyle(object):
5151
'font_size': 'float',
5252
'font': 'str',
5353
'foreground_color': 'Color',
54-
'background_color': 'Color'
54+
'background_color': 'Color',
55+
'font_file': 'str'
5556
}
5657

5758
attribute_map = {
5859
'font_size': 'FontSize',
5960
'font': 'Font',
6061
'foreground_color': 'ForegroundColor',
61-
'background_color': 'BackgroundColor'
62+
'background_color': 'BackgroundColor',
63+
'font_file': 'FontFile'
6264
}
6365

64-
def __init__(self, font_size=None, font=None, foreground_color=None, background_color=None):
66+
def __init__(self, font_size=None, font=None, foreground_color=None, background_color=None, font_file=None):
6567
"""
6668
TextStyle - a model defined in Swagger
6769
"""
@@ -70,6 +72,7 @@ def __init__(self, font_size=None, font=None, foreground_color=None, background_
7072
self._font = None
7173
self._foreground_color = None
7274
self._background_color = None
75+
self._font_file = None
7376

7477
self.font_size = font_size
7578
if font is not None:
@@ -78,6 +81,8 @@ def __init__(self, font_size=None, font=None, foreground_color=None, background_
7881
self.foreground_color = foreground_color
7982
if background_color is not None:
8083
self.background_color = background_color
84+
if font_file is not None:
85+
self.font_file = font_file
8186

8287
@property
8388
def font_size(self):
@@ -173,6 +178,29 @@ def background_color(self, background_color):
173178

174179
self._background_color = background_color
175180

181+
@property
182+
def font_file(self):
183+
"""
184+
Gets the font_file of this TextStyle.
185+
Sets path of font file in storage.
186+
187+
:return: The font_file of this TextStyle.
188+
:rtype: str
189+
"""
190+
return self._font_file
191+
192+
@font_file.setter
193+
def font_file(self, font_file):
194+
"""
195+
Sets the font_file of this TextStyle.
196+
Sets path of font file in storage.
197+
198+
:param font_file: The font_file of this TextStyle.
199+
:type: str
200+
"""
201+
202+
self._font_file = font_file
203+
176204
def to_dict(self):
177205
"""
178206
Returns the model properties as a dict

docs/PdfApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6107,7 +6107,7 @@ Name | Type | Description | Notes
61076107
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
61086108

61096109
# **post_page_redaction_annotations**
6110-
> AsposeResponse post_page_redaction_annotations(name, page_number, annotations, storage=storage, folder=folder)
6110+
> AsposeResponse post_page_redaction_annotations(name, page_number, annotations, storage=storage, folder=folder, apply=apply)
61116111
61126112
Add document page redaction annotations.
61136113

@@ -6120,6 +6120,7 @@ Name | Type | Description | Notes
61206120
**annotations** | [**list[RedactionAnnotation]**](RedactionAnnotation.md)| The array of annotation. |
61216121
**storage** | **str**| The document storage. | [optional]
61226122
**folder** | **str**| The document folder. | [optional]
6123+
**apply** | **bool**| Apply redaction immediately after adding. | [optional] [default to false]
61236124

61246125
### Return type
61256126

@@ -8965,7 +8966,7 @@ Name | Type | Description | Notes
89658966
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
89668967

89678968
# **put_redaction_annotation**
8968-
> RedactionAnnotationResponse put_redaction_annotation(name, annotation_id, annotation, storage=storage, folder=folder)
8969+
> RedactionAnnotationResponse put_redaction_annotation(name, annotation_id, annotation, storage=storage, folder=folder, apply=apply)
89698970
89708971
Replace document redaction annotation
89718972

@@ -8978,6 +8979,7 @@ Name | Type | Description | Notes
89788979
**annotation** | [**RedactionAnnotation**](RedactionAnnotation.md)| Annotation. |
89798980
**storage** | **str**| The document storage. | [optional]
89808981
**folder** | **str**| The document folder. | [optional]
8982+
**apply** | **bool**| Apply redaction immediately after adding. | [optional] [default to false]
89818983

89828984
### Return type
89838985

docs/RedactionAnnotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**fill_color** | [**Color**](Color.md) | Gets or sets color to fill annotation. | [optional]
2121
**border_color** | [**Color**](Color.md) | Gets or sets color of border which is drawn when redaction is not active. | [optional]
2222
**overlay_text** | **str** | Text to print on redact annotation. | [optional]
23-
**repeat** | **bool** | If true overlay text will be repated on the annotation. | [optional]
23+
**repeat** | **bool** | If true overlay text will be repeated on the annotation. | [optional]
2424
**text_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets. Alignment of Overlay Text. | [optional]
2525

2626
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/SignatureCustomAppearance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SignatureCustomAppearance
2-
An abstract class which represents signature custon appearance object.
2+
An abstract class which represents signature custom appearance object.
33

44
## Properties
55
Name | Type | Description | Notes

docs/TextStyle.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**font** | **str** | Gets or sets font of the text. | [optional]
99
**foreground_color** | [**Color**](Color.md) | Gets or sets foreground color of the text. | [optional]
1010
**background_color** | [**Color**](Color.md) | Sets background color of the text. | [optional]
11+
**font_file** | **str** | Sets path of font file in storage. | [optional]
1112

1213
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1314

0 commit comments

Comments
 (0)