cloudmersive-convert-api-client 2.0.8 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -4
- data/docs/ConvertDataApi.md +117 -3
- data/docs/ConvertDocumentApi.md +159 -0
- data/docs/DocxMetadataCustomProperty.md +13 -0
- data/docs/DocxSetCustomMetadataPropertiesRequest.md +10 -0
- data/docs/EditDocumentApi.md +330 -0
- data/docs/EditPdfApi.md +169 -0
- data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
- data/docs/ValidateDocumentApi.md +275 -0
- data/docs/ViewerToolsApi.md +8 -2
- data/docs/ZipArchiveApi.md +80 -0
- data/lib/cloudmersive-convert-api-client.rb +3 -0
- data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +117 -4
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +156 -0
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +329 -0
- data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +168 -0
- data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +275 -0
- data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +6 -0
- data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +92 -0
- data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/convert_data_api_spec.rb +26 -1
- data/spec/api/convert_document_api_spec.rb +35 -0
- data/spec/api/edit_document_api_spec.rb +72 -0
- data/spec/api/edit_pdf_api_spec.rb +37 -0
- data/spec/api/validate_document_api_spec.rb +60 -0
- data/spec/api/viewer_tools_api_spec.rb +2 -0
- data/spec/api/zip_archive_api_spec.rb +23 -0
- data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
- data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
- data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
- metadata +11 -2
@@ -0,0 +1,16 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::GetDocxMetadataPropertiesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**company** | **String** | Name of the Company that authored the document, if available | [optional]
|
7
|
+
**manager** | **String** | Name of the Manager that authored the document, if available | [optional]
|
8
|
+
**application_version** | **String** | Application version that authored the document, if available | [optional]
|
9
|
+
**word_count** | **Integer** | Word count of the document | [optional]
|
10
|
+
**line_count** | **Integer** | Line count of the document | [optional]
|
11
|
+
**paragraph_count** | **Integer** | Paragraph count of the document | [optional]
|
12
|
+
**page_count** | **Integer** | Page count of the document | [optional]
|
13
|
+
**custom_properties** | [**Array<DocxMetadataCustomProperty>**](DocxMetadataCustomProperty.md) | Custom properties applied to the document | [optional]
|
14
|
+
**successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
|
15
|
+
|
16
|
+
|
data/docs/ValidateDocumentApi.md
CHANGED
@@ -10,12 +10,17 @@ Method | HTTP request | Description
|
|
10
10
|
[**validate_document_eml_validation**](ValidateDocumentApi.md#validate_document_eml_validation) | **POST** /convert/validate/eml | Validate if an EML file is executable
|
11
11
|
[**validate_document_executable_validation**](ValidateDocumentApi.md#validate_document_executable_validation) | **POST** /convert/validate/executable | Validate if a file is executable
|
12
12
|
[**validate_document_g_zip_validation**](ValidateDocumentApi.md#validate_document_g_zip_validation) | **POST** /convert/validate/gzip | Validate a GZip Archive file (gzip or gz)
|
13
|
+
[**validate_document_html_validation**](ValidateDocumentApi.md#validate_document_html_validation) | **POST** /convert/validate/html | Validate an HTML file
|
14
|
+
[**validate_document_image_validation**](ValidateDocumentApi.md#validate_document_image_validation) | **POST** /convert/validate/image | Validate an Image File
|
15
|
+
[**validate_document_jpg_validation**](ValidateDocumentApi.md#validate_document_jpg_validation) | **POST** /convert/validate/jpg | Validate a JPG File
|
13
16
|
[**validate_document_json_validation**](ValidateDocumentApi.md#validate_document_json_validation) | **POST** /convert/validate/json | Validate a JSON file
|
14
17
|
[**validate_document_msg_validation**](ValidateDocumentApi.md#validate_document_msg_validation) | **POST** /convert/validate/msg | Validate if an MSG file is executable
|
15
18
|
[**validate_document_pdf_validation**](ValidateDocumentApi.md#validate_document_pdf_validation) | **POST** /convert/validate/pdf | Validate a PDF document file
|
19
|
+
[**validate_document_png_validation**](ValidateDocumentApi.md#validate_document_png_validation) | **POST** /convert/validate/png | Validate a PNG File
|
16
20
|
[**validate_document_pptx_validation**](ValidateDocumentApi.md#validate_document_pptx_validation) | **POST** /convert/validate/pptx | Validate a PowerPoint presentation (PPTX)
|
17
21
|
[**validate_document_rar_validation**](ValidateDocumentApi.md#validate_document_rar_validation) | **POST** /convert/validate/rar | Validate a RAR Archive file (RAR)
|
18
22
|
[**validate_document_tar_validation**](ValidateDocumentApi.md#validate_document_tar_validation) | **POST** /convert/validate/tar | Validate a TAR Tarball Archive file (TAR)
|
23
|
+
[**validate_document_txt_validation**](ValidateDocumentApi.md#validate_document_txt_validation) | **POST** /convert/validate/txt | Validate an TXT file
|
19
24
|
[**validate_document_xlsx_validation**](ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
|
20
25
|
[**validate_document_xml_validation**](ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file
|
21
26
|
[**validate_document_zip_validation**](ValidateDocumentApi.md#validate_document_zip_validation) | **POST** /convert/validate/zip | Validate a Zip Archive file (zip)
|
@@ -345,6 +350,168 @@ Name | Type | Description | Notes
|
|
345
350
|
|
346
351
|
|
347
352
|
|
353
|
+
# **validate_document_html_validation**
|
354
|
+
> DocumentValidationResult validate_document_html_validation(input_file)
|
355
|
+
|
356
|
+
Validate an HTML file
|
357
|
+
|
358
|
+
Validate an HTML document file; if the document is not valid, identifies the errors in the document
|
359
|
+
|
360
|
+
### Example
|
361
|
+
```ruby
|
362
|
+
# load the gem
|
363
|
+
require 'cloudmersive-convert-api-client'
|
364
|
+
# setup authorization
|
365
|
+
CloudmersiveConvertApiClient.configure do |config|
|
366
|
+
# Configure API key authorization: Apikey
|
367
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
368
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
369
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
370
|
+
end
|
371
|
+
|
372
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
373
|
+
|
374
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
375
|
+
|
376
|
+
|
377
|
+
begin
|
378
|
+
#Validate an HTML file
|
379
|
+
result = api_instance.validate_document_html_validation(input_file)
|
380
|
+
p result
|
381
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
382
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_html_validation: #{e}"
|
383
|
+
end
|
384
|
+
```
|
385
|
+
|
386
|
+
### Parameters
|
387
|
+
|
388
|
+
Name | Type | Description | Notes
|
389
|
+
------------- | ------------- | ------------- | -------------
|
390
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
391
|
+
|
392
|
+
### Return type
|
393
|
+
|
394
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
395
|
+
|
396
|
+
### Authorization
|
397
|
+
|
398
|
+
[Apikey](../README.md#Apikey)
|
399
|
+
|
400
|
+
### HTTP request headers
|
401
|
+
|
402
|
+
- **Content-Type**: multipart/form-data
|
403
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
# **validate_document_image_validation**
|
408
|
+
> DocumentValidationResult validate_document_image_validation(input_file)
|
409
|
+
|
410
|
+
Validate an Image File
|
411
|
+
|
412
|
+
Validate an image file; if the document is not valid, identifies the errors in the document. Formats supported include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
413
|
+
|
414
|
+
### Example
|
415
|
+
```ruby
|
416
|
+
# load the gem
|
417
|
+
require 'cloudmersive-convert-api-client'
|
418
|
+
# setup authorization
|
419
|
+
CloudmersiveConvertApiClient.configure do |config|
|
420
|
+
# Configure API key authorization: Apikey
|
421
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
422
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
423
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
424
|
+
end
|
425
|
+
|
426
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
427
|
+
|
428
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
429
|
+
|
430
|
+
|
431
|
+
begin
|
432
|
+
#Validate an Image File
|
433
|
+
result = api_instance.validate_document_image_validation(input_file)
|
434
|
+
p result
|
435
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
436
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_image_validation: #{e}"
|
437
|
+
end
|
438
|
+
```
|
439
|
+
|
440
|
+
### Parameters
|
441
|
+
|
442
|
+
Name | Type | Description | Notes
|
443
|
+
------------- | ------------- | ------------- | -------------
|
444
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
445
|
+
|
446
|
+
### Return type
|
447
|
+
|
448
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
449
|
+
|
450
|
+
### Authorization
|
451
|
+
|
452
|
+
[Apikey](../README.md#Apikey)
|
453
|
+
|
454
|
+
### HTTP request headers
|
455
|
+
|
456
|
+
- **Content-Type**: multipart/form-data
|
457
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
# **validate_document_jpg_validation**
|
462
|
+
> DocumentValidationResult validate_document_jpg_validation(input_file)
|
463
|
+
|
464
|
+
Validate a JPG File
|
465
|
+
|
466
|
+
Validate a JPEG image file; if the document is not valid, identifies the errors in the document..
|
467
|
+
|
468
|
+
### Example
|
469
|
+
```ruby
|
470
|
+
# load the gem
|
471
|
+
require 'cloudmersive-convert-api-client'
|
472
|
+
# setup authorization
|
473
|
+
CloudmersiveConvertApiClient.configure do |config|
|
474
|
+
# Configure API key authorization: Apikey
|
475
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
476
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
477
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
478
|
+
end
|
479
|
+
|
480
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
481
|
+
|
482
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
483
|
+
|
484
|
+
|
485
|
+
begin
|
486
|
+
#Validate a JPG File
|
487
|
+
result = api_instance.validate_document_jpg_validation(input_file)
|
488
|
+
p result
|
489
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
490
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_jpg_validation: #{e}"
|
491
|
+
end
|
492
|
+
```
|
493
|
+
|
494
|
+
### Parameters
|
495
|
+
|
496
|
+
Name | Type | Description | Notes
|
497
|
+
------------- | ------------- | ------------- | -------------
|
498
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
499
|
+
|
500
|
+
### Return type
|
501
|
+
|
502
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
503
|
+
|
504
|
+
### Authorization
|
505
|
+
|
506
|
+
[Apikey](../README.md#Apikey)
|
507
|
+
|
508
|
+
### HTTP request headers
|
509
|
+
|
510
|
+
- **Content-Type**: multipart/form-data
|
511
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
512
|
+
|
513
|
+
|
514
|
+
|
348
515
|
# **validate_document_json_validation**
|
349
516
|
> DocumentValidationResult validate_document_json_validation(input_file)
|
350
517
|
|
@@ -507,6 +674,60 @@ Name | Type | Description | Notes
|
|
507
674
|
|
508
675
|
|
509
676
|
|
677
|
+
# **validate_document_png_validation**
|
678
|
+
> DocumentValidationResult validate_document_png_validation(input_file)
|
679
|
+
|
680
|
+
Validate a PNG File
|
681
|
+
|
682
|
+
Validate a PNG image file; if the document is not valid, identifies the errors in the document.
|
683
|
+
|
684
|
+
### Example
|
685
|
+
```ruby
|
686
|
+
# load the gem
|
687
|
+
require 'cloudmersive-convert-api-client'
|
688
|
+
# setup authorization
|
689
|
+
CloudmersiveConvertApiClient.configure do |config|
|
690
|
+
# Configure API key authorization: Apikey
|
691
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
692
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
693
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
694
|
+
end
|
695
|
+
|
696
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
697
|
+
|
698
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
699
|
+
|
700
|
+
|
701
|
+
begin
|
702
|
+
#Validate a PNG File
|
703
|
+
result = api_instance.validate_document_png_validation(input_file)
|
704
|
+
p result
|
705
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
706
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_png_validation: #{e}"
|
707
|
+
end
|
708
|
+
```
|
709
|
+
|
710
|
+
### Parameters
|
711
|
+
|
712
|
+
Name | Type | Description | Notes
|
713
|
+
------------- | ------------- | ------------- | -------------
|
714
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
715
|
+
|
716
|
+
### Return type
|
717
|
+
|
718
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
719
|
+
|
720
|
+
### Authorization
|
721
|
+
|
722
|
+
[Apikey](../README.md#Apikey)
|
723
|
+
|
724
|
+
### HTTP request headers
|
725
|
+
|
726
|
+
- **Content-Type**: multipart/form-data
|
727
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
728
|
+
|
729
|
+
|
730
|
+
|
510
731
|
# **validate_document_pptx_validation**
|
511
732
|
> DocumentValidationResult validate_document_pptx_validation(input_file)
|
512
733
|
|
@@ -669,6 +890,60 @@ Name | Type | Description | Notes
|
|
669
890
|
|
670
891
|
|
671
892
|
|
893
|
+
# **validate_document_txt_validation**
|
894
|
+
> DocumentValidationResult validate_document_txt_validation(input_file)
|
895
|
+
|
896
|
+
Validate an TXT file
|
897
|
+
|
898
|
+
Validate an TXT document file; if the document is not valid, identifies the errors in the document
|
899
|
+
|
900
|
+
### Example
|
901
|
+
```ruby
|
902
|
+
# load the gem
|
903
|
+
require 'cloudmersive-convert-api-client'
|
904
|
+
# setup authorization
|
905
|
+
CloudmersiveConvertApiClient.configure do |config|
|
906
|
+
# Configure API key authorization: Apikey
|
907
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
908
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
909
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
910
|
+
end
|
911
|
+
|
912
|
+
api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
|
913
|
+
|
914
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
915
|
+
|
916
|
+
|
917
|
+
begin
|
918
|
+
#Validate an TXT file
|
919
|
+
result = api_instance.validate_document_txt_validation(input_file)
|
920
|
+
p result
|
921
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
922
|
+
puts "Exception when calling ValidateDocumentApi->validate_document_txt_validation: #{e}"
|
923
|
+
end
|
924
|
+
```
|
925
|
+
|
926
|
+
### Parameters
|
927
|
+
|
928
|
+
Name | Type | Description | Notes
|
929
|
+
------------- | ------------- | ------------- | -------------
|
930
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
931
|
+
|
932
|
+
### Return type
|
933
|
+
|
934
|
+
[**DocumentValidationResult**](DocumentValidationResult.md)
|
935
|
+
|
936
|
+
### Authorization
|
937
|
+
|
938
|
+
[Apikey](../README.md#Apikey)
|
939
|
+
|
940
|
+
### HTTP request headers
|
941
|
+
|
942
|
+
- **Content-Type**: multipart/form-data
|
943
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
944
|
+
|
945
|
+
|
946
|
+
|
672
947
|
# **validate_document_xlsx_validation**
|
673
948
|
> DocumentValidationResult validate_document_xlsx_validation(input_file)
|
674
949
|
|
data/docs/ViewerToolsApi.md
CHANGED
@@ -8,7 +8,7 @@ Method | HTTP request | Description
|
|
8
8
|
|
9
9
|
|
10
10
|
# **viewer_tools_create_simple**
|
11
|
-
> ViewerResponse viewer_tools_create_simple(input_file)
|
11
|
+
> ViewerResponse viewer_tools_create_simple(input_file, opts)
|
12
12
|
|
13
13
|
Create a web-based viewer
|
14
14
|
|
@@ -30,10 +30,14 @@ api_instance = CloudmersiveConvertApiClient::ViewerToolsApi.new
|
|
30
30
|
|
31
31
|
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
32
32
|
|
33
|
+
opts = {
|
34
|
+
width: 56, # Integer | Optional; width of the output viewer in pixels
|
35
|
+
height: 56 # Integer | Optional; height of the output viewer in pixels
|
36
|
+
}
|
33
37
|
|
34
38
|
begin
|
35
39
|
#Create a web-based viewer
|
36
|
-
result = api_instance.viewer_tools_create_simple(input_file)
|
40
|
+
result = api_instance.viewer_tools_create_simple(input_file, opts)
|
37
41
|
p result
|
38
42
|
rescue CloudmersiveConvertApiClient::ApiError => e
|
39
43
|
puts "Exception when calling ViewerToolsApi->viewer_tools_create_simple: #{e}"
|
@@ -45,6 +49,8 @@ end
|
|
45
49
|
Name | Type | Description | Notes
|
46
50
|
------------- | ------------- | ------------- | -------------
|
47
51
|
**input_file** | **File**| Input file to perform the operation on. |
|
52
|
+
**width** | **Integer**| Optional; width of the output viewer in pixels | [optional]
|
53
|
+
**height** | **Integer**| Optional; height of the output viewer in pixels | [optional]
|
48
54
|
|
49
55
|
### Return type
|
50
56
|
|
data/docs/ZipArchiveApi.md
CHANGED
@@ -6,6 +6,7 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**zip_archive_zip_create**](ZipArchiveApi.md#zip_archive_zip_create) | **POST** /convert/archive/zip/create | Compress files to create a new zip archive
|
8
8
|
[**zip_archive_zip_create_advanced**](ZipArchiveApi.md#zip_archive_zip_create_advanced) | **POST** /convert/archive/zip/create/advanced | Compress files and folders to create a new zip archive with advanced options
|
9
|
+
[**zip_archive_zip_create_encrypted**](ZipArchiveApi.md#zip_archive_zip_create_encrypted) | **POST** /convert/archive/zip/create/encrypted | Compress files to create a new, encrypted and password-protected zip archive
|
9
10
|
[**zip_archive_zip_decrypt**](ZipArchiveApi.md#zip_archive_zip_decrypt) | **POST** /convert/archive/zip/decrypt | Decrypt and remove password protection on a zip file
|
10
11
|
[**zip_archive_zip_encrypt_advanced**](ZipArchiveApi.md#zip_archive_zip_encrypt_advanced) | **POST** /convert/archive/zip/encrypt/advanced | Encrypt and password protect a zip file
|
11
12
|
[**zip_archive_zip_extract**](ZipArchiveApi.md#zip_archive_zip_extract) | **POST** /convert/archive/zip/extract | Extract, decompress files and folders from a zip archive
|
@@ -139,6 +140,85 @@ Name | Type | Description | Notes
|
|
139
140
|
|
140
141
|
|
141
142
|
|
143
|
+
# **zip_archive_zip_create_encrypted**
|
144
|
+
> String zip_archive_zip_create_encrypted(password, input_file1, opts)
|
145
|
+
|
146
|
+
Compress files to create a new, encrypted and password-protected zip archive
|
147
|
+
|
148
|
+
Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip.
|
149
|
+
|
150
|
+
### Example
|
151
|
+
```ruby
|
152
|
+
# load the gem
|
153
|
+
require 'cloudmersive-convert-api-client'
|
154
|
+
# setup authorization
|
155
|
+
CloudmersiveConvertApiClient.configure do |config|
|
156
|
+
# Configure API key authorization: Apikey
|
157
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
158
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
159
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
160
|
+
end
|
161
|
+
|
162
|
+
api_instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
|
163
|
+
|
164
|
+
password = 'password_example' # String | Password to place on the Zip file; the longer the password, the more secure
|
165
|
+
|
166
|
+
input_file1 = File.new('/path/to/file.txt') # File | First input file to perform the operation on.
|
167
|
+
|
168
|
+
opts = {
|
169
|
+
encryption_algorithm: 'encryption_algorithm_example', # String | Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
|
170
|
+
input_file2: File.new('/path/to/file.txt'), # File | Second input file to perform the operation on.
|
171
|
+
input_file3: File.new('/path/to/file.txt'), # File | Third input file to perform the operation on.
|
172
|
+
input_file4: File.new('/path/to/file.txt'), # File | Fourth input file to perform the operation on.
|
173
|
+
input_file5: File.new('/path/to/file.txt'), # File | Fifth input file to perform the operation on.
|
174
|
+
input_file6: File.new('/path/to/file.txt'), # File | Sixth input file to perform the operation on.
|
175
|
+
input_file7: File.new('/path/to/file.txt'), # File | Seventh input file to perform the operation on.
|
176
|
+
input_file8: File.new('/path/to/file.txt'), # File | Eighth input file to perform the operation on.
|
177
|
+
input_file9: File.new('/path/to/file.txt'), # File | Ninth input file to perform the operation on.
|
178
|
+
input_file10: File.new('/path/to/file.txt') # File | Tenth input file to perform the operation on.
|
179
|
+
}
|
180
|
+
|
181
|
+
begin
|
182
|
+
#Compress files to create a new, encrypted and password-protected zip archive
|
183
|
+
result = api_instance.zip_archive_zip_create_encrypted(password, input_file1, opts)
|
184
|
+
p result
|
185
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
186
|
+
puts "Exception when calling ZipArchiveApi->zip_archive_zip_create_encrypted: #{e}"
|
187
|
+
end
|
188
|
+
```
|
189
|
+
|
190
|
+
### Parameters
|
191
|
+
|
192
|
+
Name | Type | Description | Notes
|
193
|
+
------------- | ------------- | ------------- | -------------
|
194
|
+
**password** | **String**| Password to place on the Zip file; the longer the password, the more secure |
|
195
|
+
**input_file1** | **File**| First input file to perform the operation on. |
|
196
|
+
**encryption_algorithm** | **String**| Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256. | [optional]
|
197
|
+
**input_file2** | **File**| Second input file to perform the operation on. | [optional]
|
198
|
+
**input_file3** | **File**| Third input file to perform the operation on. | [optional]
|
199
|
+
**input_file4** | **File**| Fourth input file to perform the operation on. | [optional]
|
200
|
+
**input_file5** | **File**| Fifth input file to perform the operation on. | [optional]
|
201
|
+
**input_file6** | **File**| Sixth input file to perform the operation on. | [optional]
|
202
|
+
**input_file7** | **File**| Seventh input file to perform the operation on. | [optional]
|
203
|
+
**input_file8** | **File**| Eighth input file to perform the operation on. | [optional]
|
204
|
+
**input_file9** | **File**| Ninth input file to perform the operation on. | [optional]
|
205
|
+
**input_file10** | **File**| Tenth input file to perform the operation on. | [optional]
|
206
|
+
|
207
|
+
### Return type
|
208
|
+
|
209
|
+
**String**
|
210
|
+
|
211
|
+
### Authorization
|
212
|
+
|
213
|
+
[Apikey](../README.md#Apikey)
|
214
|
+
|
215
|
+
### HTTP request headers
|
216
|
+
|
217
|
+
- **Content-Type**: multipart/form-data
|
218
|
+
- **Accept**: application/octet-stream
|
219
|
+
|
220
|
+
|
221
|
+
|
142
222
|
# **zip_archive_zip_decrypt**
|
143
223
|
> Object zip_archive_zip_decrypt(input_file, zip_password)
|
144
224
|
|