@@ -16351,6 +16351,102 @@ def post_document_page_number_stamps_with_http_info(name, stamp, opts = {})
1635116351 return data, status_code, headers
1635216352 end
1635316353
16354+ # Rsize PDF document.
16355+ #
16356+ # @param name The document name.
16357+ # @param height Page Height
16358+ # @param width Page width
16359+ # @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
16360+ # @param [Hash] opts the optional parameters
16361+ # @option opts [String] :storage The document storage.
16362+ # @option opts [String] :folder The document folder.
16363+ # @option opts [String] :password Base64 encoded password.
16364+ # @return [AsposeResponse]
16365+ def post_document_pages_resize(name, height, width, pages, opts = {})
16366+ @api_client.request_token_if_needed
16367+ data, _status_code, _headers = post_document_pages_resize_with_http_info(name, height, width, pages, opts)
16368+ rescue ApiError => error
16369+ if error.code == 401
16370+ @api_client.request_token_if_needed
16371+ data, _status_code, _headers = post_document_pages_resize_with_http_info(name, height, width, pages, opts)
16372+ else
16373+ raise
16374+ end
16375+ return data
16376+ end
16377+
16378+ # Rsize PDF document.
16379+ #
16380+ # @param name The document name.
16381+ # @param height Page Height
16382+ # @param width Page width
16383+ # @param pages Comma separated list of pages and page ranges. (Example: 1,3-5,8)
16384+ # @param [Hash] opts the optional parameters
16385+ # @option opts [String] :storage The document storage.
16386+ # @option opts [String] :folder The document folder.
16387+ # @option opts [String] :password Base64 encoded password.
16388+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
16389+ def post_document_pages_resize_with_http_info(name, height, width, pages, opts = {})
16390+ if @api_client.config.debugging
16391+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_pages_resize ..."
16392+ end
16393+ # verify the required parameter 'name' is set
16394+ if @api_client.config.client_side_validation && name.nil?
16395+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_pages_resize"
16396+ end
16397+ # verify the required parameter 'height' is set
16398+ if @api_client.config.client_side_validation && height.nil?
16399+ fail ArgumentError, "Missing the required parameter 'height' when calling PdfApi.post_document_pages_resize"
16400+ end
16401+ # verify the required parameter 'width' is set
16402+ if @api_client.config.client_side_validation && width.nil?
16403+ fail ArgumentError, "Missing the required parameter 'width' when calling PdfApi.post_document_pages_resize"
16404+ end
16405+ # verify the required parameter 'pages' is set
16406+ if @api_client.config.client_side_validation && pages.nil?
16407+ fail ArgumentError, "Missing the required parameter 'pages' when calling PdfApi.post_document_pages_resize"
16408+ end
16409+ # resource path
16410+ local_var_path = "/pdf/{name}/resize".sub('{' + 'name' + '}', name.to_s)
16411+
16412+ # query parameters
16413+ query_params = {}
16414+ query_params[:'height'] = height
16415+ query_params[:'width'] = width
16416+ query_params[:'pages'] = pages
16417+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
16418+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
16419+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
16420+
16421+ # header parameters
16422+ header_params = {}
16423+ # HTTP header 'Accept' (if needed)
16424+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
16425+ # HTTP header 'Content-Type'
16426+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16427+
16428+ # form parameters
16429+ form_params = {}
16430+ # Fix header in file
16431+ post_body = nil
16432+
16433+ # http body (model)
16434+ # Fix header in file
16435+ # post_body = nil
16436+ auth_names = ['JWT']
16437+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
16438+ :header_params => header_params,
16439+ :query_params => query_params,
16440+ :form_params => form_params,
16441+ :body => post_body,
16442+ :auth_names => auth_names,
16443+ :return_type => 'AsposeResponse')
16444+ if @api_client.config.debugging
16445+ @api_client.config.logger.debug "API called: PdfApi#post_document_pages_resize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16446+ end
16447+ return data, status_code, headers
16448+ end
16449+
1635416450 # Rotate PDF document.
1635516451 #
1635616452 # @param name The document name.
0 commit comments