cloudmersive-convert-api-client 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/EditPdfApi.md +6 -2
- data/docs/GetDocxPagesRequest.md +1 -0
- data/docs/MergeDocumentApi.md +80 -4
- data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +3 -0
- data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +91 -4
- data/lib/cloudmersive-convert-api-client/models/get_docx_pages_request.rb +14 -4
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/edit_pdf_api_spec.rb +1 -0
- data/spec/api/merge_document_api_spec.rb +23 -2
- data/spec/models/get_docx_pages_request_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32d818416ca08a5caa6a1c680908960fc645ef08b9de8d9682db3be88b1bf14e
|
4
|
+
data.tar.gz: dead491305e0198ca2fec69ab6a06dcc2cd7f0e1b030a136077edc8440049c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a98554532632fce600d17107fb82d5337a8ed00f5b09d3a0822386940bd0a947398e08719ab83192bce6e0383cad6eb64a56ac01ebf6caada85d976adc9ce23b
|
7
|
+
data.tar.gz: 64429bee4aeed45268b13b8dbe9bb7810f5db08d13e142bd7c4385bb95c7ad44e7b87d570e9772f95a3e7a688e80e965a3672fe155a18e90f191b0459ee45e99
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 1.7.
|
10
|
+
- Package version: 1.7.3
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-convert-api-client-1.7.
|
26
|
+
gem install ./cloudmersive-convert-api-client-1.7.3.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-convert-api-client-1.7.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-convert-api-client-1.7.3.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-convert-api-client', '~> 1.7.
|
34
|
+
gem 'cloudmersive-convert-api-client', '~> 1.7.3'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -228,7 +228,8 @@ Class | Method | HTTP request | Description
|
|
228
228
|
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_docx_multi**](docs/MergeDocumentApi.md#merge_document_docx_multi) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together
|
229
229
|
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pdf**](docs/MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Two PDF Files Together
|
230
230
|
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pdf_multi**](docs/MergeDocumentApi.md#merge_document_pdf_multi) | **POST** /convert/merge/pdf/multi | Merge Multple PDF Files Together
|
231
|
-
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_png**](docs/MergeDocumentApi.md#merge_document_png) | **POST** /convert/merge/png/vertical | Merge
|
231
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_png**](docs/MergeDocumentApi.md#merge_document_png) | **POST** /convert/merge/png/vertical | Merge Two PNG Files Together
|
232
|
+
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_png_multi**](docs/MergeDocumentApi.md#merge_document_png_multi) | **POST** /convert/merge/png/vertical/multi | Merge Multple PNG Files Together
|
232
233
|
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pptx**](docs/MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge Two PowerPoint PPTX Together
|
233
234
|
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_pptx_multi**](docs/MergeDocumentApi.md#merge_document_pptx_multi) | **POST** /convert/merge/pptx/multi | Merge Multple PowerPoint PPTX Together
|
234
235
|
*CloudmersiveConvertApiClient::MergeDocumentApi* | [**merge_document_txt**](docs/MergeDocumentApi.md#merge_document_txt) | **POST** /convert/merge/txt | Merge Two Text (TXT) Files Together
|
data/docs/EditPdfApi.md
CHANGED
@@ -420,7 +420,7 @@ Name | Type | Description | Notes
|
|
420
420
|
|
421
421
|
|
422
422
|
# **edit_pdf_get_pdf_text_by_pages**
|
423
|
-
> PdfTextByPageResult edit_pdf_get_pdf_text_by_pages(input_file)
|
423
|
+
> PdfTextByPageResult edit_pdf_get_pdf_text_by_pages(input_file, opts)
|
424
424
|
|
425
425
|
Get text in a PDF document by page
|
426
426
|
|
@@ -442,10 +442,13 @@ api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
|
442
442
|
|
443
443
|
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
444
444
|
|
445
|
+
opts = {
|
446
|
+
text_formatting_mode: "text_formatting_mode_example" # String | Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'.
|
447
|
+
}
|
445
448
|
|
446
449
|
begin
|
447
450
|
#Get text in a PDF document by page
|
448
|
-
result = api_instance.edit_pdf_get_pdf_text_by_pages(input_file)
|
451
|
+
result = api_instance.edit_pdf_get_pdf_text_by_pages(input_file, opts)
|
449
452
|
p result
|
450
453
|
rescue CloudmersiveConvertApiClient::ApiError => e
|
451
454
|
puts "Exception when calling EditPdfApi->edit_pdf_get_pdf_text_by_pages: #{e}"
|
@@ -457,6 +460,7 @@ end
|
|
457
460
|
Name | Type | Description | Notes
|
458
461
|
------------- | ------------- | ------------- | -------------
|
459
462
|
**input_file** | **File**| Input file to perform the operation on. |
|
463
|
+
**text_formatting_mode** | **String**| Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. | [optional]
|
460
464
|
|
461
465
|
### Return type
|
462
466
|
|
data/docs/GetDocxPagesRequest.md
CHANGED
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
7
7
|
**input_file_url** | **String** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
|
8
|
+
**maximum_pages** | **Integer** | Optional: Maximum number of pages to return; set to 0 or do not supply to return all pages | [optional]
|
8
9
|
|
9
10
|
|
data/docs/MergeDocumentApi.md
CHANGED
@@ -8,7 +8,8 @@ Method | HTTP request | Description
|
|
8
8
|
[**merge_document_docx_multi**](MergeDocumentApi.md#merge_document_docx_multi) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together
|
9
9
|
[**merge_document_pdf**](MergeDocumentApi.md#merge_document_pdf) | **POST** /convert/merge/pdf | Merge Two PDF Files Together
|
10
10
|
[**merge_document_pdf_multi**](MergeDocumentApi.md#merge_document_pdf_multi) | **POST** /convert/merge/pdf/multi | Merge Multple PDF Files Together
|
11
|
-
[**merge_document_png**](MergeDocumentApi.md#merge_document_png) | **POST** /convert/merge/png/vertical | Merge
|
11
|
+
[**merge_document_png**](MergeDocumentApi.md#merge_document_png) | **POST** /convert/merge/png/vertical | Merge Two PNG Files Together
|
12
|
+
[**merge_document_png_multi**](MergeDocumentApi.md#merge_document_png_multi) | **POST** /convert/merge/png/vertical/multi | Merge Multple PNG Files Together
|
12
13
|
[**merge_document_pptx**](MergeDocumentApi.md#merge_document_pptx) | **POST** /convert/merge/pptx | Merge Two PowerPoint PPTX Together
|
13
14
|
[**merge_document_pptx_multi**](MergeDocumentApi.md#merge_document_pptx_multi) | **POST** /convert/merge/pptx/multi | Merge Multple PowerPoint PPTX Together
|
14
15
|
[**merge_document_txt**](MergeDocumentApi.md#merge_document_txt) | **POST** /convert/merge/txt | Merge Two Text (TXT) Files Together
|
@@ -284,9 +285,9 @@ Name | Type | Description | Notes
|
|
284
285
|
# **merge_document_png**
|
285
286
|
> String merge_document_png(input_file1, input_file2)
|
286
287
|
|
287
|
-
Merge
|
288
|
+
Merge Two PNG Files Together
|
288
289
|
|
289
|
-
Combine
|
290
|
+
Combine two PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
290
291
|
|
291
292
|
### Example
|
292
293
|
```ruby
|
@@ -308,7 +309,7 @@ input_file2 = File.new("/path/to/file.txt") # File | Second input file to perfor
|
|
308
309
|
|
309
310
|
|
310
311
|
begin
|
311
|
-
#Merge
|
312
|
+
#Merge Two PNG Files Together
|
312
313
|
result = api_instance.merge_document_png(input_file1, input_file2)
|
313
314
|
p result
|
314
315
|
rescue CloudmersiveConvertApiClient::ApiError => e
|
@@ -338,6 +339,81 @@ Name | Type | Description | Notes
|
|
338
339
|
|
339
340
|
|
340
341
|
|
342
|
+
# **merge_document_png_multi**
|
343
|
+
> String merge_document_png_multi(input_file1, input_file2, opts)
|
344
|
+
|
345
|
+
Merge Multple PNG Files Together
|
346
|
+
|
347
|
+
Combine multiple PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
348
|
+
|
349
|
+
### Example
|
350
|
+
```ruby
|
351
|
+
# load the gem
|
352
|
+
require 'cloudmersive-convert-api-client'
|
353
|
+
# setup authorization
|
354
|
+
CloudmersiveConvertApiClient.configure do |config|
|
355
|
+
# Configure API key authorization: Apikey
|
356
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
357
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
358
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
359
|
+
end
|
360
|
+
|
361
|
+
api_instance = CloudmersiveConvertApiClient::MergeDocumentApi.new
|
362
|
+
|
363
|
+
input_file1 = File.new("/path/to/file.txt") # File | First input file to perform the operation on.
|
364
|
+
|
365
|
+
input_file2 = File.new("/path/to/file.txt") # File | Second input file to perform the operation on.
|
366
|
+
|
367
|
+
opts = {
|
368
|
+
input_file3: File.new("/path/to/file.txt"), # File | Third input file to perform the operation on.
|
369
|
+
input_file4: File.new("/path/to/file.txt"), # File | Fourth input file to perform the operation on.
|
370
|
+
input_file5: File.new("/path/to/file.txt"), # File | Fifth input file to perform the operation on.
|
371
|
+
input_file6: File.new("/path/to/file.txt"), # File | Sixth input file to perform the operation on.
|
372
|
+
input_file7: File.new("/path/to/file.txt"), # File | Seventh input file to perform the operation on.
|
373
|
+
input_file8: File.new("/path/to/file.txt"), # File | Eighth input file to perform the operation on.
|
374
|
+
input_file9: File.new("/path/to/file.txt"), # File | Ninth input file to perform the operation on.
|
375
|
+
input_file10: File.new("/path/to/file.txt") # File | Tenth input file to perform the operation on.
|
376
|
+
}
|
377
|
+
|
378
|
+
begin
|
379
|
+
#Merge Multple PNG Files Together
|
380
|
+
result = api_instance.merge_document_png_multi(input_file1, input_file2, opts)
|
381
|
+
p result
|
382
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
383
|
+
puts "Exception when calling MergeDocumentApi->merge_document_png_multi: #{e}"
|
384
|
+
end
|
385
|
+
```
|
386
|
+
|
387
|
+
### Parameters
|
388
|
+
|
389
|
+
Name | Type | Description | Notes
|
390
|
+
------------- | ------------- | ------------- | -------------
|
391
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
392
|
+
**input_file2** | **File**| Second input file to perform the operation on. |
|
393
|
+
**input_file3** | **File**| Third input file to perform the operation on. | [optional]
|
394
|
+
**input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
|
395
|
+
**input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
|
396
|
+
**input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
|
397
|
+
**input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
|
398
|
+
**input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
|
399
|
+
**input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
|
400
|
+
**input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
|
401
|
+
|
402
|
+
### Return type
|
403
|
+
|
404
|
+
**String**
|
405
|
+
|
406
|
+
### Authorization
|
407
|
+
|
408
|
+
[Apikey](../README.md#Apikey)
|
409
|
+
|
410
|
+
### HTTP request headers
|
411
|
+
|
412
|
+
- **Content-Type**: multipart/form-data
|
413
|
+
- **Accept**: application/octet-stream
|
414
|
+
|
415
|
+
|
416
|
+
|
341
417
|
# **merge_document_pptx**
|
342
418
|
> String merge_document_pptx(input_file1, input_file2)
|
343
419
|
|
@@ -445,6 +445,7 @@ module CloudmersiveConvertApiClient
|
|
445
445
|
# Gets the text in a PDF by page
|
446
446
|
# @param input_file Input file to perform the operation on.
|
447
447
|
# @param [Hash] opts the optional parameters
|
448
|
+
# @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'.
|
448
449
|
# @return [PdfTextByPageResult]
|
449
450
|
def edit_pdf_get_pdf_text_by_pages(input_file, opts = {})
|
450
451
|
data, _status_code, _headers = edit_pdf_get_pdf_text_by_pages_with_http_info(input_file, opts)
|
@@ -455,6 +456,7 @@ module CloudmersiveConvertApiClient
|
|
455
456
|
# Gets the text in a PDF by page
|
456
457
|
# @param input_file Input file to perform the operation on.
|
457
458
|
# @param [Hash] opts the optional parameters
|
459
|
+
# @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'.
|
458
460
|
# @return [Array<(PdfTextByPageResult, Fixnum, Hash)>] PdfTextByPageResult data, response status code and response headers
|
459
461
|
def edit_pdf_get_pdf_text_by_pages_with_http_info(input_file, opts = {})
|
460
462
|
if @api_client.config.debugging
|
@@ -476,6 +478,7 @@ module CloudmersiveConvertApiClient
|
|
476
478
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
477
479
|
# HTTP header 'Content-Type'
|
478
480
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
481
|
+
header_params[:'textFormattingMode'] = opts[:'text_formatting_mode'] if !opts[:'text_formatting_mode'].nil?
|
479
482
|
|
480
483
|
# form parameters
|
481
484
|
form_params = {}
|
@@ -320,8 +320,8 @@ module CloudmersiveConvertApiClient
|
|
320
320
|
return data, status_code, headers
|
321
321
|
end
|
322
322
|
|
323
|
-
# Merge
|
324
|
-
# Combine
|
323
|
+
# Merge Two PNG Files Together
|
324
|
+
# Combine two PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
325
325
|
# @param input_file1 First input file to perform the operation on.
|
326
326
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
327
327
|
# @param [Hash] opts the optional parameters
|
@@ -331,8 +331,8 @@ module CloudmersiveConvertApiClient
|
|
331
331
|
return data
|
332
332
|
end
|
333
333
|
|
334
|
-
# Merge
|
335
|
-
# Combine
|
334
|
+
# Merge Two PNG Files Together
|
335
|
+
# Combine two PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
336
336
|
# @param input_file1 First input file to perform the operation on.
|
337
337
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
338
338
|
# @param [Hash] opts the optional parameters
|
@@ -383,6 +383,93 @@ module CloudmersiveConvertApiClient
|
|
383
383
|
return data, status_code, headers
|
384
384
|
end
|
385
385
|
|
386
|
+
# Merge Multple PNG Files Together
|
387
|
+
# Combine multiple PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
388
|
+
# @param input_file1 First input file to perform the operation on.
|
389
|
+
# @param input_file2 Second input file to perform the operation on.
|
390
|
+
# @param [Hash] opts the optional parameters
|
391
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
392
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
393
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
394
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
395
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
396
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
397
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
398
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
399
|
+
# @return [String]
|
400
|
+
def merge_document_png_multi(input_file1, input_file2, opts = {})
|
401
|
+
data, _status_code, _headers = merge_document_png_multi_with_http_info(input_file1, input_file2, opts)
|
402
|
+
return data
|
403
|
+
end
|
404
|
+
|
405
|
+
# Merge Multple PNG Files Together
|
406
|
+
# Combine multiple PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
407
|
+
# @param input_file1 First input file to perform the operation on.
|
408
|
+
# @param input_file2 Second input file to perform the operation on.
|
409
|
+
# @param [Hash] opts the optional parameters
|
410
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
411
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
412
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
413
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
414
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
415
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
416
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
417
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
418
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
419
|
+
def merge_document_png_multi_with_http_info(input_file1, input_file2, opts = {})
|
420
|
+
if @api_client.config.debugging
|
421
|
+
@api_client.config.logger.debug "Calling API: MergeDocumentApi.merge_document_png_multi ..."
|
422
|
+
end
|
423
|
+
# verify the required parameter 'input_file1' is set
|
424
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
425
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_png_multi"
|
426
|
+
end
|
427
|
+
# verify the required parameter 'input_file2' is set
|
428
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
429
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_png_multi"
|
430
|
+
end
|
431
|
+
# resource path
|
432
|
+
local_var_path = "/convert/merge/png/vertical/multi"
|
433
|
+
|
434
|
+
# query parameters
|
435
|
+
query_params = {}
|
436
|
+
|
437
|
+
# header parameters
|
438
|
+
header_params = {}
|
439
|
+
# HTTP header 'Accept' (if needed)
|
440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
441
|
+
# HTTP header 'Content-Type'
|
442
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
443
|
+
|
444
|
+
# form parameters
|
445
|
+
form_params = {}
|
446
|
+
form_params["inputFile1"] = input_file1
|
447
|
+
form_params["inputFile2"] = input_file2
|
448
|
+
form_params["inputFile3"] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
|
449
|
+
form_params["inputFile4"] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
|
450
|
+
form_params["inputFile5"] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
|
451
|
+
form_params["inputFile6"] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
|
452
|
+
form_params["inputFile7"] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
|
453
|
+
form_params["inputFile8"] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
|
454
|
+
form_params["inputFile9"] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
|
455
|
+
form_params["inputFile10"] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
|
456
|
+
|
457
|
+
# http body (model)
|
458
|
+
post_body = nil
|
459
|
+
auth_names = ['Apikey']
|
460
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
461
|
+
:header_params => header_params,
|
462
|
+
:query_params => query_params,
|
463
|
+
:form_params => form_params,
|
464
|
+
:body => post_body,
|
465
|
+
:auth_names => auth_names,
|
466
|
+
:return_type => 'String')
|
467
|
+
if @api_client.config.debugging
|
468
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_png_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
469
|
+
end
|
470
|
+
return data, status_code, headers
|
471
|
+
end
|
472
|
+
|
386
473
|
# Merge Two PowerPoint PPTX Together
|
387
474
|
# Combine two Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
388
475
|
# @param input_file1 First input file to perform the operation on.
|
@@ -21,12 +21,16 @@ module CloudmersiveConvertApiClient
|
|
21
21
|
# Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public).
|
22
22
|
attr_accessor :input_file_url
|
23
23
|
|
24
|
+
# Optional: Maximum number of pages to return; set to 0 or do not supply to return all pages
|
25
|
+
attr_accessor :maximum_pages
|
26
|
+
|
24
27
|
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'input_file_bytes' => :'InputFileBytes',
|
29
|
-
:'input_file_url' => :'InputFileUrl'
|
32
|
+
:'input_file_url' => :'InputFileUrl',
|
33
|
+
:'maximum_pages' => :'MaximumPages'
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -34,7 +38,8 @@ module CloudmersiveConvertApiClient
|
|
34
38
|
def self.swagger_types
|
35
39
|
{
|
36
40
|
:'input_file_bytes' => :'String',
|
37
|
-
:'input_file_url' => :'String'
|
41
|
+
:'input_file_url' => :'String',
|
42
|
+
:'maximum_pages' => :'Integer'
|
38
43
|
}
|
39
44
|
end
|
40
45
|
|
@@ -54,6 +59,10 @@ module CloudmersiveConvertApiClient
|
|
54
59
|
self.input_file_url = attributes[:'InputFileUrl']
|
55
60
|
end
|
56
61
|
|
62
|
+
if attributes.has_key?(:'MaximumPages')
|
63
|
+
self.maximum_pages = attributes[:'MaximumPages']
|
64
|
+
end
|
65
|
+
|
57
66
|
end
|
58
67
|
|
59
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -91,7 +100,8 @@ module CloudmersiveConvertApiClient
|
|
91
100
|
return true if self.equal?(o)
|
92
101
|
self.class == o.class &&
|
93
102
|
input_file_bytes == o.input_file_bytes &&
|
94
|
-
input_file_url == o.input_file_url
|
103
|
+
input_file_url == o.input_file_url &&
|
104
|
+
maximum_pages == o.maximum_pages
|
95
105
|
end
|
96
106
|
|
97
107
|
# @see the `==` method
|
@@ -103,7 +113,7 @@ module CloudmersiveConvertApiClient
|
|
103
113
|
# Calculates hash code according to all attributes.
|
104
114
|
# @return [Fixnum] Hash code
|
105
115
|
def hash
|
106
|
-
[input_file_bytes, input_file_url].hash
|
116
|
+
[input_file_bytes, input_file_url, maximum_pages].hash
|
107
117
|
end
|
108
118
|
|
109
119
|
# Builds the object from hash
|
@@ -127,6 +127,7 @@ describe 'EditPdfApi' do
|
|
127
127
|
# Gets the text in a PDF by page
|
128
128
|
# @param input_file Input file to perform the operation on.
|
129
129
|
# @param [Hash] opts the optional parameters
|
130
|
+
# @option opts [String] :text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'.
|
130
131
|
# @return [PdfTextByPageResult]
|
131
132
|
describe 'edit_pdf_get_pdf_text_by_pages test' do
|
132
133
|
it "should work" do
|
@@ -101,8 +101,8 @@ describe 'MergeDocumentApi' do
|
|
101
101
|
end
|
102
102
|
|
103
103
|
# unit tests for merge_document_png
|
104
|
-
# Merge
|
105
|
-
# Combine
|
104
|
+
# Merge Two PNG Files Together
|
105
|
+
# Combine two PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
106
106
|
# @param input_file1 First input file to perform the operation on.
|
107
107
|
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
108
108
|
# @param [Hash] opts the optional parameters
|
@@ -113,6 +113,27 @@ describe 'MergeDocumentApi' do
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
# unit tests for merge_document_png_multi
|
117
|
+
# Merge Multple PNG Files Together
|
118
|
+
# Combine multiple PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
|
119
|
+
# @param input_file1 First input file to perform the operation on.
|
120
|
+
# @param input_file2 Second input file to perform the operation on.
|
121
|
+
# @param [Hash] opts the optional parameters
|
122
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
123
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
124
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
125
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
126
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
127
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
128
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
129
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
130
|
+
# @return [String]
|
131
|
+
describe 'merge_document_png_multi test' do
|
132
|
+
it "should work" do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
116
137
|
# unit tests for merge_document_pptx
|
117
138
|
# Merge Two PowerPoint PPTX Together
|
118
139
|
# Combine two Office PowerPoint presentations (pptx) into one single Office PowerPoint presentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-convert-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|