cloudmersive-convert-api-client 2.1.2 → 2.1.7
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 +26 -4
- data/docs/DocxMetadataCustomProperty.md +13 -0
- data/docs/DocxSetCustomMetadataPropertiesRequest.md +10 -0
- data/docs/EditDocumentApi.md +275 -0
- data/docs/EditHtmlApi.md +60 -0
- data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
- data/docs/GetMacrosResponse.md +9 -0
- data/docs/HtmlGetLinksResponse.md +9 -0
- data/docs/HtmlHyperlink.md +9 -0
- data/docs/HtmlSsrfThreatCheckResult.md +10 -0
- data/docs/HtmlThreatLink.md +9 -0
- data/docs/MergeDocumentApi.md +134 -0
- data/docs/ValidateDocumentApi.md +220 -0
- data/docs/XxeThreatDetectionResult.md +9 -0
- data/docs/ZipArchiveApi.md +49 -0
- data/lib/cloudmersive-convert-api-client.rb +9 -0
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +274 -0
- data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +55 -0
- data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +148 -0
- data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +220 -0
- data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +46 -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/models/get_macros_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/html_get_links_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/html_hyperlink.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/html_ssrf_threat_check_result.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/html_threat_link.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/xxe_threat_detection_result.rb +196 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/edit_document_api_spec.rb +60 -0
- data/spec/api/edit_html_api_spec.rb +14 -0
- data/spec/api/merge_document_api_spec.rb +34 -0
- data/spec/api/validate_document_api_spec.rb +48 -0
- data/spec/api/zip_archive_api_spec.rb +11 -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
- data/spec/models/get_macros_response_spec.rb +47 -0
- data/spec/models/html_get_links_response_spec.rb +47 -0
- data/spec/models/html_hyperlink_spec.rb +47 -0
- data/spec/models/html_ssrf_threat_check_result_spec.rb +53 -0
- data/spec/models/html_threat_link_spec.rb +47 -0
- data/spec/models/xxe_threat_detection_result_spec.rb +47 -0
- metadata +29 -2
@@ -0,0 +1,9 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::XxeThreatDetectionResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
+
**contains_xxe_threat** | **BOOLEAN** | True if the XML input contains XXE threats, false otherwise | [optional]
|
8
|
+
|
9
|
+
|
data/docs/ZipArchiveApi.md
CHANGED
@@ -7,6 +7,7 @@ Method | HTTP request | Description
|
|
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
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
|
10
|
+
[**zip_archive_zip_create_quarantine**](ZipArchiveApi.md#zip_archive_zip_create_quarantine) | **POST** /convert/archive/zip/create/quarantine | Create an encrypted zip file to quarantine a dangerous file
|
10
11
|
[**zip_archive_zip_decrypt**](ZipArchiveApi.md#zip_archive_zip_decrypt) | **POST** /convert/archive/zip/decrypt | Decrypt and remove password protection on a zip file
|
11
12
|
[**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
|
12
13
|
[**zip_archive_zip_extract**](ZipArchiveApi.md#zip_archive_zip_extract) | **POST** /convert/archive/zip/extract | Extract, decompress files and folders from a zip archive
|
@@ -219,6 +220,54 @@ Name | Type | Description | Notes
|
|
219
220
|
|
220
221
|
|
221
222
|
|
223
|
+
# **zip_archive_zip_create_quarantine**
|
224
|
+
> Object zip_archive_zip_create_quarantine
|
225
|
+
|
226
|
+
Create an encrypted zip file to quarantine a dangerous file
|
227
|
+
|
228
|
+
Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.
|
229
|
+
|
230
|
+
### Example
|
231
|
+
```ruby
|
232
|
+
# load the gem
|
233
|
+
require 'cloudmersive-convert-api-client'
|
234
|
+
# setup authorization
|
235
|
+
CloudmersiveConvertApiClient.configure do |config|
|
236
|
+
# Configure API key authorization: Apikey
|
237
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
238
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
239
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
240
|
+
end
|
241
|
+
|
242
|
+
api_instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
|
243
|
+
|
244
|
+
begin
|
245
|
+
#Create an encrypted zip file to quarantine a dangerous file
|
246
|
+
result = api_instance.zip_archive_zip_create_quarantine
|
247
|
+
p result
|
248
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
249
|
+
puts "Exception when calling ZipArchiveApi->zip_archive_zip_create_quarantine: #{e}"
|
250
|
+
end
|
251
|
+
```
|
252
|
+
|
253
|
+
### Parameters
|
254
|
+
This endpoint does not need any parameter.
|
255
|
+
|
256
|
+
### Return type
|
257
|
+
|
258
|
+
**Object**
|
259
|
+
|
260
|
+
### Authorization
|
261
|
+
|
262
|
+
[Apikey](../README.md#Apikey)
|
263
|
+
|
264
|
+
### HTTP request headers
|
265
|
+
|
266
|
+
- **Content-Type**: Not defined
|
267
|
+
- **Accept**: application/octet-stream
|
268
|
+
|
269
|
+
|
270
|
+
|
222
271
|
# **zip_archive_zip_decrypt**
|
223
272
|
> Object zip_archive_zip_decrypt(input_file, zip_password)
|
224
273
|
|
@@ -66,12 +66,14 @@ require 'cloudmersive-convert-api-client/models/docx_image'
|
|
66
66
|
require 'cloudmersive-convert-api-client/models/docx_insert_comment_on_paragraph_request'
|
67
67
|
require 'cloudmersive-convert-api-client/models/docx_insert_image_request'
|
68
68
|
require 'cloudmersive-convert-api-client/models/docx_insert_image_response'
|
69
|
+
require 'cloudmersive-convert-api-client/models/docx_metadata_custom_property'
|
69
70
|
require 'cloudmersive-convert-api-client/models/docx_page'
|
70
71
|
require 'cloudmersive-convert-api-client/models/docx_paragraph'
|
71
72
|
require 'cloudmersive-convert-api-client/models/docx_remove_object_request'
|
72
73
|
require 'cloudmersive-convert-api-client/models/docx_remove_object_response'
|
73
74
|
require 'cloudmersive-convert-api-client/models/docx_run'
|
74
75
|
require 'cloudmersive-convert-api-client/models/docx_section'
|
76
|
+
require 'cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request'
|
75
77
|
require 'cloudmersive-convert-api-client/models/docx_set_footer_add_page_number_request'
|
76
78
|
require 'cloudmersive-convert-api-client/models/docx_set_footer_request'
|
77
79
|
require 'cloudmersive-convert-api-client/models/docx_set_footer_response'
|
@@ -113,6 +115,7 @@ require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_req
|
|
113
115
|
require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response'
|
114
116
|
require 'cloudmersive-convert-api-client/models/get_docx_images_request'
|
115
117
|
require 'cloudmersive-convert-api-client/models/get_docx_images_response'
|
118
|
+
require 'cloudmersive-convert-api-client/models/get_docx_metadata_properties_response'
|
116
119
|
require 'cloudmersive-convert-api-client/models/get_docx_pages_request'
|
117
120
|
require 'cloudmersive-convert-api-client/models/get_docx_pages_response'
|
118
121
|
require 'cloudmersive-convert-api-client/models/get_docx_sections_request'
|
@@ -127,6 +130,7 @@ require 'cloudmersive-convert-api-client/models/get_docx_tables_request'
|
|
127
130
|
require 'cloudmersive-convert-api-client/models/get_docx_tables_response'
|
128
131
|
require 'cloudmersive-convert-api-client/models/get_file_type_icon_result'
|
129
132
|
require 'cloudmersive-convert-api-client/models/get_image_info_result'
|
133
|
+
require 'cloudmersive-convert-api-client/models/get_macros_response'
|
130
134
|
require 'cloudmersive-convert-api-client/models/get_pdf_annotations_result'
|
131
135
|
require 'cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_request'
|
132
136
|
require 'cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_response'
|
@@ -144,10 +148,14 @@ require 'cloudmersive-convert-api-client/models/get_xlsx_styles_request'
|
|
144
148
|
require 'cloudmersive-convert-api-client/models/get_xlsx_styles_response'
|
145
149
|
require 'cloudmersive-convert-api-client/models/get_xlsx_worksheets_request'
|
146
150
|
require 'cloudmersive-convert-api-client/models/get_xlsx_worksheets_response'
|
151
|
+
require 'cloudmersive-convert-api-client/models/html_get_links_response'
|
152
|
+
require 'cloudmersive-convert-api-client/models/html_hyperlink'
|
147
153
|
require 'cloudmersive-convert-api-client/models/html_md_result'
|
154
|
+
require 'cloudmersive-convert-api-client/models/html_ssrf_threat_check_result'
|
148
155
|
require 'cloudmersive-convert-api-client/models/html_template_application_request'
|
149
156
|
require 'cloudmersive-convert-api-client/models/html_template_application_response'
|
150
157
|
require 'cloudmersive-convert-api-client/models/html_template_operation'
|
158
|
+
require 'cloudmersive-convert-api-client/models/html_threat_link'
|
151
159
|
require 'cloudmersive-convert-api-client/models/html_to_office_request'
|
152
160
|
require 'cloudmersive-convert-api-client/models/html_to_pdf_request'
|
153
161
|
require 'cloudmersive-convert-api-client/models/html_to_png_request'
|
@@ -253,6 +261,7 @@ require 'cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_p
|
|
253
261
|
require 'cloudmersive-convert-api-client/models/xml_remove_with_x_path_result'
|
254
262
|
require 'cloudmersive-convert-api-client/models/xml_replace_with_x_path_result'
|
255
263
|
require 'cloudmersive-convert-api-client/models/xml_set_value_with_x_path_result'
|
264
|
+
require 'cloudmersive-convert-api-client/models/xxe_threat_detection_result'
|
256
265
|
require 'cloudmersive-convert-api-client/models/zip_directory'
|
257
266
|
require 'cloudmersive-convert-api-client/models/zip_encryption_advanced_request'
|
258
267
|
require 'cloudmersive-convert-api-client/models/zip_extract_response'
|
@@ -779,6 +779,116 @@ module CloudmersiveConvertApiClient
|
|
779
779
|
end
|
780
780
|
return data, status_code, headers
|
781
781
|
end
|
782
|
+
# Get macro information from a Word DOCX/DOCM document
|
783
|
+
# Returns information about the Macros (e.g. VBA) defined in the Word Document
|
784
|
+
# @param input_file Input file to perform the operation on.
|
785
|
+
# @param [Hash] opts the optional parameters
|
786
|
+
# @return [GetMacrosResponse]
|
787
|
+
def edit_document_docx_get_macro_information(input_file, opts = {})
|
788
|
+
data, _status_code, _headers = edit_document_docx_get_macro_information_with_http_info(input_file, opts)
|
789
|
+
data
|
790
|
+
end
|
791
|
+
|
792
|
+
# Get macro information from a Word DOCX/DOCM document
|
793
|
+
# Returns information about the Macros (e.g. VBA) defined in the Word Document
|
794
|
+
# @param input_file Input file to perform the operation on.
|
795
|
+
# @param [Hash] opts the optional parameters
|
796
|
+
# @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
|
797
|
+
def edit_document_docx_get_macro_information_with_http_info(input_file, opts = {})
|
798
|
+
if @api_client.config.debugging
|
799
|
+
@api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_docx_get_macro_information ...'
|
800
|
+
end
|
801
|
+
# verify the required parameter 'input_file' is set
|
802
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
803
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_docx_get_macro_information"
|
804
|
+
end
|
805
|
+
# resource path
|
806
|
+
local_var_path = '/convert/edit/docx/get-macros'
|
807
|
+
|
808
|
+
# query parameters
|
809
|
+
query_params = {}
|
810
|
+
|
811
|
+
# header parameters
|
812
|
+
header_params = {}
|
813
|
+
# HTTP header 'Accept' (if needed)
|
814
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
815
|
+
# HTTP header 'Content-Type'
|
816
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
817
|
+
|
818
|
+
# form parameters
|
819
|
+
form_params = {}
|
820
|
+
form_params['inputFile'] = input_file
|
821
|
+
|
822
|
+
# http body (model)
|
823
|
+
post_body = nil
|
824
|
+
auth_names = ['Apikey']
|
825
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
826
|
+
:header_params => header_params,
|
827
|
+
:query_params => query_params,
|
828
|
+
:form_params => form_params,
|
829
|
+
:body => post_body,
|
830
|
+
:auth_names => auth_names,
|
831
|
+
:return_type => 'GetMacrosResponse')
|
832
|
+
if @api_client.config.debugging
|
833
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
834
|
+
end
|
835
|
+
return data, status_code, headers
|
836
|
+
end
|
837
|
+
# Get all metadata properties in Word DOCX document
|
838
|
+
# Returns all the metadata properties in an Office Word Document (docx)
|
839
|
+
# @param input_file Input file to perform the operation on.
|
840
|
+
# @param [Hash] opts the optional parameters
|
841
|
+
# @return [GetDocxMetadataPropertiesResponse]
|
842
|
+
def edit_document_docx_get_metadata_properties(input_file, opts = {})
|
843
|
+
data, _status_code, _headers = edit_document_docx_get_metadata_properties_with_http_info(input_file, opts)
|
844
|
+
data
|
845
|
+
end
|
846
|
+
|
847
|
+
# Get all metadata properties in Word DOCX document
|
848
|
+
# Returns all the metadata properties in an Office Word Document (docx)
|
849
|
+
# @param input_file Input file to perform the operation on.
|
850
|
+
# @param [Hash] opts the optional parameters
|
851
|
+
# @return [Array<(GetDocxMetadataPropertiesResponse, Fixnum, Hash)>] GetDocxMetadataPropertiesResponse data, response status code and response headers
|
852
|
+
def edit_document_docx_get_metadata_properties_with_http_info(input_file, opts = {})
|
853
|
+
if @api_client.config.debugging
|
854
|
+
@api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_docx_get_metadata_properties ...'
|
855
|
+
end
|
856
|
+
# verify the required parameter 'input_file' is set
|
857
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
858
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_docx_get_metadata_properties"
|
859
|
+
end
|
860
|
+
# resource path
|
861
|
+
local_var_path = '/convert/edit/docx/get-metadata'
|
862
|
+
|
863
|
+
# query parameters
|
864
|
+
query_params = {}
|
865
|
+
|
866
|
+
# header parameters
|
867
|
+
header_params = {}
|
868
|
+
# HTTP header 'Accept' (if needed)
|
869
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
870
|
+
# HTTP header 'Content-Type'
|
871
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
872
|
+
|
873
|
+
# form parameters
|
874
|
+
form_params = {}
|
875
|
+
form_params['inputFile'] = input_file
|
876
|
+
|
877
|
+
# http body (model)
|
878
|
+
post_body = nil
|
879
|
+
auth_names = ['Apikey']
|
880
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
881
|
+
:header_params => header_params,
|
882
|
+
:query_params => query_params,
|
883
|
+
:form_params => form_params,
|
884
|
+
:body => post_body,
|
885
|
+
:auth_names => auth_names,
|
886
|
+
:return_type => 'GetDocxMetadataPropertiesResponse')
|
887
|
+
if @api_client.config.debugging
|
888
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_metadata_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
889
|
+
end
|
890
|
+
return data, status_code, headers
|
891
|
+
end
|
782
892
|
# Get sections from a Word DOCX document
|
783
893
|
# Returns the sections defined in the Word Document (DOCX) format file
|
784
894
|
# @param req_config Document input request
|
@@ -1698,6 +1808,60 @@ module CloudmersiveConvertApiClient
|
|
1698
1808
|
end
|
1699
1809
|
return data, status_code, headers
|
1700
1810
|
end
|
1811
|
+
# Set custom property metadata properties in Word DOCX document
|
1812
|
+
# Sets the custom property metadata for the metadata properties in an Office Word Document (docx)
|
1813
|
+
# @param input
|
1814
|
+
# @param [Hash] opts the optional parameters
|
1815
|
+
# @return [String]
|
1816
|
+
def edit_document_docx_set_custom_metadata_properties(input, opts = {})
|
1817
|
+
data, _status_code, _headers = edit_document_docx_set_custom_metadata_properties_with_http_info(input, opts)
|
1818
|
+
data
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
# Set custom property metadata properties in Word DOCX document
|
1822
|
+
# Sets the custom property metadata for the metadata properties in an Office Word Document (docx)
|
1823
|
+
# @param input
|
1824
|
+
# @param [Hash] opts the optional parameters
|
1825
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
1826
|
+
def edit_document_docx_set_custom_metadata_properties_with_http_info(input, opts = {})
|
1827
|
+
if @api_client.config.debugging
|
1828
|
+
@api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_docx_set_custom_metadata_properties ...'
|
1829
|
+
end
|
1830
|
+
# verify the required parameter 'input' is set
|
1831
|
+
if @api_client.config.client_side_validation && input.nil?
|
1832
|
+
fail ArgumentError, "Missing the required parameter 'input' when calling EditDocumentApi.edit_document_docx_set_custom_metadata_properties"
|
1833
|
+
end
|
1834
|
+
# resource path
|
1835
|
+
local_var_path = '/convert/edit/docx/set-metadata/custom-property'
|
1836
|
+
|
1837
|
+
# query parameters
|
1838
|
+
query_params = {}
|
1839
|
+
|
1840
|
+
# header parameters
|
1841
|
+
header_params = {}
|
1842
|
+
# HTTP header 'Accept' (if needed)
|
1843
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1844
|
+
# HTTP header 'Content-Type'
|
1845
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
1846
|
+
|
1847
|
+
# form parameters
|
1848
|
+
form_params = {}
|
1849
|
+
|
1850
|
+
# http body (model)
|
1851
|
+
post_body = @api_client.object_to_http_body(input)
|
1852
|
+
auth_names = ['Apikey']
|
1853
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1854
|
+
:header_params => header_params,
|
1855
|
+
:query_params => query_params,
|
1856
|
+
:form_params => form_params,
|
1857
|
+
:body => post_body,
|
1858
|
+
:auth_names => auth_names,
|
1859
|
+
:return_type => 'String')
|
1860
|
+
if @api_client.config.debugging
|
1861
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_set_custom_metadata_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1862
|
+
end
|
1863
|
+
return data, status_code, headers
|
1864
|
+
end
|
1701
1865
|
# Set the footer in a Word DOCX document
|
1702
1866
|
# Set the footer in a Word Document (DOCX). Call Finish Editing on the output URL to complete the operation.
|
1703
1867
|
# @param req_config Document input request
|
@@ -2076,6 +2240,61 @@ module CloudmersiveConvertApiClient
|
|
2076
2240
|
end
|
2077
2241
|
return data, status_code, headers
|
2078
2242
|
end
|
2243
|
+
# Get macro information from a PowerPoint PPTX/PPTM presentation document
|
2244
|
+
# Returns information about the Macros (e.g. VBA) defined in the PowerPoint Document
|
2245
|
+
# @param input_file Input file to perform the operation on.
|
2246
|
+
# @param [Hash] opts the optional parameters
|
2247
|
+
# @return [GetMacrosResponse]
|
2248
|
+
def edit_document_pptx_get_macro_information(input_file, opts = {})
|
2249
|
+
data, _status_code, _headers = edit_document_pptx_get_macro_information_with_http_info(input_file, opts)
|
2250
|
+
data
|
2251
|
+
end
|
2252
|
+
|
2253
|
+
# Get macro information from a PowerPoint PPTX/PPTM presentation document
|
2254
|
+
# Returns information about the Macros (e.g. VBA) defined in the PowerPoint Document
|
2255
|
+
# @param input_file Input file to perform the operation on.
|
2256
|
+
# @param [Hash] opts the optional parameters
|
2257
|
+
# @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
|
2258
|
+
def edit_document_pptx_get_macro_information_with_http_info(input_file, opts = {})
|
2259
|
+
if @api_client.config.debugging
|
2260
|
+
@api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_pptx_get_macro_information ...'
|
2261
|
+
end
|
2262
|
+
# verify the required parameter 'input_file' is set
|
2263
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
2264
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_pptx_get_macro_information"
|
2265
|
+
end
|
2266
|
+
# resource path
|
2267
|
+
local_var_path = '/convert/edit/pptx/get-macros'
|
2268
|
+
|
2269
|
+
# query parameters
|
2270
|
+
query_params = {}
|
2271
|
+
|
2272
|
+
# header parameters
|
2273
|
+
header_params = {}
|
2274
|
+
# HTTP header 'Accept' (if needed)
|
2275
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
2276
|
+
# HTTP header 'Content-Type'
|
2277
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
2278
|
+
|
2279
|
+
# form parameters
|
2280
|
+
form_params = {}
|
2281
|
+
form_params['inputFile'] = input_file
|
2282
|
+
|
2283
|
+
# http body (model)
|
2284
|
+
post_body = nil
|
2285
|
+
auth_names = ['Apikey']
|
2286
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2287
|
+
:header_params => header_params,
|
2288
|
+
:query_params => query_params,
|
2289
|
+
:form_params => form_params,
|
2290
|
+
:body => post_body,
|
2291
|
+
:auth_names => auth_names,
|
2292
|
+
:return_type => 'GetMacrosResponse')
|
2293
|
+
if @api_client.config.debugging
|
2294
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_pptx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2295
|
+
end
|
2296
|
+
return data, status_code, headers
|
2297
|
+
end
|
2079
2298
|
# Replace string in PowerPoint PPTX presentation
|
2080
2299
|
# Replace all instances of a string in an Office PowerPoint Document (pptx)
|
2081
2300
|
# @param req_config Replacement document configuration input
|
@@ -2778,6 +2997,61 @@ module CloudmersiveConvertApiClient
|
|
2778
2997
|
end
|
2779
2998
|
return data, status_code, headers
|
2780
2999
|
end
|
3000
|
+
# Get macro information from a Excel XLSX/XLSM spreadsheet, worksheet
|
3001
|
+
# Returns information about the Macros (e.g. VBA) defined in the Excel Spreadsheet
|
3002
|
+
# @param input_file Input file to perform the operation on.
|
3003
|
+
# @param [Hash] opts the optional parameters
|
3004
|
+
# @return [GetMacrosResponse]
|
3005
|
+
def edit_document_xlsx_get_macro_information(input_file, opts = {})
|
3006
|
+
data, _status_code, _headers = edit_document_xlsx_get_macro_information_with_http_info(input_file, opts)
|
3007
|
+
data
|
3008
|
+
end
|
3009
|
+
|
3010
|
+
# Get macro information from a Excel XLSX/XLSM spreadsheet, worksheet
|
3011
|
+
# Returns information about the Macros (e.g. VBA) defined in the Excel Spreadsheet
|
3012
|
+
# @param input_file Input file to perform the operation on.
|
3013
|
+
# @param [Hash] opts the optional parameters
|
3014
|
+
# @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
|
3015
|
+
def edit_document_xlsx_get_macro_information_with_http_info(input_file, opts = {})
|
3016
|
+
if @api_client.config.debugging
|
3017
|
+
@api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_xlsx_get_macro_information ...'
|
3018
|
+
end
|
3019
|
+
# verify the required parameter 'input_file' is set
|
3020
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
3021
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_xlsx_get_macro_information"
|
3022
|
+
end
|
3023
|
+
# resource path
|
3024
|
+
local_var_path = '/convert/edit/xlsx/get-macros'
|
3025
|
+
|
3026
|
+
# query parameters
|
3027
|
+
query_params = {}
|
3028
|
+
|
3029
|
+
# header parameters
|
3030
|
+
header_params = {}
|
3031
|
+
# HTTP header 'Accept' (if needed)
|
3032
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
3033
|
+
# HTTP header 'Content-Type'
|
3034
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
3035
|
+
|
3036
|
+
# form parameters
|
3037
|
+
form_params = {}
|
3038
|
+
form_params['inputFile'] = input_file
|
3039
|
+
|
3040
|
+
# http body (model)
|
3041
|
+
post_body = nil
|
3042
|
+
auth_names = ['Apikey']
|
3043
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
3044
|
+
:header_params => header_params,
|
3045
|
+
:query_params => query_params,
|
3046
|
+
:form_params => form_params,
|
3047
|
+
:body => post_body,
|
3048
|
+
:auth_names => auth_names,
|
3049
|
+
:return_type => 'GetMacrosResponse')
|
3050
|
+
if @api_client.config.debugging
|
3051
|
+
@api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3052
|
+
end
|
3053
|
+
return data, status_code, headers
|
3054
|
+
end
|
2781
3055
|
# Get rows and cells from a Excel XLSX spreadsheet, worksheet
|
2782
3056
|
# Returns the rows and cells defined in the Excel Spreadsheet worksheet
|
2783
3057
|
# @param input Document input request
|
@@ -335,5 +335,60 @@ module CloudmersiveConvertApiClient
|
|
335
335
|
end
|
336
336
|
return data, status_code, headers
|
337
337
|
end
|
338
|
+
# Extract resolved link URLs from HTML File
|
339
|
+
# Extracts the resolved link URLs, fully-qualified if possible, from an input HTML file.
|
340
|
+
# @param [Hash] opts the optional parameters
|
341
|
+
# @option opts [File] :input_file Optional: Input file to perform the operation on.
|
342
|
+
# @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
|
343
|
+
# @option opts [String] :base_url Optional: Base URL of the page, such as https://mydomain.com
|
344
|
+
# @return [HtmlGetLinksResponse]
|
345
|
+
def edit_html_html_get_links(opts = {})
|
346
|
+
data, _status_code, _headers = edit_html_html_get_links_with_http_info(opts)
|
347
|
+
data
|
348
|
+
end
|
349
|
+
|
350
|
+
# Extract resolved link URLs from HTML File
|
351
|
+
# Extracts the resolved link URLs, fully-qualified if possible, from an input HTML file.
|
352
|
+
# @param [Hash] opts the optional parameters
|
353
|
+
# @option opts [File] :input_file Optional: Input file to perform the operation on.
|
354
|
+
# @option opts [String] :input_file_url Optional: URL of a file to operate on as input.
|
355
|
+
# @option opts [String] :base_url Optional: Base URL of the page, such as https://mydomain.com
|
356
|
+
# @return [Array<(HtmlGetLinksResponse, Fixnum, Hash)>] HtmlGetLinksResponse data, response status code and response headers
|
357
|
+
def edit_html_html_get_links_with_http_info(opts = {})
|
358
|
+
if @api_client.config.debugging
|
359
|
+
@api_client.config.logger.debug 'Calling API: EditHtmlApi.edit_html_html_get_links ...'
|
360
|
+
end
|
361
|
+
# resource path
|
362
|
+
local_var_path = '/convert/edit/html/extract/links'
|
363
|
+
|
364
|
+
# query parameters
|
365
|
+
query_params = {}
|
366
|
+
|
367
|
+
# header parameters
|
368
|
+
header_params = {}
|
369
|
+
# HTTP header 'Accept' (if needed)
|
370
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
371
|
+
header_params[:'inputFileUrl'] = opts[:'input_file_url'] if !opts[:'input_file_url'].nil?
|
372
|
+
header_params[:'baseUrl'] = opts[:'base_url'] if !opts[:'base_url'].nil?
|
373
|
+
|
374
|
+
# form parameters
|
375
|
+
form_params = {}
|
376
|
+
form_params['inputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
|
377
|
+
|
378
|
+
# http body (model)
|
379
|
+
post_body = nil
|
380
|
+
auth_names = ['Apikey']
|
381
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
382
|
+
:header_params => header_params,
|
383
|
+
:query_params => query_params,
|
384
|
+
:form_params => form_params,
|
385
|
+
:body => post_body,
|
386
|
+
:auth_names => auth_names,
|
387
|
+
:return_type => 'HtmlGetLinksResponse')
|
388
|
+
if @api_client.config.debugging
|
389
|
+
@api_client.config.logger.debug "API called: EditHtmlApi#edit_html_html_get_links\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
390
|
+
end
|
391
|
+
return data, status_code, headers
|
392
|
+
end
|
338
393
|
end
|
339
394
|
end
|