cloudmersive-convert-api-client 1.7.2 → 1.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +47 -6
- data/docs/AutodetectToThumbnailsResult.md +9 -0
- data/docs/ConvertDataApi.md +6 -2
- data/docs/ConvertDocumentApi.md +796 -86
- data/docs/CsvCollection.md +10 -0
- data/docs/CsvFileResult.md +9 -0
- data/docs/DocumentValidationResult.md +1 -0
- data/docs/DocxParagraph.md +1 -1
- data/docs/DocxRun.md +1 -1
- data/docs/DocxText.md +1 -1
- data/docs/DocxToPngResult.md +9 -0
- data/docs/EditDocumentApi.md +110 -0
- data/docs/EditPdfApi.md +6 -2
- data/docs/EmlAttachment.md +9 -0
- data/docs/EmlToHtmlResult.md +18 -0
- data/docs/FindDocxParagraphRequest.md +11 -0
- data/docs/FindDocxParagraphResponse.md +10 -0
- data/docs/GetDocxPagesRequest.md +1 -0
- data/docs/GetFileTypeIconResult.md +10 -0
- data/docs/MergeDocumentApi.md +80 -4
- data/docs/MsgAttachment.md +9 -0
- data/docs/MsgToHtmlResult.md +16 -0
- data/docs/PptxToPngResult.md +9 -0
- data/docs/ReplaceDocxParagraphRequest.md +12 -0
- data/docs/ReplaceDocxParagraphResponse.md +9 -0
- data/docs/Thumbnail.md +9 -0
- data/docs/ValidateDocumentApi.md +386 -1
- data/docs/XlsxToPngResult.md +9 -0
- data/docs/ZipArchiveApi.md +144 -5
- data/docs/ZipEncryptionAdvancedRequest.md +10 -0
- data/lib/cloudmersive-convert-api-client.rb +17 -0
- data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +3 -0
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +722 -6
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +110 -0
- 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/api/validate_document_api.rb +394 -2
- data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +160 -6
- data/lib/cloudmersive-convert-api-client/models/autodetect_to_thumbnails_result.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/csv_collection.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/csv_file_result.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +1 -1
- data/lib/cloudmersive-convert-api-client/models/docx_run.rb +1 -1
- data/lib/cloudmersive-convert-api-client/models/docx_text.rb +1 -1
- data/lib/cloudmersive-convert-api-client/models/docx_to_png_result.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/eml_attachment.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/eml_to_html_result.rb +291 -0
- data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_request.rb +235 -0
- data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_response.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_pages_request.rb +14 -4
- data/lib/cloudmersive-convert-api-client/models/get_file_type_icon_result.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/msg_attachment.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/msg_to_html_result.rb +271 -0
- data/lib/cloudmersive-convert-api-client/models/pptx_to_png_result.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_request.rb +245 -0
- data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_response.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/thumbnail.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_to_png_result.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/zip_encryption_advanced_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/convert_data_api_spec.rb +1 -0
- data/spec/api/convert_document_api_spec.rb +163 -3
- data/spec/api/edit_document_api_spec.rb +24 -0
- data/spec/api/edit_pdf_api_spec.rb +1 -0
- data/spec/api/merge_document_api_spec.rb +23 -2
- data/spec/api/validate_document_api_spec.rb +85 -1
- data/spec/api/zip_archive_api_spec.rb +36 -1
- data/spec/models/autodetect_to_thumbnails_result_spec.rb +48 -0
- data/spec/models/csv_collection_spec.rb +54 -0
- data/spec/models/csv_file_result_spec.rb +48 -0
- data/spec/models/document_validation_result_spec.rb +6 -0
- data/spec/models/docx_to_png_result_spec.rb +48 -0
- data/spec/models/eml_attachment_spec.rb +48 -0
- data/spec/models/eml_to_html_result_spec.rb +102 -0
- data/spec/models/find_docx_paragraph_request_spec.rb +60 -0
- data/spec/models/find_docx_paragraph_response_spec.rb +54 -0
- data/spec/models/get_docx_pages_request_spec.rb +6 -0
- data/spec/models/get_file_type_icon_result_spec.rb +54 -0
- data/spec/models/msg_attachment_spec.rb +48 -0
- data/spec/models/msg_to_html_result_spec.rb +90 -0
- data/spec/models/pptx_to_png_result_spec.rb +48 -0
- data/spec/models/replace_docx_paragraph_request_spec.rb +66 -0
- data/spec/models/replace_docx_paragraph_response_spec.rb +48 -0
- data/spec/models/thumbnail_spec.rb +48 -0
- data/spec/models/xlsx_to_png_result_spec.rb +48 -0
- data/spec/models/zip_encryption_advanced_request_spec.rb +54 -0
- metadata +53 -2
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::CsvCollection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
+
**csv_files** | [**Array<CsvFileResult>**](CsvFileResult.md) | Array of CSV File results | [optional]
|
8
|
+
**file_count** | **Integer** | Count of the number of CSV files produced | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::CsvFileResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**title** | **String** | Title of the CSV file | [optional]
|
7
|
+
**file_contents** | **String** | Contents of the CSV file | [optional]
|
8
|
+
|
9
|
+
|
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**document_is_valid** | **BOOLEAN** | True if the document is valid and has no errors, false otherwise | [optional]
|
7
|
+
**password_protected** | **BOOLEAN** | True if the document is password protected, false otherwise | [optional]
|
7
8
|
**error_count** | **Integer** | Number of validation errors found in the document | [optional]
|
8
9
|
**warning_count** | **Integer** | Number of validation warnings found in the document | [optional]
|
9
10
|
**errors_and_warnings** | [**Array<DocumentValidationError>**](DocumentValidationError.md) | Details of errors and warnings found | [optional]
|
data/docs/DocxParagraph.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**paragraph_index** | **Integer** | The index of the paragraph; 0-based | [optional]
|
7
|
-
**path** | **String** | The Path of the location of this object; leave blank
|
7
|
+
**path** | **String** | The Path of the location of this Paragraph object; leave blank during creation | [optional]
|
8
8
|
**content_runs** | [**Array<DocxRun>**](DocxRun.md) | The content runs in the paragraph - this is where text is stored; similar to a span in HTML | [optional]
|
9
9
|
**style_id** | **String** | Style ID of the style applied to the paragraph; null if no style is applied | [optional]
|
10
10
|
|
data/docs/DocxRun.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**run_index** | **Integer** | Index of the run, 0-based | [optional]
|
7
|
-
**path** | **String** | The Path of the location of this object; leave blank for
|
7
|
+
**path** | **String** | The Path of the location of this Run object; leave blank for creation | [optional]
|
8
8
|
**text_items** | [**Array<DocxText>**](DocxText.md) | Text items inside the run; this is where the actual text content is stored | [optional]
|
9
9
|
**bold** | **BOOLEAN** | True to make the text bold, false otherwise | [optional]
|
10
10
|
**italic** | **BOOLEAN** | True to make the text italic, false otherwise | [optional]
|
data/docs/DocxText.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**text_index** | **Integer** | Index of the text content in the run; 0-based | [optional]
|
7
|
-
**path** | **String** | The Path of the location of this object; leave blank for
|
7
|
+
**path** | **String** | The Path of the location of this Text object; leave blank for creation | [optional]
|
8
8
|
**text_content** | **String** | Text string containing the text content of this text content item | [optional]
|
9
9
|
|
10
10
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::DocxToPngResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
+
**png_result_pages** | [**Array<ConvertedPngPage>**](ConvertedPngPage.md) | Array of converted pages | [optional]
|
8
|
+
|
9
|
+
|
data/docs/EditDocumentApi.md
CHANGED
@@ -10,6 +10,7 @@ Method | HTTP request | Description
|
|
10
10
|
[**edit_document_docx_delete_pages**](EditDocumentApi.md#edit_document_docx_delete_pages) | **POST** /convert/edit/docx/delete-pages | Delete, remove pages from a Word DOCX document
|
11
11
|
[**edit_document_docx_delete_table_row**](EditDocumentApi.md#edit_document_docx_delete_table_row) | **POST** /convert/edit/docx/delete-table-row | Deletes a table row in an existing table in a Word DOCX document
|
12
12
|
[**edit_document_docx_delete_table_row_range**](EditDocumentApi.md#edit_document_docx_delete_table_row_range) | **POST** /convert/edit/docx/delete-table-row/range | Deletes a range of multiple table rows in an existing table in a Word DOCX document
|
13
|
+
[**edit_document_docx_find_paragraph**](EditDocumentApi.md#edit_document_docx_find_paragraph) | **POST** /convert/edit/docx/find/paragraph | Find matching paragraphs in a Word DOCX document
|
13
14
|
[**edit_document_docx_get_comments**](EditDocumentApi.md#edit_document_docx_get_comments) | **POST** /convert/edit/docx/get-comments/flat-list | Get comments from a Word DOCX document as a flat list
|
14
15
|
[**edit_document_docx_get_comments_hierarchical**](EditDocumentApi.md#edit_document_docx_get_comments_hierarchical) | **POST** /convert/edit/docx/get-comments/hierarchical | Get comments from a Word DOCX document hierarchically
|
15
16
|
[**edit_document_docx_get_headers_and_footers**](EditDocumentApi.md#edit_document_docx_get_headers_and_footers) | **POST** /convert/edit/docx/get-headers-and-footers | Get content of a footer from a Word DOCX document
|
@@ -28,6 +29,7 @@ Method | HTTP request | Description
|
|
28
29
|
[**edit_document_docx_remove_headers_and_footers**](EditDocumentApi.md#edit_document_docx_remove_headers_and_footers) | **POST** /convert/edit/docx/remove-headers-and-footers | Remove headers and footers from Word DOCX document
|
29
30
|
[**edit_document_docx_remove_object**](EditDocumentApi.md#edit_document_docx_remove_object) | **POST** /convert/edit/docx/remove-object | Delete any object in a Word DOCX document
|
30
31
|
[**edit_document_docx_replace**](EditDocumentApi.md#edit_document_docx_replace) | **POST** /convert/edit/docx/replace-all | Replace string in Word DOCX document
|
32
|
+
[**edit_document_docx_replace_paragraph**](EditDocumentApi.md#edit_document_docx_replace_paragraph) | **POST** /convert/edit/docx/replace/paragraph | Replace matching paragraphs in a Word DOCX document
|
31
33
|
[**edit_document_docx_set_footer**](EditDocumentApi.md#edit_document_docx_set_footer) | **POST** /convert/edit/docx/set-footer | Set the footer in a Word DOCX document
|
32
34
|
[**edit_document_docx_set_footer_add_page_number**](EditDocumentApi.md#edit_document_docx_set_footer_add_page_number) | **POST** /convert/edit/docx/set-footer/add-page-number | Add page number to footer in a Word DOCX document
|
33
35
|
[**edit_document_docx_set_header**](EditDocumentApi.md#edit_document_docx_set_header) | **POST** /convert/edit/docx/set-header | Set the header in a Word DOCX document
|
@@ -378,6 +380,60 @@ Name | Type | Description | Notes
|
|
378
380
|
|
379
381
|
|
380
382
|
|
383
|
+
# **edit_document_docx_find_paragraph**
|
384
|
+
> FindDocxParagraphResponse edit_document_docx_find_paragraph(req_config)
|
385
|
+
|
386
|
+
Find matching paragraphs in a Word DOCX document
|
387
|
+
|
388
|
+
Returns the paragraphs defined in the Word Document (DOCX) format file that match the input criteria
|
389
|
+
|
390
|
+
### Example
|
391
|
+
```ruby
|
392
|
+
# load the gem
|
393
|
+
require 'cloudmersive-convert-api-client'
|
394
|
+
# setup authorization
|
395
|
+
CloudmersiveConvertApiClient.configure do |config|
|
396
|
+
# Configure API key authorization: Apikey
|
397
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
398
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
399
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
400
|
+
end
|
401
|
+
|
402
|
+
api_instance = CloudmersiveConvertApiClient::EditDocumentApi.new
|
403
|
+
|
404
|
+
req_config = CloudmersiveConvertApiClient::FindDocxParagraphRequest.new # FindDocxParagraphRequest | Document input request
|
405
|
+
|
406
|
+
|
407
|
+
begin
|
408
|
+
#Find matching paragraphs in a Word DOCX document
|
409
|
+
result = api_instance.edit_document_docx_find_paragraph(req_config)
|
410
|
+
p result
|
411
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
412
|
+
puts "Exception when calling EditDocumentApi->edit_document_docx_find_paragraph: #{e}"
|
413
|
+
end
|
414
|
+
```
|
415
|
+
|
416
|
+
### Parameters
|
417
|
+
|
418
|
+
Name | Type | Description | Notes
|
419
|
+
------------- | ------------- | ------------- | -------------
|
420
|
+
**req_config** | [**FindDocxParagraphRequest**](FindDocxParagraphRequest.md)| Document input request |
|
421
|
+
|
422
|
+
### Return type
|
423
|
+
|
424
|
+
[**FindDocxParagraphResponse**](FindDocxParagraphResponse.md)
|
425
|
+
|
426
|
+
### Authorization
|
427
|
+
|
428
|
+
[Apikey](../README.md#Apikey)
|
429
|
+
|
430
|
+
### HTTP request headers
|
431
|
+
|
432
|
+
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
433
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
434
|
+
|
435
|
+
|
436
|
+
|
381
437
|
# **edit_document_docx_get_comments**
|
382
438
|
> GetDocxCommentsResponse edit_document_docx_get_comments(req_config)
|
383
439
|
|
@@ -1350,6 +1406,60 @@ Name | Type | Description | Notes
|
|
1350
1406
|
|
1351
1407
|
|
1352
1408
|
|
1409
|
+
# **edit_document_docx_replace_paragraph**
|
1410
|
+
> ReplaceDocxParagraphResponse edit_document_docx_replace_paragraph(req_config)
|
1411
|
+
|
1412
|
+
Replace matching paragraphs in a Word DOCX document
|
1413
|
+
|
1414
|
+
Returns the edited Word Document (DOCX) format file with the matching paragraphs replaced as requested. Replace a paragraph with another object such as an image. Useful for performing templating operations.
|
1415
|
+
|
1416
|
+
### Example
|
1417
|
+
```ruby
|
1418
|
+
# load the gem
|
1419
|
+
require 'cloudmersive-convert-api-client'
|
1420
|
+
# setup authorization
|
1421
|
+
CloudmersiveConvertApiClient.configure do |config|
|
1422
|
+
# Configure API key authorization: Apikey
|
1423
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
1424
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1425
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
api_instance = CloudmersiveConvertApiClient::EditDocumentApi.new
|
1429
|
+
|
1430
|
+
req_config = CloudmersiveConvertApiClient::ReplaceDocxParagraphRequest.new # ReplaceDocxParagraphRequest | Document input request
|
1431
|
+
|
1432
|
+
|
1433
|
+
begin
|
1434
|
+
#Replace matching paragraphs in a Word DOCX document
|
1435
|
+
result = api_instance.edit_document_docx_replace_paragraph(req_config)
|
1436
|
+
p result
|
1437
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
1438
|
+
puts "Exception when calling EditDocumentApi->edit_document_docx_replace_paragraph: #{e}"
|
1439
|
+
end
|
1440
|
+
```
|
1441
|
+
|
1442
|
+
### Parameters
|
1443
|
+
|
1444
|
+
Name | Type | Description | Notes
|
1445
|
+
------------- | ------------- | ------------- | -------------
|
1446
|
+
**req_config** | [**ReplaceDocxParagraphRequest**](ReplaceDocxParagraphRequest.md)| Document input request |
|
1447
|
+
|
1448
|
+
### Return type
|
1449
|
+
|
1450
|
+
[**ReplaceDocxParagraphResponse**](ReplaceDocxParagraphResponse.md)
|
1451
|
+
|
1452
|
+
### Authorization
|
1453
|
+
|
1454
|
+
[Apikey](../README.md#Apikey)
|
1455
|
+
|
1456
|
+
### HTTP request headers
|
1457
|
+
|
1458
|
+
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
1459
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1460
|
+
|
1461
|
+
|
1462
|
+
|
1353
1463
|
# **edit_document_docx_set_footer**
|
1354
1464
|
> DocxSetFooterResponse edit_document_docx_set_footer(req_config)
|
1355
1465
|
|
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
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::EmlAttachment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | Name of the attachment, including file extension | [optional]
|
7
|
+
**content** | **String** | The EML attachment as a byte[] | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::EmlToHtmlResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
+
**content** | **String** | An HTML string version of the EML file | [optional]
|
8
|
+
**body** | **String** | The main body of the EML file's email as an HTML string | [optional]
|
9
|
+
**from** | **String** | The From sender of the EML file's email | [optional]
|
10
|
+
**to** | **String** | The To recipients of the EML file's email | [optional]
|
11
|
+
**cc** | **String** | The CC recipients of the EML file's email | [optional]
|
12
|
+
**bcc** | **String** | The BCC recipients of the EML file's email | [optional]
|
13
|
+
**received_time** | **String** | The time that the EML file's email was received | [optional]
|
14
|
+
**subject** | **String** | The subject of the EML file's email | [optional]
|
15
|
+
**organization** | **String** | The Organization of the EML file's email | [optional]
|
16
|
+
**attachments** | [**Array<EmlAttachment>**](EmlAttachment.md) | List of all attachments for the EML file | [optional]
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::FindDocxParagraphRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
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
|
+
**find_string** | **String** | Required: The target string to search for in the paragraphs of the document | [optional]
|
9
|
+
**match_case** | **BOOLEAN** | Optional: True to match case, false to ignore case when matching | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::FindDocxParagraphResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if successful; false otherwise | [optional]
|
7
|
+
**matching_paragraphs** | [**Array<DocxParagraph>**](DocxParagraph.md) | Matching paragraphs | [optional]
|
8
|
+
**count** | **Integer** | Count of matching paragraphs | [optional]
|
9
|
+
|
10
|
+
|
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
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::GetFileTypeIconResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
+
**icon** | **String** | PNG icon as a byte array | [optional]
|
8
|
+
**extension** | **String** | Extension used for the icon | [optional]
|
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
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::MsgAttachment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | Name of the attachment, including file extension | [optional]
|
7
|
+
**content** | **String** | The MSG attachment as a byte[] | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::MsgToHtmlResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
+
**content** | **String** | An HTML string version of the MSG file | [optional]
|
8
|
+
**body** | **String** | The main body of the MSG file's email as an HTML string | [optional]
|
9
|
+
**from** | **String** | The From sender of the MSG file's email | [optional]
|
10
|
+
**to** | **String** | The To recipients of the MSG file's email | [optional]
|
11
|
+
**cc** | **String** | The CC recipients of the MSG file's email | [optional]
|
12
|
+
**received_time** | **String** | The time that the MSG file's email was received | [optional]
|
13
|
+
**subject** | **String** | The subject of the MSG file's email | [optional]
|
14
|
+
**attachments** | [**Array<MsgAttachment>**](MsgAttachment.md) | List of all attachments for the MSG file | [optional]
|
15
|
+
|
16
|
+
|