aspose_pdf_cloud 26.1.0 → 26.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c88a45ff61da245aa07507749deab46a9c0acddd93bf80bc0647aa4f4db3606
4
- data.tar.gz: 8cdb2e010fdce42f971c35692d2a19a9030dbe7a91ea9d35df9898ae5315d2c4
3
+ metadata.gz: d098deecc3711f2a18de2fd4b3ad491dbcc1b1580442a352e04db6e4c33bbc23
4
+ data.tar.gz: 6d3b64f731a13f17d1815639502b957ec96610219a77bc9332336708dbb7f96c
5
5
  SHA512:
6
- metadata.gz: 99132e1c4631be5ddfd03b22c22e8e679655ac2c2b0c87fed4abdb8312ad2f16158372faae1c3978af998b8b145bc16ccd40e81858e7ff257f6d81793e948802
7
- data.tar.gz: bf103cd9ba9a790103fc6478feeda0be42fe7774e5b7261ff703add1810890c7230b23d345b35625e2a48b3b7633b45355a03690553b37f4b900240f69d9faed
6
+ metadata.gz: d137b39791a6aa1815dade9b6056484b76fb69e0b05ebaee83b5d3412ab8252e3d63c0186de7e66952e441e8030bdcb0fd6246753a2ec534e081aa8f0f4ef993
7
+ data.tar.gz: 39bad6057d780a4e40e43742a75d0cf412f703054e52c63133002409085dcdd71ce393575666e28ed5116e97efa81b69a32aeff16d88581e19786557772ef456
@@ -2037,6 +2037,76 @@ module AsposePdfCloud
2037
2037
  return data, status_code, headers
2038
2038
  end
2039
2039
 
2040
+ # Convert APS file (located on storage) to PDF format and return resulting file in response.
2041
+ #
2042
+ # @param src_path Full source filename (ex. /folder1/folder2/template.xps)
2043
+ # @param [Hash] opts the optional parameters
2044
+ # @option opts [String] :storage The document storage.
2045
+ # @return [File]
2046
+ def get_aps_in_storage_to_pdf(src_path, opts = {})
2047
+ @api_client.request_token_if_needed
2048
+ data, _status_code, _headers = get_aps_in_storage_to_pdf_with_http_info(src_path, opts)
2049
+ rescue ApiError => error
2050
+ if error.code == 401
2051
+ @api_client.request_token_if_needed
2052
+ data, _status_code, _headers = get_aps_in_storage_to_pdf_with_http_info(src_path, opts)
2053
+ else
2054
+ raise
2055
+ end
2056
+ return data
2057
+ end
2058
+
2059
+ # Convert APS file (located on storage) to PDF format and return resulting file in response.
2060
+ #
2061
+ # @param src_path Full source filename (ex. /folder1/folder2/template.xps)
2062
+ # @param [Hash] opts the optional parameters
2063
+ # @option opts [String] :storage The document storage.
2064
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
2065
+ def get_aps_in_storage_to_pdf_with_http_info(src_path, opts = {})
2066
+ if @api_client.config.debugging
2067
+ @api_client.config.logger.debug "Calling API: PdfApi.get_aps_in_storage_to_pdf ..."
2068
+ end
2069
+ # verify the required parameter 'src_path' is set
2070
+ if @api_client.config.client_side_validation && src_path.nil?
2071
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_aps_in_storage_to_pdf"
2072
+ end
2073
+ # resource path
2074
+ local_var_path = "/pdf/create/aps"
2075
+
2076
+ # query parameters
2077
+ query_params = {}
2078
+ query_params[:'srcPath'] = src_path
2079
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2080
+
2081
+ # header parameters
2082
+ header_params = {}
2083
+ # HTTP header 'Accept' (if needed)
2084
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
2085
+ # HTTP header 'Content-Type'
2086
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2087
+
2088
+ # form parameters
2089
+ form_params = {}
2090
+ # Fix header in file
2091
+ post_body = nil
2092
+
2093
+ # http body (model)
2094
+ # Fix header in file
2095
+ # post_body = nil
2096
+ auth_names = ['JWT']
2097
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2098
+ :header_params => header_params,
2099
+ :query_params => query_params,
2100
+ :form_params => form_params,
2101
+ :body => post_body,
2102
+ :auth_names => auth_names,
2103
+ :return_type => 'File')
2104
+ if @api_client.config.debugging
2105
+ @api_client.config.logger.debug "API called: PdfApi#get_aps_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2106
+ end
2107
+ return data, status_code, headers
2108
+ end
2109
+
2040
2110
  # Read document bookmark.
