aspose_pdf_cloud 22.8.0 → 22.10.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 +4 -4
- data/README.md +16 -6
- data/docs/PageRange.md +10 -0
- data/docs/PdfApi.md +45 -4
- data/docs/SplitRangePdfOptions.md +9 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +126 -4
- data/lib/aspose_pdf_cloud/api_client.rb +7 -11
- data/lib/aspose_pdf_cloud/models/page_range.rb +207 -0
- data/lib/aspose_pdf_cloud/models/split_range_pdf_options.rb +200 -0
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/lib/aspose_pdf_cloud.rb +2 -0
- data/test/pdf_tests.rb +19 -2
- metadata +6 -2
@@ -7926,6 +7926,7 @@ module AsposePdfCloud
|
|
7926
7926
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
7927
7927
|
# @option opts [String] :folder The document folder.
|
7928
7928
|
# @option opts [String] :storage The document storage.
|
7929
|
+
# @option opts [String] :password The password (Base64).
|
7929
7930
|
# @return [File]
|
7930
7931
|
def get_page_convert_to_bmp(name, page_number, opts = {})
|
7931
7932
|
@api_client.request_token_if_needed
|
@@ -7949,6 +7950,7 @@ module AsposePdfCloud
|
|
7949
7950
|
# @option opts [Integer] :height The converted image height.
|
7950
7951
|
# @option opts [String] :folder The document folder.
|
7951
7952
|
# @option opts [String] :storage The document storage.
|
7953
|
+
# @option opts [String] :password The password (Base64).
|
7952
7954
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
7953
7955
|
def get_page_convert_to_bmp_with_http_info(name, page_number, opts = {})
|
7954
7956
|
if @api_client.config.debugging
|
@@ -7971,6 +7973,7 @@ module AsposePdfCloud
|
|
7971
7973
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
7972
7974
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7973
7975
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7976
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
7974
7977
|
|
7975
7978
|
# header parameters
|
7976
7979
|
header_params = {}
|
@@ -8010,6 +8013,7 @@ module AsposePdfCloud
|
|
8010
8013
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8011
8014
|
# @option opts [String] :folder The document folder.
|
8012
8015
|
# @option opts [String] :storage The document storage.
|
8016
|
+
# @option opts [String] :password The password (Base64).
|
8013
8017
|
# @return [File]
|
8014
8018
|
def get_page_convert_to_emf(name, page_number, opts = {})
|
8015
8019
|
@api_client.request_token_if_needed
|
@@ -8033,6 +8037,7 @@ module AsposePdfCloud
|
|
8033
8037
|
# @option opts [Integer] :height The converted image height.
|
8034
8038
|
# @option opts [String] :folder The document folder.
|
8035
8039
|
# @option opts [String] :storage The document storage.
|
8040
|
+
# @option opts [String] :password The password (Base64).
|
8036
8041
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8037
8042
|
def get_page_convert_to_emf_with_http_info(name, page_number, opts = {})
|
8038
8043
|
if @api_client.config.debugging
|
@@ -8055,6 +8060,7 @@ module AsposePdfCloud
|
|
8055
8060
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8056
8061
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8057
8062
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8063
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8058
8064
|
|
8059
8065
|
# header parameters
|
8060
8066
|
header_params = {}
|
@@ -8094,6 +8100,7 @@ module AsposePdfCloud
|
|
8094
8100
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8095
8101
|
# @option opts [String] :folder The document folder.
|
8096
8102
|
# @option opts [String] :storage The document storage.
|
8103
|
+
# @option opts [String] :password The password (Base64).
|
8097
8104
|
# @return [File]
|
8098
8105
|
def get_page_convert_to_gif(name, page_number, opts = {})
|
8099
8106
|
@api_client.request_token_if_needed
|
@@ -8117,6 +8124,7 @@ module AsposePdfCloud
|
|
8117
8124
|
# @option opts [Integer] :height The converted image height.
|
8118
8125
|
# @option opts [String] :folder The document folder.
|
8119
8126
|
# @option opts [String] :storage The document storage.
|
8127
|
+
# @option opts [String] :password The password (Base64).
|
8120
8128
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8121
8129
|
def get_page_convert_to_gif_with_http_info(name, page_number, opts = {})
|
8122
8130
|
if @api_client.config.debugging
|
@@ -8139,6 +8147,7 @@ module AsposePdfCloud
|
|
8139
8147
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8140
8148
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8141
8149
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8150
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8142
8151
|
|
8143
8152
|
# header parameters
|
8144
8153
|
header_params = {}
|
@@ -8178,6 +8187,7 @@ module AsposePdfCloud
|
|
8178
8187
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8179
8188
|
# @option opts [String] :folder The document folder.
|
8180
8189
|
# @option opts [String] :storage The document storage.
|
8190
|
+
# @option opts [String] :password The password (Base64).
|
8181
8191
|
# @return [File]
|
8182
8192
|
def get_page_convert_to_jpeg(name, page_number, opts = {})
|
8183
8193
|
@api_client.request_token_if_needed
|
@@ -8201,6 +8211,7 @@ module AsposePdfCloud
|
|
8201
8211
|
# @option opts [Integer] :height The converted image height.
|
8202
8212
|
# @option opts [String] :folder The document folder.
|
8203
8213
|
# @option opts [String] :storage The document storage.
|
8214
|
+
# @option opts [String] :password The password (Base64).
|
8204
8215
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8205
8216
|
def get_page_convert_to_jpeg_with_http_info(name, page_number, opts = {})
|
8206
8217
|
if @api_client.config.debugging
|
@@ -8223,6 +8234,7 @@ module AsposePdfCloud
|
|
8223
8234
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8224
8235
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8225
8236
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8237
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8226
8238
|
|
8227
8239
|
# header parameters
|
8228
8240
|
header_params = {}
|
@@ -8262,6 +8274,7 @@ module AsposePdfCloud
|
|
8262
8274
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8263
8275
|
# @option opts [String] :folder The document folder.
|
8264
8276
|
# @option opts [String] :storage The document storage.
|
8277
|
+
# @option opts [String] :password The password (Base64).
|
8265
8278
|
# @return [File]
|
8266
8279
|
def get_page_convert_to_png(name, page_number, opts = {})
|
8267
8280
|
@api_client.request_token_if_needed
|
@@ -8285,6 +8298,7 @@ module AsposePdfCloud
|
|
8285
8298
|
# @option opts [Integer] :height The converted image height.
|
8286
8299
|
# @option opts [String] :folder The document folder.
|
8287
8300
|
# @option opts [String] :storage The document storage.
|
8301
|
+
# @option opts [String] :password The password (Base64).
|
8288
8302
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8289
8303
|
def get_page_convert_to_png_with_http_info(name, page_number, opts = {})
|
8290
8304
|
if @api_client.config.debugging
|
@@ -8307,6 +8321,7 @@ module AsposePdfCloud
|
|
8307
8321
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8308
8322
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8309
8323
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8324
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8310
8325
|
|
8311
8326
|
# header parameters
|
8312
8327
|
header_params = {}
|
@@ -8346,6 +8361,7 @@ module AsposePdfCloud
|
|
8346
8361
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8347
8362
|
# @option opts [String] :folder The document folder.
|
8348
8363
|
# @option opts [String] :storage The document storage.
|
8364
|
+
# @option opts [String] :password The password (Base64).
|
8349
8365
|
# @return [File]
|
8350
8366
|
def get_page_convert_to_tiff(name, page_number, opts = {})
|
8351
8367
|
@api_client.request_token_if_needed
|
@@ -8369,6 +8385,7 @@ module AsposePdfCloud
|
|
8369
8385
|
# @option opts [Integer] :height The converted image height.
|
8370
8386
|
# @option opts [String] :folder The document folder.
|
8371
8387
|
# @option opts [String] :storage The document storage.
|
8388
|
+
# @option opts [String] :password The password (Base64).
|
8372
8389
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8373
8390
|
def get_page_convert_to_tiff_with_http_info(name, page_number, opts = {})
|
8374
8391
|
if @api_client.config.debugging
|
@@ -8391,6 +8408,7 @@ module AsposePdfCloud
|
|
8391
8408
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8392
8409
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8393
8410
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8411
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8394
8412
|
|
8395
8413
|
# header parameters
|
8396
8414
|
header_params = {}
|
@@ -10785,7 +10803,7 @@ module AsposePdfCloud
|
|
10785
10803
|
return data, status_code, headers
|
10786
10804
|
end
|
10787
10805
|
|
10788
|
-
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
10806
|
+
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content.
|
10789
10807
|
#
|
10790
10808
|
# @param name The document name.
|
10791
10809
|
# @param [Hash] opts the optional parameters
|
@@ -10799,6 +10817,7 @@ module AsposePdfCloud
|
|
10799
10817
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
10800
10818
|
# @option opts [String] :folder The document folder.
|
10801
10819
|
# @option opts [String] :storage The document storage.
|
10820
|
+
# @option opts [String] :password The password (Base64).
|
10802
10821
|
# @return [File]
|
10803
10822
|
def get_pdf_in_storage_to_doc(name, opts = {})
|
10804
10823
|
@api_client.request_token_if_needed
|
@@ -10813,7 +10832,7 @@ module AsposePdfCloud
|
|
10813
10832
|
return data
|
10814
10833
|
end
|
10815
10834
|
|
10816
|
-
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
10835
|
+
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content.
|
10817
10836
|
#
|
10818
10837
|
# @param name The document name.
|
10819
10838
|
# @param [Hash] opts the optional parameters
|
@@ -10827,6 +10846,7 @@ module AsposePdfCloud
|
|
10827
10846
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
10828
10847
|
# @option opts [String] :folder The document folder.
|
10829
10848
|
# @option opts [String] :storage The document storage.
|
10849
|
+
# @option opts [String] :password The password (Base64).
|
10830
10850
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
10831
10851
|
def get_pdf_in_storage_to_doc_with_http_info(name, opts = {})
|
10832
10852
|
if @api_client.config.debugging
|
@@ -10857,6 +10877,7 @@ module AsposePdfCloud
|
|
10857
10877
|
query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
|
10858
10878
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
10859
10879
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
10880
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
10860
10881
|
|
10861
10882
|
# header parameters
|
10862
10883
|
header_params = {}
|
@@ -19110,6 +19131,83 @@ module AsposePdfCloud
|
|
19110
19131
|
return data, status_code, headers
|
19111
19132
|
end
|
19112
19133
|
|
19134
|
+
#
|
19135
|
+
#
|
19136
|
+
# @param name
|
19137
|
+
# @param options
|
19138
|
+
# @param [Hash] opts the optional parameters
|
19139
|
+
# @option opts [String] :storage
|
19140
|
+
# @option opts [String] :folder
|
19141
|
+
# @return [SplitResultResponse]
|
19142
|
+
def post_split_range_pdf_document(name, options, opts = {})
|
19143
|
+
@api_client.request_token_if_needed
|
19144
|
+
data, _status_code, _headers = post_split_range_pdf_document_with_http_info(name, options, opts)
|
19145
|
+
rescue ApiError => error
|
19146
|
+
if error.code == 401
|
19147
|
+
@api_client.request_token_if_needed
|
19148
|
+
data, _status_code, _headers = post_split_range_pdf_document_with_http_info(name, options, opts)
|
19149
|
+
else
|
19150
|
+
raise
|
19151
|
+
end
|
19152
|
+
return data
|
19153
|
+
end
|
19154
|
+
|
19155
|
+
#
|
19156
|
+
#
|
19157
|
+
# @param name
|
19158
|
+
# @param options
|
19159
|
+
# @param [Hash] opts the optional parameters
|
19160
|
+
# @option opts [String] :storage
|
19161
|
+
# @option opts [String] :folder
|
19162
|
+
# @return [Array<(SplitResultResponse, Fixnum, Hash)>] SplitResultResponse data, response status code and response headers
|
19163
|
+
def post_split_range_pdf_document_with_http_info(name, options, opts = {})
|
19164
|
+
if @api_client.config.debugging
|
19165
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_split_range_pdf_document ..."
|
19166
|
+
end
|
19167
|
+
# verify the required parameter 'name' is set
|
19168
|
+
if @api_client.config.client_side_validation && name.nil?
|
19169
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_split_range_pdf_document"
|
19170
|
+
end
|
19171
|
+
# verify the required parameter 'options' is set
|
19172
|
+
if @api_client.config.client_side_validation && options.nil?
|
19173
|
+
fail ArgumentError, "Missing the required parameter 'options' when calling PdfApi.post_split_range_pdf_document"
|
19174
|
+
end
|
19175
|
+
# resource path
|
19176
|
+
local_var_path = "/pdf/{name}/splitrangepdf".sub('{' + 'name' + '}', name.to_s)
|
19177
|
+
|
19178
|
+
# query parameters
|
19179
|
+
query_params = {}
|
19180
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
19181
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
19182
|
+
|
19183
|
+
# header parameters
|
19184
|
+
header_params = {}
|
19185
|
+
# HTTP header 'Accept' (if needed)
|
19186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
19187
|
+
# HTTP header 'Content-Type'
|
19188
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
19189
|
+
|
19190
|
+
# form parameters
|
19191
|
+
form_params = {}
|
19192
|
+
# Fix header in file
|
19193
|
+
post_body = nil
|
19194
|
+
|
19195
|
+
# http body (model)
|
19196
|
+
post_body = @api_client.object_to_http_body(options)
|
19197
|
+
auth_names = ['JWT']
|
19198
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
19199
|
+
:header_params => header_params,
|
19200
|
+
:query_params => query_params,
|
19201
|
+
:form_params => form_params,
|
19202
|
+
:body => post_body,
|
19203
|
+
:auth_names => auth_names,
|
19204
|
+
:return_type => 'SplitResultResponse')
|
19205
|
+
if @api_client.config.debugging
|
19206
|
+
@api_client.config.logger.debug "API called: PdfApi#post_split_range_pdf_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
19207
|
+
end
|
19208
|
+
return data, status_code, headers
|
19209
|
+
end
|
19210
|
+
|
19113
19211
|
# Add document text box fields.
|
19114
19212
|
#
|
19115
19213
|
# @param name The document name.
|
@@ -22842,6 +22940,7 @@ module AsposePdfCloud
|
|
22842
22940
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
22843
22941
|
# @option opts [String] :folder The document folder.
|
22844
22942
|
# @option opts [String] :storage The document storage.
|
22943
|
+
# @option opts [String] :password The password (Base64).
|
22845
22944
|
# @return [AsposeResponse]
|
22846
22945
|
def put_page_convert_to_bmp(name, page_number, out_path, opts = {})
|
22847
22946
|
@api_client.request_token_if_needed
|
@@ -22866,6 +22965,7 @@ module AsposePdfCloud
|
|
22866
22965
|
# @option opts [Integer] :height The converted image height.
|
22867
22966
|
# @option opts [String] :folder The document folder.
|
22868
22967
|
# @option opts [String] :storage The document storage.
|
22968
|
+
# @option opts [String] :password The password (Base64).
|
22869
22969
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
22870
22970
|
def put_page_convert_to_bmp_with_http_info(name, page_number, out_path, opts = {})
|
22871
22971
|
if @api_client.config.debugging
|
@@ -22893,6 +22993,7 @@ module AsposePdfCloud
|
|
22893
22993
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
22894
22994
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
22895
22995
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
22996
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
22896
22997
|
|
22897
22998
|
# header parameters
|
22898
22999
|
header_params = {}
|
@@ -22933,6 +23034,7 @@ module AsposePdfCloud
|
|
22933
23034
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
22934
23035
|
# @option opts [String] :folder The document folder.
|
22935
23036
|
# @option opts [String] :storage The document storage.
|
23037
|
+
# @option opts [String] :password The password (Base64).
|
22936
23038
|
# @return [AsposeResponse]
|
22937
23039
|
def put_page_convert_to_emf(name, page_number, out_path, opts = {})
|
22938
23040
|
@api_client.request_token_if_needed
|
@@ -22957,6 +23059,7 @@ module AsposePdfCloud
|
|
22957
23059
|
# @option opts [Integer] :height The converted image height.
|
22958
23060
|
# @option opts [String] :folder The document folder.
|
22959
23061
|
# @option opts [String] :storage The document storage.
|
23062
|
+
# @option opts [String] :password The password (Base64).
|
22960
23063
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
22961
23064
|
def put_page_convert_to_emf_with_http_info(name, page_number, out_path, opts = {})
|
22962
23065
|
if @api_client.config.debugging
|
@@ -22984,6 +23087,7 @@ module AsposePdfCloud
|
|
22984
23087
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
22985
23088
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
22986
23089
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23090
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
22987
23091
|
|
22988
23092
|
# header parameters
|
22989
23093
|
header_params = {}
|
@@ -23024,6 +23128,7 @@ module AsposePdfCloud
|
|
23024
23128
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
23025
23129
|
# @option opts [String] :folder The document folder.
|
23026
23130
|
# @option opts [String] :storage The document storage.
|
23131
|
+
# @option opts [String] :password The password (Base64).
|
23027
23132
|
# @return [AsposeResponse]
|
23028
23133
|
def put_page_convert_to_gif(name, page_number, out_path, opts = {})
|
23029
23134
|
@api_client.request_token_if_needed
|
@@ -23048,6 +23153,7 @@ module AsposePdfCloud
|
|
23048
23153
|
# @option opts [Integer] :height The converted image height.
|
23049
23154
|
# @option opts [String] :folder The document folder.
|
23050
23155
|
# @option opts [String] :storage The document storage.
|
23156
|
+
# @option opts [String] :password The password (Base64).
|
23051
23157
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23052
23158
|
def put_page_convert_to_gif_with_http_info(name, page_number, out_path, opts = {})
|
23053
23159
|
if @api_client.config.debugging
|
@@ -23075,6 +23181,7 @@ module AsposePdfCloud
|
|
23075
23181
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
23076
23182
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23077
23183
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23184
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23078
23185
|
|
23079
23186
|
# header parameters
|
23080
23187
|
header_params = {}
|
@@ -23115,6 +23222,7 @@ module AsposePdfCloud
|
|
23115
23222
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
23116
23223
|
# @option opts [String] :folder The document folder.
|
23117
23224
|
# @option opts [String] :storage The document storage.
|
23225
|
+
# @option opts [String] :password The password (Base64).
|
23118
23226
|
# @return [AsposeResponse]
|
23119
23227
|
def put_page_convert_to_jpeg(name, page_number, out_path, opts = {})
|
23120
23228
|
@api_client.request_token_if_needed
|
@@ -23139,6 +23247,7 @@ module AsposePdfCloud
|
|
23139
23247
|
# @option opts [Integer] :height The converted image height.
|
23140
23248
|
# @option opts [String] :folder The document folder.
|
23141
23249
|
# @option opts [String] :storage The document storage.
|
23250
|
+
# @option opts [String] :password The password (Base64).
|
23142
23251
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23143
23252
|
def put_page_convert_to_jpeg_with_http_info(name, page_number, out_path, opts = {})
|
23144
23253
|
if @api_client.config.debugging
|
@@ -23166,6 +23275,7 @@ module AsposePdfCloud
|
|
23166
23275
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
23167
23276
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23168
23277
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23278
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23169
23279
|
|
23170
23280
|
# header parameters
|
23171
23281
|
header_params = {}
|
@@ -23206,6 +23316,7 @@ module AsposePdfCloud
|
|
23206
23316
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
23207
23317
|
# @option opts [String] :folder The document folder.
|
23208
23318
|
# @option opts [String] :storage The document storage.
|
23319
|
+
# @option opts [String] :password The password (Base64).
|
23209
23320
|
# @return [AsposeResponse]
|
23210
23321
|
def put_page_convert_to_png(name, page_number, out_path, opts = {})
|
23211
23322
|
@api_client.request_token_if_needed
|
@@ -23230,6 +23341,7 @@ module AsposePdfCloud
|
|
23230
23341
|
# @option opts [Integer] :height The converted image height.
|
23231
23342
|
# @option opts [String] :folder The document folder.
|
23232
23343
|
# @option opts [String] :storage The document storage.
|
23344
|
+
# @option opts [String] :password The password (Base64).
|
23233
23345
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23234
23346
|
def put_page_convert_to_png_with_http_info(name, page_number, out_path, opts = {})
|
23235
23347
|
if @api_client.config.debugging
|
@@ -23257,6 +23369,7 @@ module AsposePdfCloud
|
|
23257
23369
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
23258
23370
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23259
23371
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23372
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23260
23373
|
|
23261
23374
|
# header parameters
|
23262
23375
|
header_params = {}
|
@@ -23297,6 +23410,7 @@ module AsposePdfCloud
|
|
23297
23410
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
23298
23411
|
# @option opts [String] :folder The document folder.
|
23299
23412
|
# @option opts [String] :storage The document storage.
|
23413
|
+
# @option opts [String] :password The password (Base64).
|
23300
23414
|
# @return [AsposeResponse]
|
23301
23415
|
def put_page_convert_to_tiff(name, page_number, out_path, opts = {})
|
23302
23416
|
@api_client.request_token_if_needed
|
@@ -23321,6 +23435,7 @@ module AsposePdfCloud
|
|
23321
23435
|
# @option opts [Integer] :height The converted image height.
|
23322
23436
|
# @option opts [String] :folder The document folder.
|
23323
23437
|
# @option opts [String] :storage The document storage.
|
23438
|
+
# @option opts [String] :password The password (Base64).
|
23324
23439
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23325
23440
|
def put_page_convert_to_tiff_with_http_info(name, page_number, out_path, opts = {})
|
23326
23441
|
if @api_client.config.debugging
|
@@ -23348,6 +23463,7 @@ module AsposePdfCloud
|
|
23348
23463
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
23349
23464
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23350
23465
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23466
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23351
23467
|
|
23352
23468
|
# header parameters
|
23353
23469
|
header_params = {}
|
@@ -23552,6 +23668,7 @@ module AsposePdfCloud
|
|
23552
23668
|
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
23553
23669
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
23554
23670
|
# @option opts [String] :storage The document storage.
|
23671
|
+
# @option opts [String] :password The password (Base64).
|
23555
23672
|
# @option opts [File] :file A file to be converted.
|
23556
23673
|
# @return [AsposeResponse]
|
23557
23674
|
def put_pdf_in_request_to_doc(out_path, opts = {})
|
@@ -23580,6 +23697,7 @@ module AsposePdfCloud
|
|
23580
23697
|
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
23581
23698
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
23582
23699
|
# @option opts [String] :storage The document storage.
|
23700
|
+
# @option opts [String] :password The password (Base64).
|
23583
23701
|
# @option opts [File] :file A file to be converted.
|
23584
23702
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23585
23703
|
def put_pdf_in_request_to_doc_with_http_info(out_path, opts = {})
|
@@ -23611,6 +23729,7 @@ module AsposePdfCloud
|
|
23611
23729
|
query_params[:'recognizeBullets'] = opts[:'recognize_bullets'] if !opts[:'recognize_bullets'].nil?
|
23612
23730
|
query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
|
23613
23731
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23732
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23614
23733
|
|
23615
23734
|
# header parameters
|
23616
23735
|
header_params = {}
|
@@ -24749,7 +24868,7 @@ module AsposePdfCloud
|
|
24749
24868
|
return data, status_code, headers
|
24750
24869
|
end
|
24751
24870
|
|
24752
|
-
# Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
|
24871
|
+
# Converts PDF document (located on storage) to DOC format and uploads resulting file to storage.
|
24753
24872
|
#
|
24754
24873
|
# @param name The document name.
|
24755
24874
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
@@ -24764,6 +24883,7 @@ module AsposePdfCloud
|
|
24764
24883
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
24765
24884
|
# @option opts [String] :folder The document folder.
|
24766
24885
|
# @option opts [String] :storage The document storage.
|
24886
|
+
# @option opts [String] :password The password (Base64).
|
24767
24887
|
# @return [AsposeResponse]
|
24768
24888
|
def put_pdf_in_storage_to_doc(name, out_path, opts = {})
|
24769
24889
|
@api_client.request_token_if_needed
|
@@ -24778,7 +24898,7 @@ module AsposePdfCloud
|
|
24778
24898
|
return data
|
24779
24899
|
end
|
24780
24900
|
|
24781
|
-
# Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
|
24901
|
+
# Converts PDF document (located on storage) to DOC format and uploads resulting file to storage.
|
24782
24902
|
#
|
24783
24903
|
# @param name The document name.
|
24784
24904
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
@@ -24793,6 +24913,7 @@ module AsposePdfCloud
|
|
24793
24913
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
24794
24914
|
# @option opts [String] :folder The document folder.
|
24795
24915
|
# @option opts [String] :storage The document storage.
|
24916
|
+
# @option opts [String] :password The password (Base64).
|
24796
24917
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
24797
24918
|
def put_pdf_in_storage_to_doc_with_http_info(name, out_path, opts = {})
|
24798
24919
|
if @api_client.config.debugging
|
@@ -24828,6 +24949,7 @@ module AsposePdfCloud
|
|
24828
24949
|
query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
|
24829
24950
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
24830
24951
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
24952
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
24831
24953
|
|
24832
24954
|
# header parameters
|
24833
24955
|
header_params = {}
|
@@ -409,7 +409,6 @@ module AsposePdfCloud
|
|
409
409
|
end
|
410
410
|
end
|
411
411
|
|
412
|
-
|
413
412
|
# Request access and refresh tokens if needed
|
414
413
|
def request_token_if_needed
|
415
414
|
# check token exists
|
@@ -419,7 +418,9 @@ module AsposePdfCloud
|
|
419
418
|
|
420
419
|
# resource path
|
421
420
|
local_var_path = "/connect/token"
|
422
|
-
|
421
|
+
tokenUrl = build_request_url(local_var_path).gsub('/v3.0', '')
|
422
|
+
print("\nbase_url: " + config.base_url + "\n")
|
423
|
+
print("\ntokenUrl: " + tokenUrl + "\n")
|
423
424
|
|
424
425
|
# header parameters
|
425
426
|
header_params = {}
|
@@ -435,21 +436,18 @@ module AsposePdfCloud
|
|
435
436
|
|
436
437
|
body = {}
|
437
438
|
|
438
|
-
|
439
439
|
req_opts = {
|
440
440
|
:headers => header_params,
|
441
441
|
:params => query_params,
|
442
442
|
:body => body
|
443
443
|
}
|
444
444
|
|
445
|
-
|
446
445
|
req_body = build_request_body(header_params, form_params, body)
|
447
446
|
req_opts.update :body => req_body
|
448
447
|
|
449
448
|
req_opts[:params] = query_params
|
450
449
|
|
451
|
-
|
452
|
-
conn = Faraday.new url, {:params => query_params, :headers => header_params} do |f|
|
450
|
+
conn = Faraday.new tokenUrl, {:params => query_params, :headers => header_params} do |f|
|
453
451
|
f.request :multipart
|
454
452
|
f.request :url_encoded
|
455
453
|
f.adapter Faraday.default_adapter
|
@@ -459,8 +457,7 @@ module AsposePdfCloud
|
|
459
457
|
req_opts[:body] = nil
|
460
458
|
end
|
461
459
|
|
462
|
-
|
463
|
-
response = conn.post url, form_params, req_opts[:body]
|
460
|
+
response = conn.post tokenUrl, form_params, req_opts[:body]
|
464
461
|
data = JSON.parse("[#{response.body}]", :symbolize_names => true)[0]
|
465
462
|
|
466
463
|
@config.access_token = data[:access_token]
|
@@ -470,7 +467,6 @@ module AsposePdfCloud
|
|
470
467
|
def add_o_auth_token(req_opts)
|
471
468
|
req_opts[:headers][:Authorization] = "Bearer " + @config.access_token
|
472
469
|
end
|
473
|
-
|
474
|
-
|
470
|
+
|
475
471
|
end
|
476
|
-
end
|
472
|
+
end
|