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