2041
2111
  #
2042
2112
  # @param name The document name.
@@ -11116,6 +11186,78 @@ module AsposePdfCloud
11116
11186
  return data, status_code, headers
11117
11187
  end
11118
11188
 
11189
+ # Converts PDF document (located on storage) to APS format and returns resulting file in response content
11190
+ #
11191
+ # @param name The document name.
11192
+ # @param [Hash] opts the optional parameters
11193
+ # @option opts [String] :folder The document folder.
11194
+ # @option opts [String] :storage The document storage.
11195
+ # @return [File]
11196
+ def get_pdf_in_storage_to_aps(name, opts = {})
11197
+ @api_client.request_token_if_needed
11198
+ data, _status_code, _headers = get_pdf_in_storage_to_aps_with_http_info(name, opts)
11199
+ rescue ApiError => error
11200
+ if error.code == 401
11201
+ @api_client.request_token_if_needed
11202
+ data, _status_code, _headers = get_pdf_in_storage_to_aps_with_http_info(name, opts)
11203
+ else
11204
+ raise
11205
+ end
11206
+ return data
11207
+ end
11208
+
11209
+ # Converts PDF document (located on storage) to APS format and returns resulting file in response content
11210
+ #
11211
+ # @param name The document name.
11212
+ # @param [Hash] opts the optional parameters
11213
+ # @option opts [String] :folder The document folder.
11214
+ # @option opts [String] :storage The document storage.
11215
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
11216
+ def get_pdf_in_storage_to_aps_with_http_info(name, opts = {})
11217
+ if @api_client.config.debugging
11218
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_aps ..."
11219
+ end
11220
+ # verify the required parameter 'name' is set
11221
+ if @api_client.config.client_side_validation && name.nil?
11222
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_aps"
11223
+ end
11224
+ # resource path
11225
+ local_var_path = "/pdf/{name}/convert/aps".sub('{' + 'name' + '}', name.to_s)
11226
+
11227
+ # query parameters
11228
+ query_params = {}
11229
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
11230
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
11231
+
11232
+ # header parameters
11233
+ header_params = {}
11234
+ # HTTP header 'Accept' (if needed)
11235
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
11236
+ # HTTP header 'Content-Type'
11237
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
11238
+
11239
+ # form parameters
11240
+ form_params = {}
11241
+ # Fix header in file
11242
+ post_body = nil
11243
+
11244
+ # http body (model)
11245
+ # Fix header in file
11246
+ # post_body = nil
11247
+ auth_names = ['JWT']
11248
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
11249
+ :header_params => header_params,
11250
+ :query_params => query_params,
11251
+ :form_params => form_params,
11252
+ :body => post_body,
11253
+ :auth_names => auth_names,
11254
+ :return_type => 'File')
11255
+ if @api_client.config.debugging
11256
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_aps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11257
+ end
11258
+ return data, status_code, headers
11259
+ end
11260
+
11119
11261
  # Converts PDF document (located on storage) to DOC format and returns resulting file in response content.
11120
11262
  #
11121
11263
  # @param name The document name.
@@ -21262,6 +21404,85 @@ module AsposePdfCloud
21262
21404
  return data, status_code, headers
21263
21405
  end
21264
21406
 
