@@ -24907,6 +24907,136 @@ def post_document_page_number_stamps_with_http_info(self, name, stamp, **kwargs)
24907
24907
_request_timeout=params.get('_request_timeout'),
24908
24908
collection_formats=collection_formats)
24909
24909
24910
+ def post_document_pages_rotate(self, name, rotation_angle, pages, **kwargs):
24911
+ """
24912
+ Rotate PDF document.
24913
+ This method makes a synchronous HTTP request by default. To make an
24914
+ asynchronous HTTP request, please define a `callback` function
24915
+ to be invoked when receiving the response.
24916
+ >>> def callback_function(response):
24917
+ >>> pprint(response)
24918
+ >>>
24919
+ >>> thread = api.post_document_pages_rotate(name, rotation_angle, pages, callback=callback_function)
24920
+
24921
+ :param callback function: The callback function
24922
+ for asynchronous request. (optional)
24923
+ :param str name: The document name. (required)
24924
+ :param str rotation_angle: Rotation Angle (CKW). Can be 90, 180, 270. (required)
24925
+ :param str pages: Comma separated list of pages and page ranges. (Example: 1,3-5,8) (required)
24926
+ :param str storage: The document storage.
24927
+ :param str folder: The document folder.
24928
+ :param str password: Base64 encoded password.
24929
+ :return: AsposeResponse
24930
+ If the method is called asynchronously,
24931
+ returns the request thread.
24932
+ """
24933
+ kwargs['_return_http_data_only'] = True
24934
+ if kwargs.get('callback'):
24935
+ return self.post_document_pages_rotate_with_http_info(name, rotation_angle, pages, **kwargs)
24936
+ else:
24937
+ (data) = self.post_document_pages_rotate_with_http_info(name, rotation_angle, pages, **kwargs)
24938
+ return data
24939
+
24940
+ def post_document_pages_rotate_with_http_info(self, name, rotation_angle, pages, **kwargs):
24941
+ """
24942
+ Rotate PDF document.
24943
+ This method makes a synchronous HTTP request by default. To make an
24944
+ asynchronous HTTP request, please define a `callback` function
24945
+ to be invoked when receiving the response.
24946
+ >>> def callback_function(response):
24947
+ >>> pprint(response)
24948
+ >>>
24949
+ >>> thread = api.post_document_pages_rotate_with_http_info(name, rotation_angle, pages, callback=callback_function)
24950
+
24951
+ :param callback function: The callback function
24952
+ for asynchronous request. (optional)
24953
+ :param str name: The document name. (required)
24954
+ :param str rotation_angle: Rotation Angle (CKW). Can be 90, 180, 270. (required)
24955
+ :param str pages: Comma separated list of pages and page ranges. (Example: 1,3-5,8) (required)
24956
+ :param str storage: The document storage.
24957
+ :param str folder: The document folder.
24958
+ :param str password: Base64 encoded password.
24959
+ :return: AsposeResponse
24960
+ If the method is called asynchronously,
24961
+ returns the request thread.
24962
+ """
24963
+
24964
+ all_params = ['name', 'rotation_angle', 'pages', 'storage', 'folder', 'password']
24965
+ all_params.append('callback')
24966
+ all_params.append('_return_http_data_only')
24967
+ all_params.append('_preload_content')
24968
+ all_params.append('_request_timeout')
24969
+
24970
+ params = locals()
24971
+ for key, val in iteritems(params['kwargs']):
24972
+ if key not in all_params:
24973
+ raise TypeError(
24974
+ "Got an unexpected keyword argument '%s'"
24975
+ " to method post_document_pages_rotate" % key
24976
+ )
24977
+ params[key] = val
24978
+ del params['kwargs']
24979
+ # verify the required parameter 'name' is set
24980
+ if ('name' not in params) or (params['name'] is None):
24981
+ raise ValueError("Missing the required parameter `name` when calling `post_document_pages_rotate`")
24982
+ # verify the required parameter 'rotation_angle' is set
24983
+ if ('rotation_angle' not in params) or (params['rotation_angle'] is None):
24984
+ raise ValueError("Missing the required parameter `rotation_angle` when calling `post_document_pages_rotate`")
24985
+ # verify the required parameter 'pages' is set
24986
+ if ('pages' not in params) or (params['pages'] is None):
24987
+ raise ValueError("Missing the required parameter `pages` when calling `post_document_pages_rotate`")
24988
+
24989
+
24990
+ collection_formats = {}
24991
+
24992
+ path_params = {}
24993
+ if 'name' in params:
24994
+ path_params['name'] = params['name']
24995
+
24996
+ query_params = []
24997
+ if 'rotation_angle' in params:
24998
+ query_params.append(('rotationAngle', params['rotation_angle']))
24999
+ if 'pages' in params:
25000
+ query_params.append(('pages', params['pages']))
25001
+ if 'storage' in params:
25002
+ query_params.append(('storage', params['storage']))
25003
+ if 'folder' in params:
25004
+ query_params.append(('folder', params['folder']))
25005
+ if 'password' in params:
25006
+ query_params.append(('password', params['password']))
25007
+
25008
+ header_params = {}
25009
+
25010
+ form_params = []
25011
+ local_var_files = {}
25012
+
25013
+ body_params = None
25014
+ # HTTP header `Accept`
25015
+ header_params['Accept'] = self.api_client.\
25016
+ select_header_accept(['application/json'])
25017
+
25018
+ # HTTP header `Content-Type`
25019
+ header_params['Content-Type'] = self.api_client.\
25020
+ select_header_content_type(['application/json'])
25021
+
25022
+ # Authentication setting
25023
+ auth_settings = ['JWT']
25024
+
25025
+ return self.api_client.call_api('/pdf/{name}/rotate', 'POST',
25026
+ path_params,
25027
+ query_params,
25028
+ header_params,
25029
+ body=body_params,
25030
+ post_params=form_params,
25031
+ files=local_var_files,
25032
+ response_type='AsposeResponse',
25033
+ auth_settings=auth_settings,
25034
+ callback=params.get('callback'),
25035
+ _return_http_data_only=params.get('_return_http_data_only'),
25036
+ _preload_content=params.get('_preload_content', True),
25037
+ _request_timeout=params.get('_request_timeout'),
25038
+ collection_formats=collection_formats)
25039
+
24910
25040
def post_document_text_footer(self, name, text_footer, **kwargs):
24911
25041
"""
24912
25042
Add document text footer.
0 commit comments