@@ -23783,6 +23783,129 @@ def post_document_image_header_with_http_info(self, name, image_header, **kwargs
23783
23783
_request_timeout=params.get('_request_timeout'),
23784
23784
collection_formats=collection_formats)
23785
23785
23786
+ def post_document_image_stamps(self, name, stamps, **kwargs):
23787
+ """
23788
+ Add document pages image stamps.
23789
+ This method makes a synchronous HTTP request by default. To make an
23790
+ asynchronous HTTP request, please define a `callback` function
23791
+ to be invoked when receiving the response.
23792
+ >>> def callback_function(response):
23793
+ >>> pprint(response)
23794
+ >>>
23795
+ >>> thread = api.post_document_image_stamps(name, stamps, callback=callback_function)
23796
+
23797
+ :param callback function: The callback function
23798
+ for asynchronous request. (optional)
23799
+ :param str name: The document name. (required)
23800
+ :param list[ImageStamp] stamps: The array of stamp. (required)
23801
+ :param str storage: The document storage.
23802
+ :param str folder: The document folder.
23803
+ :param str password: Base64 encoded password.
23804
+ :return: AsposeResponse
23805
+ If the method is called asynchronously,
23806
+ returns the request thread.
23807
+ """
23808
+ kwargs['_return_http_data_only'] = True
23809
+ if kwargs.get('callback'):
23810
+ return self.post_document_image_stamps_with_http_info(name, stamps, **kwargs)
23811
+ else:
23812
+ (data) = self.post_document_image_stamps_with_http_info(name, stamps, **kwargs)
23813
+ return data
23814
+
23815
+ def post_document_image_stamps_with_http_info(self, name, stamps, **kwargs):
23816
+ """
23817
+ Add document pages image stamps.
23818
+ This method makes a synchronous HTTP request by default. To make an
23819
+ asynchronous HTTP request, please define a `callback` function
23820
+ to be invoked when receiving the response.
23821
+ >>> def callback_function(response):
23822
+ >>> pprint(response)
23823
+ >>>
23824
+ >>> thread = api.post_document_image_stamps_with_http_info(name, stamps, callback=callback_function)
23825
+
23826
+ :param callback function: The callback function
23827
+ for asynchronous request. (optional)
23828
+ :param str name: The document name. (required)
23829
+ :param list[ImageStamp] stamps: The array of stamp. (required)
23830
+ :param str storage: The document storage.
23831
+ :param str folder: The document folder.
23832
+ :param str password: Base64 encoded password.
23833
+ :return: AsposeResponse
23834
+ If the method is called asynchronously,
23835
+ returns the request thread.
23836
+ """
23837
+
23838
+ all_params = ['name', 'stamps', 'storage', 'folder', 'password']
23839
+ all_params.append('callback')
23840
+ all_params.append('_return_http_data_only')
23841
+ all_params.append('_preload_content')
23842
+ all_params.append('_request_timeout')
23843
+
23844
+ params = locals()
23845
+ for key, val in iteritems(params['kwargs']):
23846
+ if key not in all_params:
23847
+ raise TypeError(
23848
+ "Got an unexpected keyword argument '%s'"
23849
+ " to method post_document_image_stamps" % key
23850
+ )
23851
+ params[key] = val
23852
+ del params['kwargs']
23853
+ # verify the required parameter 'name' is set
23854
+ if ('name' not in params) or (params['name'] is None):
23855
+ raise ValueError("Missing the required parameter `name` when calling `post_document_image_stamps`")
23856
+ # verify the required parameter 'stamps' is set
23857
+ if ('stamps' not in params) or (params['stamps'] is None):
23858
+ raise ValueError("Missing the required parameter `stamps` when calling `post_document_image_stamps`")
23859
+
23860
+
23861
+ collection_formats = {}
23862
+
23863
+ path_params = {}
23864
+ if 'name' in params:
23865
+ path_params['name'] = params['name']
23866
+
23867
+ query_params = []
23868
+ if 'storage' in params:
23869
+ query_params.append(('storage', params['storage']))
23870
+ if 'folder' in params:
23871
+ query_params.append(('folder', params['folder']))
23872
+ if 'password' in params:
23873
+ query_params.append(('password', params['password']))
23874
+
23875
+ header_params = {}
23876
+
23877
+ form_params = []
23878
+ local_var_files = {}
23879
+
23880
+ body_params = None
23881
+ if 'stamps' in params:
23882
+ body_params = params['stamps']
23883
+ # HTTP header `Accept`
23884
+ header_params['Accept'] = self.api_client.\
23885
+ select_header_accept(['application/json'])
23886
+
23887
+ # HTTP header `Content-Type`
23888
+ header_params['Content-Type'] = self.api_client.\
23889
+ select_header_content_type(['application/json'])
23890
+
23891
+ # Authentication setting
23892
+ auth_settings = ['JWT']
23893
+
23894
+ return self.api_client.call_api('/pdf/{name}/stamps/image', 'POST',
23895
+ path_params,
23896
+ query_params,
23897
+ header_params,
23898
+ body=body_params,
23899
+ post_params=form_params,
23900
+ files=local_var_files,
23901
+ response_type='AsposeResponse',
23902
+ auth_settings=auth_settings,
23903
+ callback=params.get('callback'),
23904
+ _return_http_data_only=params.get('_return_http_data_only'),
23905
+ _preload_content=params.get('_preload_content', True),
23906
+ _request_timeout=params.get('_request_timeout'),
23907
+ collection_formats=collection_formats)
23908
+
23786
23909
def post_document_page_number_stamps(self, name, stamp, **kwargs):
23787
23910
"""
23788
23911
Add document page number stamps.
@@ -24287,6 +24410,129 @@ def post_document_text_replace_with_http_info(self, name, text_replace, **kwargs
24287
24410
_request_timeout=params.get('_request_timeout'),
24288
24411
collection_formats=collection_formats)
24289
24412
24413
+ def post_document_text_stamps(self, name, stamps, **kwargs):
24414
+ """
24415
+ Add document pages text stamps.
24416
+ This method makes a synchronous HTTP request by default. To make an
24417
+ asynchronous HTTP request, please define a `callback` function
24418
+ to be invoked when receiving the response.
24419
+ >>> def callback_function(response):
24420
+ >>> pprint(response)
24421
+ >>>
24422
+ >>> thread = api.post_document_text_stamps(name, stamps, callback=callback_function)
24423
+
24424
+ :param callback function: The callback function
24425
+ for asynchronous request. (optional)
24426
+ :param str name: The document name. (required)
24427
+ :param list[TextStamp] stamps: The array of stamp. (required)
24428
+ :param str storage: The document storage.
24429
+ :param str folder: The document folder.
24430
+ :param str password: Base64 encoded password.
24431
+ :return: AsposeResponse
24432
+ If the method is called asynchronously,
24433
+ returns the request thread.
24434
+ """
24435
+ kwargs['_return_http_data_only'] = True
24436
+ if kwargs.get('callback'):
24437
+ return self.post_document_text_stamps_with_http_info(name, stamps, **kwargs)
24438
+ else:
24439
+ (data) = self.post_document_text_stamps_with_http_info(name, stamps, **kwargs)
24440
+ return data
24441
+
24442
+ def post_document_text_stamps_with_http_info(self, name, stamps, **kwargs):
24443
+ """
24444
+ Add document pages text stamps.
24445
+ This method makes a synchronous HTTP request by default. To make an
24446
+ asynchronous HTTP request, please define a `callback` function
24447
+ to be invoked when receiving the response.
24448
+ >>> def callback_function(response):
24449
+ >>> pprint(response)
24450
+ >>>
24451
+ >>> thread = api.post_document_text_stamps_with_http_info(name, stamps, callback=callback_function)
24452
+
24453
+ :param callback function: The callback function
24454
+ for asynchronous request. (optional)
24455
+ :param str name: The document name. (required)
24456
+ :param list[TextStamp] stamps: The array of stamp. (required)
24457
+ :param str storage: The document storage.
24458
+ :param str folder: The document folder.
24459
+ :param str password: Base64 encoded password.
24460
+ :return: AsposeResponse
24461
+ If the method is called asynchronously,
24462
+ returns the request thread.
24463
+ """
24464
+
24465
+ all_params = ['name', 'stamps', 'storage', 'folder', 'password']
24466
+ all_params.append('callback')
24467
+ all_params.append('_return_http_data_only')
24468
+ all_params.append('_preload_content')
24469
+ all_params.append('_request_timeout')
24470
+
24471
+ params = locals()
24472
+ for key, val in iteritems(params['kwargs']):
24473
+ if key not in all_params:
24474
+ raise TypeError(
24475
+ "Got an unexpected keyword argument '%s'"
24476
+ " to method post_document_text_stamps" % key
24477
+ )
24478
+ params[key] = val
24479
+ del params['kwargs']
24480
+ # verify the required parameter 'name' is set
24481
+ if ('name' not in params) or (params['name'] is None):
24482
+ raise ValueError("Missing the required parameter `name` when calling `post_document_text_stamps`")
24483
+ # verify the required parameter 'stamps' is set
24484
+ if ('stamps' not in params) or (params['stamps'] is None):
24485
+ raise ValueError("Missing the required parameter `stamps` when calling `post_document_text_stamps`")
24486
+
24487
+
24488
+ collection_formats = {}
24489
+
24490
+ path_params = {}
24491
+ if 'name' in params:
24492
+ path_params['name'] = params['name']
24493
+
24494
+ query_params = []
24495
+ if 'storage' in params:
24496
+ query_params.append(('storage', params['storage']))
24497
+ if 'folder' in params:
24498
+ query_params.append(('folder', params['folder']))
24499
+ if 'password' in params:
24500
+ query_params.append(('password', params['password']))
24501
+
24502
+ header_params = {}
24503
+
24504
+ form_params = []
24505
+ local_var_files = {}
24506
+
24507
+ body_params = None
24508
+ if 'stamps' in params:
24509
+ body_params = params['stamps']
24510
+ # HTTP header `Accept`
24511
+ header_params['Accept'] = self.api_client.\
24512
+ select_header_accept(['application/json'])
24513
+
24514
+ # HTTP header `Content-Type`
24515
+ header_params['Content-Type'] = self.api_client.\
24516
+ select_header_content_type(['application/json'])
24517
+
24518
+ # Authentication setting
24519
+ auth_settings = ['JWT']
24520
+
24521
+ return self.api_client.call_api('/pdf/{name}/stamps/text', 'POST',
24522
+ path_params,
24523
+ query_params,
24524
+ header_params,
24525
+ body=body_params,
24526
+ post_params=form_params,
24527
+ files=local_var_files,
24528
+ response_type='AsposeResponse',
24529
+ auth_settings=auth_settings,
24530
+ callback=params.get('callback'),
24531
+ _return_http_data_only=params.get('_return_http_data_only'),
24532
+ _preload_content=params.get('_preload_content', True),
24533
+ _request_timeout=params.get('_request_timeout'),
24534
+ collection_formats=collection_formats)
24535
+
24290
24536
def post_encrypt_document_in_storage(self, name, user_password, owner_password, crypto_algorithm, **kwargs):
24291
24537
"""
24292
24538
Encrypt document in storage.
0 commit comments