21407
+ # Convert APS file (located on storage) to PDF format and upload resulting file to storage.
21408
+ #
21409
+ # @param name The document name.
21410
+ # @param src_path Full source filename (ex. /folder1/folder2/template.xps)
21411
+ # @param [Hash] opts the optional parameters
21412
+ # @option opts [String] :dst_folder The destination document folder.
21413
+ # @option opts [String] :storage The document storage.
21414
+ # @return [AsposeResponse]
21415
+ def put_aps_in_storage_to_pdf(name, src_path, opts = {})
21416
+ @api_client.request_token_if_needed
21417
+ data, _status_code, _headers = put_aps_in_storage_to_pdf_with_http_info(name, src_path, opts)
21418
+ rescue ApiError => error
21419
+ if error.code == 401
21420
+ @api_client.request_token_if_needed
21421
+ data, _status_code, _headers = put_aps_in_storage_to_pdf_with_http_info(name, src_path, opts)
21422
+ else
21423
+ raise
21424
+ end
21425
+ return data
21426
+ end
21427
+
21428
+ # Convert APS file (located on storage) to PDF format and upload resulting file to storage.
21429
+ #
21430
+ # @param name The document name.
21431
+ # @param src_path Full source filename (ex. /folder1/folder2/template.xps)
21432
+ # @param [Hash] opts the optional parameters
21433
+ # @option opts [String] :dst_folder The destination document folder.
21434
+ # @option opts [String] :storage The document storage.
21435
+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
21436
+ def put_aps_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
21437
+ if @api_client.config.debugging
21438
+ @api_client.config.logger.debug "Calling API: PdfApi.put_aps_in_storage_to_pdf ..."
21439
+ end
21440
+ # verify the required parameter 'name' is set
21441
+ if @api_client.config.client_side_validation && name.nil?
21442
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_aps_in_storage_to_pdf"
21443
+ end
21444
+ # verify the required parameter 'src_path' is set
21445
+ if @api_client.config.client_side_validation && src_path.nil?
21446
+ fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_aps_in_storage_to_pdf"
21447
+ end
21448
+ # resource path
21449
+ local_var_path = "/pdf/{name}/create/aps".sub('{' + 'name' + '}', name.to_s)
21450
+
21451
+ # query parameters
21452
+ query_params = {}
21453
+ query_params[:'srcPath'] = src_path
21454
+ query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
21455
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
21456
+
21457
+ # header parameters
21458
+ header_params = {}
21459
+ # HTTP header 'Accept' (if needed)
21460
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
21461
+ # HTTP header 'Content-Type'
21462
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
21463
+
21464
+ # form parameters
21465
+ form_params = {}
21466
+ # Fix header in file
21467
+ post_body = nil
21468
+
21469
+ # http body (model)
21470
+ # Fix header in file
21471
+ # post_body = nil
21472
+ auth_names = ['JWT']
21473
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
21474
+ :header_params => header_params,
21475
+ :query_params => query_params,
21476
+ :form_params => form_params,
21477
+ :body => post_body,
21478
+ :auth_names => auth_names,
21479
+ :return_type => 'AsposeResponse')
21480
+ if @api_client.config.debugging
21481
+ @api_client.config.logger.debug "API called: PdfApi#put_aps_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21482
+ end
21483
+ return data, status_code, headers
21484
+ end
21485
+
21265
21486
  # Update document bookmark.
21266
21487
  #
21267
21488
  # @param name The document name.
@@ -25513,6 +25734,80 @@ module AsposePdfCloud
25513
25734
  return data, status_code, headers
25514
25735
  end
25515
25736
 
25737
+ # Converts PDF document (in request content) to APS format and uploads resulting file to storage.
25738
+ #
25739
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.aps)
25740
+ # @param [Hash] opts the optional parameters
25741
+ # @option opts [String] :storage The document storage.
25742
+ # @option opts [File] :file A file to be converted.
25743
+ # @return [AsposeResponse]
25744
+ def put_pdf_in_request_to_aps(out_path, opts = {})
25745
+ @api_client.request_token_if_needed
25746
+ data, _status_code, _headers = put_pdf_in_request_to_aps_with_http_info(out_path, opts)
25747
+ rescue ApiError => error
25748
+ if error.code == 401
25749
+ @api_client.request_token_if_needed
25750
+ data, _status_code, _headers = put_pdf_in_request_to_aps_with_http_info(out_path, opts)
25751
+ else
25752
+ raise
25753
+ end
25754
+ return data
25755
+ end
25756
+
25757
+ # Converts PDF document (in request content) to APS format and uploads resulting file to storage.
25758
+ #
25759
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.aps)
25760
+ # @param [Hash] opts the optional parameters
25761
+ # @option opts [String] :storage The document storage.
25762
+ # @option opts [File] :file A file to be converted.
25763
+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
25764
+ def put_pdf_in_request_to_aps_with_http_info(out_path, opts = {})
25765
+ if @api_client.config.debugging
25766
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_aps ..."
25767
+ end
25768
+ # verify the required parameter 'out_path' is set
25769
+ if @api_client.config.client_side_validation && out_path.nil?
25770
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_aps"
25771
+ end
25772
+ # resource path
25773
+ local_var_path = "/pdf/convert/aps"
25774
+
25775
+ # query parameters
25776
+ query_params = {}
25777
+ query_params[:'outPath'] = out_path
25778
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
25779
+
25780
+ # header parameters
25781
+ header_params = {}
25782
+ # HTTP header 'Accept' (if needed)
25783
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
25784
+ # HTTP header 'Content-Type'
25785
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
25786
+
25787
+ # form parameters
25788
+ form_params = {}
25789
+ # Fix header in file
25790
+ post_body = nil
25791
+ post_body = opts[:'file'] if !opts[:'file'].nil?
25792
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
25793
+
25794
+ # http body (model)
25795
+ # Fix header in file
25796
+ # post_body = nil
25797
+ auth_names = ['JWT']
25798
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
25799
+ :header_params => header_params,
25800
+ :query_params => query_params,
25801
+ :form_params => form_params,
25802
+ :body => post_body,
25803
+ :auth_names => auth_names,
25804
+ :return_type => 'AsposeResponse')
25805
+ if @api_client.config.debugging
25806
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_aps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
25807
+ end
25808
+ return data, status_code, headers
25809
+ end
25810
+
25516
25811
  # Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
