@@ -24507,6 +24507,129 @@ def post_document_image_stamps_with_http_info(self, name, stamps, **kwargs):
2450724507 _request_timeout=params.get('_request_timeout'),
2450824508 collection_formats=collection_formats)
2450924509
24510+ def post_document_image_stamps_page_specified(self, name, stamps, **kwargs):
24511+ """
24512+ Add document image stamps to specified pages.
24513+ This method makes a synchronous HTTP request by default. To make an
24514+ asynchronous HTTP request, please define a `callback` function
24515+ to be invoked when receiving the response.
24516+ >>> def callback_function(response):
24517+ >>> pprint(response)
24518+ >>>
24519+ >>> thread = api.post_document_image_stamps_page_specified(name, stamps, callback=callback_function)
24520+
24521+ :param callback function: The callback function
24522+ for asynchronous request. (optional)
24523+ :param str name: The document name. (required)
24524+ :param list[ImageStampPageSpecified] stamps: The array of stamps. (required)
24525+ :param str storage: The document storage.
24526+ :param str folder: The document folder.
24527+ :param str password: Base64 encoded password.
24528+ :return: AsposeResponse
24529+ If the method is called asynchronously,
24530+ returns the request thread.
24531+ """
24532+ kwargs['_return_http_data_only'] = True
24533+ if kwargs.get('callback'):
24534+ return self.post_document_image_stamps_page_specified_with_http_info(name, stamps, **kwargs)
24535+ else:
24536+ (data) = self.post_document_image_stamps_page_specified_with_http_info(name, stamps, **kwargs)
24537+ return data
24538+
24539+ def post_document_image_stamps_page_specified_with_http_info(self, name, stamps, **kwargs):
24540+ """
24541+ Add document image stamps to specified pages.
24542+ This method makes a synchronous HTTP request by default. To make an
24543+ asynchronous HTTP request, please define a `callback` function
24544+ to be invoked when receiving the response.
24545+ >>> def callback_function(response):
24546+ >>> pprint(response)
24547+ >>>
24548+ >>> thread = api.post_document_image_stamps_page_specified_with_http_info(name, stamps, callback=callback_function)
24549+
24550+ :param callback function: The callback function
24551+ for asynchronous request. (optional)
24552+ :param str name: The document name. (required)
24553+ :param list[ImageStampPageSpecified] stamps: The array of stamps. (required)
24554+ :param str storage: The document storage.
24555+ :param str folder: The document folder.
24556+ :param str password: Base64 encoded password.
24557+ :return: AsposeResponse
24558+ If the method is called asynchronously,
24559+ returns the request thread.
24560+ """
24561+
24562+ all_params = ['name', 'stamps', 'storage', 'folder', 'password']
24563+ all_params.append('callback')
24564+ all_params.append('_return_http_data_only')
24565+ all_params.append('_preload_content')
24566+ all_params.append('_request_timeout')
24567+
24568+ params = locals()
24569+ for key, val in iteritems(params['kwargs']):
24570+ if key not in all_params:
24571+ raise TypeError(
24572+ "Got an unexpected keyword argument '%s'"
24573+ " to method post_document_image_stamps_page_specified" % key
24574+ )
24575+ params[key] = val
24576+ del params['kwargs']
24577+ # verify the required parameter 'name' is set
24578+ if ('name' not in params) or (params['name'] is None):
24579+ raise ValueError("Missing the required parameter `name` when calling `post_document_image_stamps_page_specified`")
24580+ # verify the required parameter 'stamps' is set
24581+ if ('stamps' not in params) or (params['stamps'] is None):
24582+ raise ValueError("Missing the required parameter `stamps` when calling `post_document_image_stamps_page_specified`")
24583+
24584+
24585+ collection_formats = {}
24586+
24587+ path_params = {}
24588+ if 'name' in params:
24589+ path_params['name'] = params['name']
24590+
24591+ query_params = []
24592+ if 'storage' in params:
24593+ query_params.append(('storage', params['storage']))
24594+ if 'folder' in params:
24595+ query_params.append(('folder', params['folder']))
24596+ if 'password' in params:
24597+ query_params.append(('password', params['password']))
24598+
24599+ header_params = {}
24600+
24601+ form_params = []
24602+ local_var_files = {}
24603+
24604+ body_params = None
24605+ if 'stamps' in params:
24606+ body_params = params['stamps']
24607+ # HTTP header `Accept`
24608+ header_params['Accept'] = self.api_client.\
24609+ select_header_accept(['application/json'])
24610+
24611+ # HTTP header `Content-Type`
24612+ header_params['Content-Type'] = self.api_client.\
24613+ select_header_content_type(['application/json'])
24614+
24615+ # Authentication setting
24616+ auth_settings = ['JWT']
24617+
24618+ return self.api_client.call_api('/pdf/{name}/stamps/image/pagespecified', 'POST',
24619+ path_params,
24620+ query_params,
24621+ header_params,
24622+ body=body_params,
24623+ post_params=form_params,
24624+ files=local_var_files,
24625+ response_type='AsposeResponse',
24626+ auth_settings=auth_settings,
24627+ callback=params.get('callback'),
24628+ _return_http_data_only=params.get('_return_http_data_only'),
24629+ _preload_content=params.get('_preload_content', True),
24630+ _request_timeout=params.get('_request_timeout'),
24631+ collection_formats=collection_formats)
24632+
2451024633 def post_document_page_number_stamps(self, name, stamp, **kwargs):
2451124634 """
2451224635 Add document page number stamps.
@@ -25134,6 +25257,129 @@ def post_document_text_stamps_with_http_info(self, name, stamps, **kwargs):
2513425257 _request_timeout=params.get('_request_timeout'),
2513525258 collection_formats=collection_formats)
2513625259
25260+ def post_document_text_stamps_page_specified(self, name, stamps, **kwargs):
25261+ """
25262+ Add document text stamps to specified pages.
25263+ This method makes a synchronous HTTP request by default. To make an
25264+ asynchronous HTTP request, please define a `callback` function
25265+ to be invoked when receiving the response.
25266+ >>> def callback_function(response):
25267+ >>> pprint(response)
25268+ >>>
25269+ >>> thread = api.post_document_text_stamps_page_specified(name, stamps, callback=callback_function)
25270+
25271+ :param callback function: The callback function
25272+ for asynchronous request. (optional)
25273+ :param str name: The document name. (required)
25274+ :param list[TextStampPageSpecified] stamps: The array of stamps. (required)
25275+ :param str storage: The document storage.
25276+ :param str folder: The document folder.
25277+ :param str password: Base64 encoded password.
25278+ :return: AsposeResponse
25279+ If the method is called asynchronously,
25280+ returns the request thread.
25281+ """
25282+ kwargs['_return_http_data_only'] = True
25283+ if kwargs.get('callback'):
25284+ return self.post_document_text_stamps_page_specified_with_http_info(name, stamps, **kwargs)
25285+ else:
25286+ (data) = self.post_document_text_stamps_page_specified_with_http_info(name, stamps, **kwargs)
25287+ return data
25288+
25289+ def post_document_text_stamps_page_specified_with_http_info(self, name, stamps, **kwargs):
25290+ """
25291+ Add document text stamps to specified pages.
25292+ This method makes a synchronous HTTP request by default. To make an
25293+ asynchronous HTTP request, please define a `callback` function
25294+ to be invoked when receiving the response.
25295+ >>> def callback_function(response):
25296+ >>> pprint(response)
25297+ >>>
25298+ >>> thread = api.post_document_text_stamps_page_specified_with_http_info(name, stamps, callback=callback_function)
25299+
25300+ :param callback function: The callback function
25301+ for asynchronous request. (optional)
25302+ :param str name: The document name. (required)
25303+ :param list[TextStampPageSpecified] stamps: The array of stamps. (required)
25304+ :param str storage: The document storage.
25305+ :param str folder: The document folder.
25306+ :param str password: Base64 encoded password.
25307+ :return: AsposeResponse
25308+ If the method is called asynchronously,
25309+ returns the request thread.
25310+ """
25311+
25312+ all_params = ['name', 'stamps', 'storage', 'folder', 'password']
25313+ all_params.append('callback')
25314+ all_params.append('_return_http_data_only')
25315+ all_params.append('_preload_content')
25316+ all_params.append('_request_timeout')
25317+
25318+ params = locals()
25319+ for key, val in iteritems(params['kwargs']):
25320+ if key not in all_params:
25321+ raise TypeError(
25322+ "Got an unexpected keyword argument '%s'"
25323+ " to method post_document_text_stamps_page_specified" % key
25324+ )
25325+ params[key] = val
25326+ del params['kwargs']
25327+ # verify the required parameter 'name' is set
25328+ if ('name' not in params) or (params['name'] is None):
25329+ raise ValueError("Missing the required parameter `name` when calling `post_document_text_stamps_page_specified`")
25330+ # verify the required parameter 'stamps' is set
25331+ if ('stamps' not in params) or (params['stamps'] is None):
25332+ raise ValueError("Missing the required parameter `stamps` when calling `post_document_text_stamps_page_specified`")
25333+
25334+
25335+ collection_formats = {}
25336+
25337+ path_params = {}
25338+ if 'name' in params:
25339+ path_params['name'] = params['name']
25340+
25341+ query_params = []
25342+ if 'storage' in params:
25343+ query_params.append(('storage', params['storage']))
25344+ if 'folder' in params:
25345+ query_params.append(('folder', params['folder']))
25346+ if 'password' in params:
25347+ query_params.append(('password', params['password']))
25348+
25349+ header_params = {}
25350+
25351+ form_params = []
25352+ local_var_files = {}
25353+
25354+ body_params = None
25355+ if 'stamps' in params:
25356+ body_params = params['stamps']
25357+ # HTTP header `Accept`
25358+ header_params['Accept'] = self.api_client.\
25359+ select_header_accept(['application/json'])
25360+
25361+ # HTTP header `Content-Type`
25362+ header_params['Content-Type'] = self.api_client.\
25363+ select_header_content_type(['application/json'])
25364+
25365+ # Authentication setting
25366+ auth_settings = ['JWT']
25367+
25368+ return self.api_client.call_api('/pdf/{name}/stamps/text/pagespecified', 'POST',
25369+ path_params,
25370+ query_params,
25371+ header_params,
25372+ body=body_params,
25373+ post_params=form_params,
25374+ files=local_var_files,
25375+ response_type='AsposeResponse',
25376+ auth_settings=auth_settings,
25377+ callback=params.get('callback'),
25378+ _return_http_data_only=params.get('_return_http_data_only'),
25379+ _preload_content=params.get('_preload_content', True),
25380+ _request_timeout=params.get('_request_timeout'),
25381+ collection_formats=collection_formats)
25382+
2513725383 def post_encrypt_document_in_storage(self, name, user_password, owner_password, crypto_algorithm, **kwargs):
2513825384 """
2513925385 Encrypt document in storage.
0 commit comments