25517
25812
  #
25518
25813
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
@@ -26741,6 +27036,85 @@ module AsposePdfCloud
26741
27036
  return data, status_code, headers
26742
27037
  end
26743
27038
 
27039
+ # Converts PDF document (located on storage) to APS format and uploads resulting file to storage
27040
+ #
27041
+ # @param name The document name.
27042
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.aps)
27043
+ # @param [Hash] opts the optional parameters
27044
+ # @option opts [String] :folder The document folder.
27045
+ # @option opts [String] :storage The document storage.
27046
+ # @return [AsposeResponse]
27047
+ def put_pdf_in_storage_to_aps(name, out_path, opts = {})
27048
+ @api_client.request_token_if_needed
27049
+ data, _status_code, _headers = put_pdf_in_storage_to_aps_with_http_info(name, out_path, opts)
27050
+ rescue ApiError => error
27051
+ if error.code == 401
27052
+ @api_client.request_token_if_needed
27053
+ data, _status_code, _headers = put_pdf_in_storage_to_aps_with_http_info(name, out_path, opts)
27054
+ else
27055
+ raise
27056
+ end
27057
+ return data
27058
+ end
27059
+
27060
+ # Converts PDF document (located on storage) to APS format and uploads resulting file to storage
27061
+ #
27062
+ # @param name The document name.
27063
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.aps)
27064
+ # @param [Hash] opts the optional parameters
27065
+ # @option opts [String] :folder The document folder.
27066
+ # @option opts [String] :storage The document storage.
27067
+ # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
27068
+ def put_pdf_in_storage_to_aps_with_http_info(name, out_path, opts = {})
27069
+ if @api_client.config.debugging
27070
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_aps ..."
27071
+ end
27072
+ # verify the required parameter 'name' is set
27073
+ if @api_client.config.client_side_validation && name.nil?
27074
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_aps"
27075
+ end
27076
+ # verify the required parameter 'out_path' is set
27077
+ if @api_client.config.client_side_validation && out_path.nil?
27078
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_aps"
27079
+ end
27080
+ # resource path
27081
+ local_var_path = "/pdf/{name}/convert/aps".sub('{' + 'name' + '}', name.to_s)
27082
+
27083
+ # query parameters
27084
+ query_params = {}
27085
+ query_params[:'outPath'] = out_path
27086
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
27087
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
27088
+
27089
+ # header parameters
27090
+ header_params = {}
27091
+ # HTTP header 'Accept' (if needed)
27092
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
27093
+ # HTTP header 'Content-Type'
27094
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
27095
+
27096
+ # form parameters
27097
+ form_params = {}
27098
+ # Fix header in file
27099
+ post_body = nil
27100
+
27101
+ # http body (model)
27102
+ # Fix header in file
27103
+ # post_body = nil
27104
+ auth_names = ['JWT']
27105
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
27106
+ :header_params => header_params,
27107
+ :query_params => query_params,
27108
+ :form_params => form_params,
27109
+ :body => post_body,
27110
+ :auth_names => auth_names,
27111
+ :return_type => 'AsposeResponse')
27112
+ if @api_client.config.debugging
27113
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_aps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
27114
+ end
27115
+ return data, status_code, headers
27116
+ end
27117
+
26744
27118
  # Converts PDF document (located on storage) to DOC format and uploads resulting file to storage.
26745
27119
  #
26746
27120
  # @param name The document name.
@@ -20,5 +20,5 @@ SOFTWARE.
20
20
  =end
21
21
 
22
22
  module AsposePdfCloud
23
- VERSION = "26.1.0"
23
+ VERSION = "26.2.0"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_pdf_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 26.1.0
4
+ version: 26.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose PDF Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-06 00:00:00.000000000 Z
11
+ date: 2026-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday