cloudmersive-convert-api-client 1.4.9 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +59 -55
- data/docs/ConvertDataApi.md +12 -12
- data/docs/ConvertDocumentApi.md +73 -73
- data/docs/ConvertImageApi.md +3 -3
- data/docs/ConvertWebApi.md +63 -8
- data/docs/EditDocumentApi.md +120 -120
- data/docs/EditPdfApi.md +130 -2
- data/docs/HtmlToPngRequest.md +11 -0
- data/lib/cloudmersive-convert-api-client.rb +1 -0
- data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +8 -8
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +50 -50
- data/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +2 -2
- data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +62 -7
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +106 -106
- data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +157 -3
- data/lib/cloudmersive-convert-api-client/models/html_to_png_request.rb +219 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/convert_data_api_spec.rb +4 -4
- data/spec/api/convert_document_api_spec.rb +23 -23
- data/spec/api/convert_image_api_spec.rb +1 -1
- data/spec/api/convert_web_api_spec.rb +14 -2
- data/spec/api/edit_document_api_spec.rb +53 -53
- data/spec/api/edit_pdf_api_spec.rb +31 -1
- data/spec/models/html_to_png_request_spec.rb +60 -0
- metadata +5 -2
data/docs/EditPdfApi.md
CHANGED
@@ -4,9 +4,11 @@ All URIs are relative to *https://api.cloudmersive.com*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**edit_pdf_delete_pages**](EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove / delete pages from a PDF document
|
7
8
|
[**edit_pdf_encrypt**](EditPdfApi.md#edit_pdf_encrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF
|
8
9
|
[**edit_pdf_get_form_fields**](EditPdfApi.md#edit_pdf_get_form_fields) | **POST** /convert/edit/pdf/form/get-fields | Gets PDF Form fields and values
|
9
10
|
[**edit_pdf_get_metadata**](EditPdfApi.md#edit_pdf_get_metadata) | **POST** /convert/edit/pdf/get-metadata | Get PDF document metadata
|
11
|
+
[**edit_pdf_insert_pages**](EditPdfApi.md#edit_pdf_insert_pages) | **POST** /convert/edit/pdf/pages/insert | Insert / copy pages from one PDF document into another
|
10
12
|
[**edit_pdf_rasterize**](EditPdfApi.md#edit_pdf_rasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF
|
11
13
|
[**edit_pdf_set_form_fields**](EditPdfApi.md#edit_pdf_set_form_fields) | **POST** /convert/edit/pdf/form/set-fields | Sets ands fills PDF Form field values
|
12
14
|
[**edit_pdf_set_metadata**](EditPdfApi.md#edit_pdf_set_metadata) | **POST** /convert/edit/pdf/set-metadata | Sets PDF document metadata
|
@@ -14,6 +16,66 @@ Method | HTTP request | Description
|
|
14
16
|
[**edit_pdf_watermark_text**](EditPdfApi.md#edit_pdf_watermark_text) | **POST** /convert/edit/pdf/watermark/text | Add a text watermark to a PDF
|
15
17
|
|
16
18
|
|
19
|
+
# **edit_pdf_delete_pages**
|
20
|
+
> String edit_pdf_delete_pages(input_file, page_start, page_end)
|
21
|
+
|
22
|
+
Remove / delete pages from a PDF document
|
23
|
+
|
24
|
+
Remove one or more pages from a PDF document
|
25
|
+
|
26
|
+
### Example
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'cloudmersive-convert-api-client'
|
30
|
+
# setup authorization
|
31
|
+
CloudmersiveConvertApiClient.configure do |config|
|
32
|
+
# Configure API key authorization: Apikey
|
33
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
34
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
35
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
39
|
+
|
40
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
41
|
+
|
42
|
+
page_start = 56 # Integer | Page number (1 based) to start deleting pages from (inclusive).
|
43
|
+
|
44
|
+
page_end = 56 # Integer | Page number (1 based) to stop deleting pages from (inclusive).
|
45
|
+
|
46
|
+
|
47
|
+
begin
|
48
|
+
#Remove / delete pages from a PDF document
|
49
|
+
result = api_instance.edit_pdf_delete_pages(input_file, page_start, page_end)
|
50
|
+
p result
|
51
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
52
|
+
puts "Exception when calling EditPdfApi->edit_pdf_delete_pages: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
61
|
+
**page_start** | **Integer**| Page number (1 based) to start deleting pages from (inclusive). |
|
62
|
+
**page_end** | **Integer**| Page number (1 based) to stop deleting pages from (inclusive). |
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
**String**
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[Apikey](../README.md#Apikey)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: multipart/form-data
|
75
|
+
- **Accept**: application/octet-stream
|
76
|
+
|
77
|
+
|
78
|
+
|
17
79
|
# **edit_pdf_encrypt**
|
18
80
|
> String edit_pdf_encrypt(input_file, opts)
|
19
81
|
|
@@ -182,6 +244,72 @@ Name | Type | Description | Notes
|
|
182
244
|
|
183
245
|
|
184
246
|
|
247
|
+
# **edit_pdf_insert_pages**
|
248
|
+
> String edit_pdf_insert_pages(source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation)
|
249
|
+
|
250
|
+
Insert / copy pages from one PDF document into another
|
251
|
+
|
252
|
+
Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document).
|
253
|
+
|
254
|
+
### Example
|
255
|
+
```ruby
|
256
|
+
# load the gem
|
257
|
+
require 'cloudmersive-convert-api-client'
|
258
|
+
# setup authorization
|
259
|
+
CloudmersiveConvertApiClient.configure do |config|
|
260
|
+
# Configure API key authorization: Apikey
|
261
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
262
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
263
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
264
|
+
end
|
265
|
+
|
266
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
267
|
+
|
268
|
+
source_file = File.new("/path/to/file.txt") # File | Source PDF file to copy pages from.
|
269
|
+
|
270
|
+
destination_file = File.new("/path/to/file.txt") # File | Destination PDF file to copy pages into.
|
271
|
+
|
272
|
+
page_start_source = 56 # Integer | Page number (1 based) to start copying pages from (inclusive) in the Source file.
|
273
|
+
|
274
|
+
page_end_source = 56 # Integer | Page number (1 based) to stop copying pages pages from (inclusive) in the Source file.
|
275
|
+
|
276
|
+
page_insert_before_desitnation = 56 # Integer | Page number (1 based) to insert the pages before in the Destination file.
|
277
|
+
|
278
|
+
|
279
|
+
begin
|
280
|
+
#Insert / copy pages from one PDF document into another
|
281
|
+
result = api_instance.edit_pdf_insert_pages(source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation)
|
282
|
+
p result
|
283
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
284
|
+
puts "Exception when calling EditPdfApi->edit_pdf_insert_pages: #{e}"
|
285
|
+
end
|
286
|
+
```
|
287
|
+
|
288
|
+
### Parameters
|
289
|
+
|
290
|
+
Name | Type | Description | Notes
|
291
|
+
------------- | ------------- | ------------- | -------------
|
292
|
+
**source_file** | **File**| Source PDF file to copy pages from. |
|
293
|
+
**destination_file** | **File**| Destination PDF file to copy pages into. |
|
294
|
+
**page_start_source** | **Integer**| Page number (1 based) to start copying pages from (inclusive) in the Source file. |
|
295
|
+
**page_end_source** | **Integer**| Page number (1 based) to stop copying pages pages from (inclusive) in the Source file. |
|
296
|
+
**page_insert_before_desitnation** | **Integer**| Page number (1 based) to insert the pages before in the Destination file. |
|
297
|
+
|
298
|
+
### Return type
|
299
|
+
|
300
|
+
**String**
|
301
|
+
|
302
|
+
### Authorization
|
303
|
+
|
304
|
+
[Apikey](../README.md#Apikey)
|
305
|
+
|
306
|
+
### HTTP request headers
|
307
|
+
|
308
|
+
- **Content-Type**: multipart/form-data
|
309
|
+
- **Accept**: application/octet-stream
|
310
|
+
|
311
|
+
|
312
|
+
|
185
313
|
# **edit_pdf_rasterize**
|
186
314
|
> String edit_pdf_rasterize(input_file)
|
187
315
|
|
@@ -291,7 +419,7 @@ Name | Type | Description | Notes
|
|
291
419
|
|
292
420
|
|
293
421
|
# **edit_pdf_set_metadata**
|
294
|
-
>
|
422
|
+
> String edit_pdf_set_metadata(request)
|
295
423
|
|
296
424
|
Sets PDF document metadata
|
297
425
|
|
@@ -331,7 +459,7 @@ Name | Type | Description | Notes
|
|
331
459
|
|
332
460
|
### Return type
|
333
461
|
|
334
|
-
**
|
462
|
+
**String**
|
335
463
|
|
336
464
|
### Authorization
|
337
465
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::HtmlToPngRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**html** | **String** | HTML to render to PNG (screenshot) | [optional]
|
7
|
+
**extra_loading_wait** | **Integer** | Optional: Additional number of milliseconds to wait once the web page has finished loading before taking the screenshot. Can be helpful for highly asynchronous websites. | [optional]
|
8
|
+
**screenshot_width** | **Integer** | Optional: Width of the screenshot in pixels; supply 0 to default to 1280 x 1024, supply -1 to measure the full screen height of the page and attempt to take a screen-height screenshot | [optional]
|
9
|
+
**screenshot_height** | **Integer** | Optional: Height of the screenshot in pixels; supply 0 to default to 1280 x 1024, supply -1 to measure the full screen height of the page and attempt to take a screen-height screenshot | [optional]
|
10
|
+
|
11
|
+
|
@@ -79,6 +79,7 @@ require 'cloudmersive-convert-api-client/models/html_template_application_respon
|
|
79
79
|
require 'cloudmersive-convert-api-client/models/html_template_operation'
|
80
80
|
require 'cloudmersive-convert-api-client/models/html_to_office_request'
|
81
81
|
require 'cloudmersive-convert-api-client/models/html_to_pdf_request'
|
82
|
+
require 'cloudmersive-convert-api-client/models/html_to_png_request'
|
82
83
|
require 'cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request'
|
83
84
|
require 'cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response'
|
84
85
|
require 'cloudmersive-convert-api-client/models/insert_docx_tables_request'
|
@@ -20,7 +20,7 @@ module CloudmersiveConvertApiClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
-
# CSV to JSON conversion
|
23
|
+
# Convert CSV to JSON conversion
|
24
24
|
# Convert a CSV file to a JSON object array
|
25
25
|
# @param input_file Input file to perform the operation on.
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -30,7 +30,7 @@ module CloudmersiveConvertApiClient
|
|
30
30
|
return data
|
31
31
|
end
|
32
32
|
|
33
|
-
# CSV to JSON conversion
|
33
|
+
# Convert CSV to JSON conversion
|
34
34
|
# Convert a CSV file to a JSON object array
|
35
35
|
# @param input_file Input file to perform the operation on.
|
36
36
|
# @param [Hash] opts the optional parameters
|
@@ -76,7 +76,7 @@ module CloudmersiveConvertApiClient
|
|
76
76
|
return data, status_code, headers
|
77
77
|
end
|
78
78
|
|
79
|
-
# Excel (97-2003) XLS to JSON conversion
|
79
|
+
# Convert Excel (97-2003) XLS to JSON conversion
|
80
80
|
# Convert an Excel (97-2003) XLS file to a JSON object array
|
81
81
|
# @param input_file Input file to perform the operation on.
|
82
82
|
# @param [Hash] opts the optional parameters
|
@@ -86,7 +86,7 @@ module CloudmersiveConvertApiClient
|
|
86
86
|
return data
|
87
87
|
end
|
88
88
|
|
89
|
-
# Excel (97-2003) XLS to JSON conversion
|
89
|
+
# Convert Excel (97-2003) XLS to JSON conversion
|
90
90
|
# Convert an Excel (97-2003) XLS file to a JSON object array
|
91
91
|
# @param input_file Input file to perform the operation on.
|
92
92
|
# @param [Hash] opts the optional parameters
|
@@ -132,7 +132,7 @@ module CloudmersiveConvertApiClient
|
|
132
132
|
return data, status_code, headers
|
133
133
|
end
|
134
134
|
|
135
|
-
# Excel XLSX to JSON conversion
|
135
|
+
# Convert Excel XLSX to JSON conversion
|
136
136
|
# Convert an Excel XLSX file to a JSON object array
|
137
137
|
# @param input_file Input file to perform the operation on.
|
138
138
|
# @param [Hash] opts the optional parameters
|
@@ -142,7 +142,7 @@ module CloudmersiveConvertApiClient
|
|
142
142
|
return data
|
143
143
|
end
|
144
144
|
|
145
|
-
# Excel XLSX to JSON conversion
|
145
|
+
# Convert Excel XLSX to JSON conversion
|
146
146
|
# Convert an Excel XLSX file to a JSON object array
|
147
147
|
# @param input_file Input file to perform the operation on.
|
148
148
|
# @param [Hash] opts the optional parameters
|
@@ -188,7 +188,7 @@ module CloudmersiveConvertApiClient
|
|
188
188
|
return data, status_code, headers
|
189
189
|
end
|
190
190
|
|
191
|
-
# XML to JSON conversion
|
191
|
+
# Convert XML to JSON conversion
|
192
192
|
# Convert an XML string or file into JSON
|
193
193
|
# @param input_file Input file to perform the operation on.
|
194
194
|
# @param [Hash] opts the optional parameters
|
@@ -198,7 +198,7 @@ module CloudmersiveConvertApiClient
|
|
198
198
|
return data
|
199
199
|
end
|
200
200
|
|
201
|
-
# XML to JSON conversion
|
201
|
+
# Convert XML to JSON conversion
|
202
202
|
# Convert an XML string or file into JSON
|
203
203
|
# @param input_file Input file to perform the operation on.
|
204
204
|
# @param [Hash] opts the optional parameters
|
@@ -164,7 +164,7 @@ module CloudmersiveConvertApiClient
|
|
164
164
|
# header parameters
|
165
165
|
header_params = {}
|
166
166
|
# HTTP header 'Accept' (if needed)
|
167
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
168
168
|
# HTTP header 'Content-Type'
|
169
169
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
170
170
|
|
@@ -244,7 +244,7 @@ module CloudmersiveConvertApiClient
|
|
244
244
|
return data, status_code, headers
|
245
245
|
end
|
246
246
|
|
247
|
-
# CSV to Excel XLSX
|
247
|
+
# Convert CSV to Excel XLSX Spreadsheet
|
248
248
|
# Convert CSV file to Office Excel XLSX Workbooks file format.
|
249
249
|
# @param input_file Input file to perform the operation on.
|
250
250
|
# @param [Hash] opts the optional parameters
|
@@ -254,7 +254,7 @@ module CloudmersiveConvertApiClient
|
|
254
254
|
return data
|
255
255
|
end
|
256
256
|
|
257
|
-
# CSV to Excel XLSX
|
257
|
+
# Convert CSV to Excel XLSX Spreadsheet
|
258
258
|
# Convert CSV file to Office Excel XLSX Workbooks file format.
|
259
259
|
# @param input_file Input file to perform the operation on.
|
260
260
|
# @param [Hash] opts the optional parameters
|
@@ -300,7 +300,7 @@ module CloudmersiveConvertApiClient
|
|
300
300
|
return data, status_code, headers
|
301
301
|
end
|
302
302
|
|
303
|
-
# Word DOC (97-03) to DOCX
|
303
|
+
# Convert Word DOC (97-03) Document to DOCX
|
304
304
|
# Convert/upgrade Office Word (97-2003 Format) Documents (doc) to the modern DOCX format
|
305
305
|
# @param input_file Input file to perform the operation on.
|
306
306
|
# @param [Hash] opts the optional parameters
|
@@ -310,7 +310,7 @@ module CloudmersiveConvertApiClient
|
|
310
310
|
return data
|
311
311
|
end
|
312
312
|
|
313
|
-
# Word DOC (97-03) to DOCX
|
313
|
+
# Convert Word DOC (97-03) Document to DOCX
|
314
314
|
# Convert/upgrade Office Word (97-2003 Format) Documents (doc) to the modern DOCX format
|
315
315
|
# @param input_file Input file to perform the operation on.
|
316
316
|
# @param [Hash] opts the optional parameters
|
@@ -356,7 +356,7 @@ module CloudmersiveConvertApiClient
|
|
356
356
|
return data, status_code, headers
|
357
357
|
end
|
358
358
|
|
359
|
-
# Word DOC (97-03) to PDF
|
359
|
+
# Convert Word DOC (97-03) Document to PDF
|
360
360
|
# Convert Office Word (97-2003 Format) Documents (doc) to standard PDF
|
361
361
|
# @param input_file Input file to perform the operation on.
|
362
362
|
# @param [Hash] opts the optional parameters
|
@@ -366,7 +366,7 @@ module CloudmersiveConvertApiClient
|
|
366
366
|
return data
|
367
367
|
end
|
368
368
|
|
369
|
-
# Word DOC (97-03) to PDF
|
369
|
+
# Convert Word DOC (97-03) Document to PDF
|
370
370
|
# Convert Office Word (97-2003 Format) Documents (doc) to standard PDF
|
371
371
|
# @param input_file Input file to perform the operation on.
|
372
372
|
# @param [Hash] opts the optional parameters
|
@@ -412,7 +412,7 @@ module CloudmersiveConvertApiClient
|
|
412
412
|
return data, status_code, headers
|
413
413
|
end
|
414
414
|
|
415
|
-
# Word DOCX to PDF
|
415
|
+
# Convert Word DOCX Document to PDF
|
416
416
|
# Convert Office Word Documents (docx) to standard PDF
|
417
417
|
# @param input_file Input file to perform the operation on.
|
418
418
|
# @param [Hash] opts the optional parameters
|
@@ -422,7 +422,7 @@ module CloudmersiveConvertApiClient
|
|
422
422
|
return data
|
423
423
|
end
|
424
424
|
|
425
|
-
# Word DOCX to PDF
|
425
|
+
# Convert Word DOCX Document to PDF
|
426
426
|
# Convert Office Word Documents (docx) to standard PDF
|
427
427
|
# @param input_file Input file to perform the operation on.
|
428
428
|
# @param [Hash] opts the optional parameters
|
@@ -468,7 +468,7 @@ module CloudmersiveConvertApiClient
|
|
468
468
|
return data, status_code, headers
|
469
469
|
end
|
470
470
|
|
471
|
-
# Word DOCX to Text
|
471
|
+
# Convert Word DOCX Document to Text
|
472
472
|
# Convert Office Word Documents (docx) to text
|
473
473
|
# @param input_file Input file to perform the operation on.
|
474
474
|
# @param [Hash] opts the optional parameters
|
@@ -478,7 +478,7 @@ module CloudmersiveConvertApiClient
|
|
478
478
|
return data
|
479
479
|
end
|
480
480
|
|
481
|
-
# Word DOCX to Text
|
481
|
+
# Convert Word DOCX Document to Text
|
482
482
|
# Convert Office Word Documents (docx) to text
|
483
483
|
# @param input_file Input file to perform the operation on.
|
484
484
|
# @param [Hash] opts the optional parameters
|
@@ -524,7 +524,7 @@ module CloudmersiveConvertApiClient
|
|
524
524
|
return data, status_code, headers
|
525
525
|
end
|
526
526
|
|
527
|
-
# HTML to PDF
|
527
|
+
# Convert HTML to PDF Document
|
528
528
|
# Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file.
|
529
529
|
# @param input_file Input file to perform the operation on.
|
530
530
|
# @param [Hash] opts the optional parameters
|
@@ -534,7 +534,7 @@ module CloudmersiveConvertApiClient
|
|
534
534
|
return data
|
535
535
|
end
|
536
536
|
|
537
|
-
# HTML to PDF
|
537
|
+
# Convert HTML to PDF Document
|
538
538
|
# Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file.
|
539
539
|
# @param input_file Input file to perform the operation on.
|
540
540
|
# @param [Hash] opts the optional parameters
|
@@ -580,7 +580,7 @@ module CloudmersiveConvertApiClient
|
|
580
580
|
return data, status_code, headers
|
581
581
|
end
|
582
582
|
|
583
|
-
# HTML to PNG array
|
583
|
+
# Convert HTML to PNG image array
|
584
584
|
# Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to an array of PNG images, one for each page. To use external files in your HTML such as images, use an absolute URL to the file.
|
585
585
|
# @param input_file Input file to perform the operation on.
|
586
586
|
# @param [Hash] opts the optional parameters
|
@@ -590,7 +590,7 @@ module CloudmersiveConvertApiClient
|
|
590
590
|
return data
|
591
591
|
end
|
592
592
|
|
593
|
-
# HTML to PNG array
|
593
|
+
# Convert HTML to PNG image array
|
594
594
|
# Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to an array of PNG images, one for each page. To use external files in your HTML such as images, use an absolute URL to the file.
|
595
595
|
# @param input_file Input file to perform the operation on.
|
596
596
|
# @param [Hash] opts the optional parameters
|
@@ -612,7 +612,7 @@ module CloudmersiveConvertApiClient
|
|
612
612
|
# header parameters
|
613
613
|
header_params = {}
|
614
614
|
# HTTP header 'Accept' (if needed)
|
615
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
615
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
616
616
|
# HTTP header 'Content-Type'
|
617
617
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
618
618
|
|
@@ -636,7 +636,7 @@ module CloudmersiveConvertApiClient
|
|
636
636
|
return data, status_code, headers
|
637
637
|
end
|
638
638
|
|
639
|
-
# PDF to Word DOCX
|
639
|
+
# Convert PDF to Word DOCX Document
|
640
640
|
# Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed.
|
641
641
|
# @param input_file Input file to perform the operation on.
|
642
642
|
# @param [Hash] opts the optional parameters
|
@@ -646,7 +646,7 @@ module CloudmersiveConvertApiClient
|
|
646
646
|
return data
|
647
647
|
end
|
648
648
|
|
649
|
-
# PDF to Word DOCX
|
649
|
+
# Convert PDF to Word DOCX Document
|
650
650
|
# Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed.
|
651
651
|
# @param input_file Input file to perform the operation on.
|
652
652
|
# @param [Hash] opts the optional parameters
|
@@ -692,7 +692,7 @@ module CloudmersiveConvertApiClient
|
|
692
692
|
return data, status_code, headers
|
693
693
|
end
|
694
694
|
|
695
|
-
# PDF to PNG Array
|
695
|
+
# Convert PDF to PNG Image Array
|
696
696
|
# Convert PDF document to PNG array, one image per page.
|
697
697
|
# @param input_file Input file to perform the operation on.
|
698
698
|
# @param [Hash] opts the optional parameters
|
@@ -702,7 +702,7 @@ module CloudmersiveConvertApiClient
|
|
702
702
|
return data
|
703
703
|
end
|
704
704
|
|
705
|
-
# PDF to PNG Array
|
705
|
+
# Convert PDF to PNG Image Array
|
706
706
|
# Convert PDF document to PNG array, one image per page.
|
707
707
|
# @param input_file Input file to perform the operation on.
|
708
708
|
# @param [Hash] opts the optional parameters
|
@@ -724,7 +724,7 @@ module CloudmersiveConvertApiClient
|
|
724
724
|
# header parameters
|
725
725
|
header_params = {}
|
726
726
|
# HTTP header 'Accept' (if needed)
|
727
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
727
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
728
728
|
# HTTP header 'Content-Type'
|
729
729
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
730
730
|
|
@@ -748,7 +748,7 @@ module CloudmersiveConvertApiClient
|
|
748
748
|
return data, status_code, headers
|
749
749
|
end
|
750
750
|
|
751
|
-
# PDF to Single PNG image
|
751
|
+
# Convert PDF to Single PNG image
|
752
752
|
# Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
|
753
753
|
# @param input_file Input file to perform the operation on.
|
754
754
|
# @param [Hash] opts the optional parameters
|
@@ -758,7 +758,7 @@ module CloudmersiveConvertApiClient
|
|
758
758
|
return data
|
759
759
|
end
|
760
760
|
|
761
|
-
# PDF to Single PNG image
|
761
|
+
# Convert PDF to Single PNG image
|
762
762
|
# Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
|
763
763
|
# @param input_file Input file to perform the operation on.
|
764
764
|
# @param [Hash] opts the optional parameters
|
@@ -804,7 +804,7 @@ module CloudmersiveConvertApiClient
|
|
804
804
|
return data, status_code, headers
|
805
805
|
end
|
806
806
|
|
807
|
-
# PDF to PowerPoint PPTX
|
807
|
+
# Convert PDF to PowerPoint PPTX Presentation
|
808
808
|
# Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed.
|
809
809
|
# @param input_file Input file to perform the operation on.
|
810
810
|
# @param [Hash] opts the optional parameters
|
@@ -814,7 +814,7 @@ module CloudmersiveConvertApiClient
|
|
814
814
|
return data
|
815
815
|
end
|
816
816
|
|
817
|
-
# PDF to PowerPoint PPTX
|
817
|
+
# Convert PDF to PowerPoint PPTX Presentation
|
818
818
|
# Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed.
|
819
819
|
# @param input_file Input file to perform the operation on.
|
820
820
|
# @param [Hash] opts the optional parameters
|
@@ -860,7 +860,7 @@ module CloudmersiveConvertApiClient
|
|
860
860
|
return data, status_code, headers
|
861
861
|
end
|
862
862
|
|
863
|
-
# PDF to Text
|
863
|
+
# Convert PDF Document to Text
|
864
864
|
# PDF document to text
|
865
865
|
# @param input_file Input file to perform the operation on.
|
866
866
|
# @param [Hash] opts the optional parameters
|
@@ -870,7 +870,7 @@ module CloudmersiveConvertApiClient
|
|
870
870
|
return data
|
871
871
|
end
|
872
872
|
|
873
|
-
# PDF to Text
|
873
|
+
# Convert PDF Document to Text
|
874
874
|
# PDF document to text
|
875
875
|
# @param input_file Input file to perform the operation on.
|
876
876
|
# @param [Hash] opts the optional parameters
|
@@ -892,7 +892,7 @@ module CloudmersiveConvertApiClient
|
|
892
892
|
# header parameters
|
893
893
|
header_params = {}
|
894
894
|
# HTTP header 'Accept' (if needed)
|
895
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
895
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
896
896
|
# HTTP header 'Content-Type'
|
897
897
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
898
898
|
|
@@ -916,7 +916,7 @@ module CloudmersiveConvertApiClient
|
|
916
916
|
return data, status_code, headers
|
917
917
|
end
|
918
918
|
|
919
|
-
# PNG Array to PDF
|
919
|
+
# Convert PNG Array to PDF
|
920
920
|
# Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
|
921
921
|
# @param input_file1 First input file to perform the operation on.
|
922
922
|
# @param input_file2 Second input file to perform the operation on.
|
@@ -935,7 +935,7 @@ module CloudmersiveConvertApiClient
|
|
935
935
|
return data
|
936
936
|
end
|
937
937
|
|
938
|
-
# PNG Array to PDF
|
938
|
+
# Convert PNG Array to PDF
|
939
939
|
# Convert an array of PNG images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
|
940
940
|
# @param input_file1 First input file to perform the operation on.
|
941
941
|
# @param input_file2 Second input file to perform the operation on.
|
@@ -1003,7 +1003,7 @@ module CloudmersiveConvertApiClient
|
|
1003
1003
|
return data, status_code, headers
|
1004
1004
|
end
|
1005
1005
|
|
1006
|
-
# PowerPoint PPT (97-03) to PDF
|
1006
|
+
# Convert PowerPoint PPT (97-03) Presentation to PDF
|
1007
1007
|
# Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
|
1008
1008
|
# @param input_file Input file to perform the operation on.
|
1009
1009
|
# @param [Hash] opts the optional parameters
|
@@ -1013,7 +1013,7 @@ module CloudmersiveConvertApiClient
|
|
1013
1013
|
return data
|
1014
1014
|
end
|
1015
1015
|
|
1016
|
-
# PowerPoint PPT (97-03) to PDF
|
1016
|
+
# Convert PowerPoint PPT (97-03) Presentation to PDF
|
1017
1017
|
# Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
|
1018
1018
|
# @param input_file Input file to perform the operation on.
|
1019
1019
|
# @param [Hash] opts the optional parameters
|
@@ -1059,7 +1059,7 @@ module CloudmersiveConvertApiClient
|
|
1059
1059
|
return data, status_code, headers
|
1060
1060
|
end
|
1061
1061
|
|
1062
|
-
# PowerPoint PPT (97-03) to PPTX
|
1062
|
+
# Convert PowerPoint PPT (97-03) Presentation to PPTX
|
1063
1063
|
# Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
|
1064
1064
|
# @param input_file Input file to perform the operation on.
|
1065
1065
|
# @param [Hash] opts the optional parameters
|
@@ -1069,7 +1069,7 @@ module CloudmersiveConvertApiClient
|
|
1069
1069
|
return data
|
1070
1070
|
end
|
1071
1071
|
|
1072
|
-
# PowerPoint PPT (97-03) to PPTX
|
1072
|
+
# Convert PowerPoint PPT (97-03) Presentation to PPTX
|
1073
1073
|
# Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX
|
1074
1074
|
# @param input_file Input file to perform the operation on.
|
1075
1075
|
# @param [Hash] opts the optional parameters
|
@@ -1115,7 +1115,7 @@ module CloudmersiveConvertApiClient
|
|
1115
1115
|
return data, status_code, headers
|
1116
1116
|
end
|
1117
1117
|
|
1118
|
-
# PowerPoint PPTX to PDF
|
1118
|
+
# Convert PowerPoint PPTX Presentation to PDF
|
1119
1119
|
# Convert Office PowerPoint Documents (pptx) to standard PDF
|
1120
1120
|
# @param input_file Input file to perform the operation on.
|
1121
1121
|
# @param [Hash] opts the optional parameters
|
@@ -1125,7 +1125,7 @@ module CloudmersiveConvertApiClient
|
|
1125
1125
|
return data
|
1126
1126
|
end
|
1127
1127
|
|
1128
|
-
# PowerPoint PPTX to PDF
|
1128
|
+
# Convert PowerPoint PPTX Presentation to PDF
|
1129
1129
|
# Convert Office PowerPoint Documents (pptx) to standard PDF
|
1130
1130
|
# @param input_file Input file to perform the operation on.
|
1131
1131
|
# @param [Hash] opts the optional parameters
|
@@ -1171,7 +1171,7 @@ module CloudmersiveConvertApiClient
|
|
1171
1171
|
return data, status_code, headers
|
1172
1172
|
end
|
1173
1173
|
|
1174
|
-
# PowerPoint PPTX to Text
|
1174
|
+
# Convert PowerPoint PPTX Presentation to Text
|
1175
1175
|
# Convert Office PowerPoint Documents (pptx) to standard Text
|
1176
1176
|
# @param input_file Input file to perform the operation on.
|
1177
1177
|
# @param [Hash] opts the optional parameters
|
@@ -1181,7 +1181,7 @@ module CloudmersiveConvertApiClient
|
|
1181
1181
|
return data
|
1182
1182
|
end
|
1183
1183
|
|
1184
|
-
# PowerPoint PPTX to Text
|
1184
|
+
# Convert PowerPoint PPTX Presentation to Text
|
1185
1185
|
# Convert Office PowerPoint Documents (pptx) to standard Text
|
1186
1186
|
# @param input_file Input file to perform the operation on.
|
1187
1187
|
# @param [Hash] opts the optional parameters
|
@@ -1227,7 +1227,7 @@ module CloudmersiveConvertApiClient
|
|
1227
1227
|
return data, status_code, headers
|
1228
1228
|
end
|
1229
1229
|
|
1230
|
-
# Excel XLS (97-03) to CSV
|
1230
|
+
# Convert Excel XLS (97-03) Spreadsheet to CSV
|
1231
1231
|
# Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
|
1232
1232
|
# @param input_file Input file to perform the operation on.
|
1233
1233
|
# @param [Hash] opts the optional parameters
|
@@ -1237,7 +1237,7 @@ module CloudmersiveConvertApiClient
|
|
1237
1237
|
return data
|
1238
1238
|
end
|
1239
1239
|
|
1240
|
-
# Excel XLS (97-03) to CSV
|
1240
|
+
# Convert Excel XLS (97-03) Spreadsheet to CSV
|
1241
1241
|
# Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
|
1242
1242
|
# @param input_file Input file to perform the operation on.
|
1243
1243
|
# @param [Hash] opts the optional parameters
|
@@ -1283,7 +1283,7 @@ module CloudmersiveConvertApiClient
|
|
1283
1283
|
return data, status_code, headers
|
1284
1284
|
end
|
1285
1285
|
|
1286
|
-
# Excel XLS (97-03) to PDF
|
1286
|
+
# Convert Excel XLS (97-03) Spreadsheet to PDF
|
1287
1287
|
# Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
|
1288
1288
|
# @param input_file Input file to perform the operation on.
|
1289
1289
|
# @param [Hash] opts the optional parameters
|
@@ -1293,7 +1293,7 @@ module CloudmersiveConvertApiClient
|
|
1293
1293
|
return data
|
1294
1294
|
end
|
1295
1295
|
|
1296
|
-
# Excel XLS (97-03) to PDF
|
1296
|
+
# Convert Excel XLS (97-03) Spreadsheet to PDF
|
1297
1297
|
# Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF.
|
1298
1298
|
# @param input_file Input file to perform the operation on.
|
1299
1299
|
# @param [Hash] opts the optional parameters
|
@@ -1339,7 +1339,7 @@ module CloudmersiveConvertApiClient
|
|
1339
1339
|
return data, status_code, headers
|
1340
1340
|
end
|
1341
1341
|
|
1342
|
-
# Excel XLS (97-03) to XLSX
|
1342
|
+
# Convert Excel XLS (97-03) Spreadsheet to XLSX
|
1343
1343
|
# Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
|
1344
1344
|
# @param input_file Input file to perform the operation on.
|
1345
1345
|
# @param [Hash] opts the optional parameters
|
@@ -1349,7 +1349,7 @@ module CloudmersiveConvertApiClient
|
|
1349
1349
|
return data
|
1350
1350
|
end
|
1351
1351
|
|
1352
|
-
# Excel XLS (97-03) to XLSX
|
1352
|
+
# Convert Excel XLS (97-03) Spreadsheet to XLSX
|
1353
1353
|
# Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format.
|
1354
1354
|
# @param input_file Input file to perform the operation on.
|
1355
1355
|
# @param [Hash] opts the optional parameters
|
@@ -1395,7 +1395,7 @@ module CloudmersiveConvertApiClient
|
|
1395
1395
|
return data, status_code, headers
|
1396
1396
|
end
|
1397
1397
|
|
1398
|
-
# Excel XLSX to CSV
|
1398
|
+
# Convert Excel XLSX Spreadsheet to CSV
|
1399
1399
|
# Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats.
|
1400
1400
|
# @param input_file Input file to perform the operation on.
|
1401
1401
|
# @param [Hash] opts the optional parameters
|
@@ -1406,7 +1406,7 @@ module CloudmersiveConvertApiClient
|
|
1406
1406
|
return data
|
1407
1407
|
end
|
1408
1408
|
|
1409
|
-
# Excel XLSX to CSV
|
1409
|
+
# Convert Excel XLSX Spreadsheet to CSV
|
1410
1410
|
# Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats.
|
1411
1411
|
# @param input_file Input file to perform the operation on.
|
1412
1412
|
# @param [Hash] opts the optional parameters
|
@@ -1454,7 +1454,7 @@ module CloudmersiveConvertApiClient
|
|
1454
1454
|
return data, status_code, headers
|
1455
1455
|
end
|
1456
1456
|
|
1457
|
-
# Excel XLSX to PDF
|
1457
|
+
# Convert Excel XLSX Spreadsheet to PDF
|
1458
1458
|
# Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
|
1459
1459
|
# @param input_file Input file to perform the operation on.
|
1460
1460
|
# @param [Hash] opts the optional parameters
|
@@ -1464,7 +1464,7 @@ module CloudmersiveConvertApiClient
|
|
1464
1464
|
return data
|
1465
1465
|
end
|
1466
1466
|
|
1467
|
-
# Excel XLSX to PDF
|
1467
|
+
# Convert Excel XLSX Spreadsheet to PDF
|
1468
1468
|
# Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats.
|
1469
1469
|
# @param input_file Input file to perform the operation on.
|
1470
1470
|
# @param [Hash] opts the optional parameters
|
@@ -1510,7 +1510,7 @@ module CloudmersiveConvertApiClient
|
|
1510
1510
|
return data, status_code, headers
|
1511
1511
|
end
|
1512
1512
|
|
1513
|
-
# Excel XLSX to Text
|
1513
|
+
# Convert Excel XLSX Spreadsheet to Text
|
1514
1514
|
# Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats.
|
1515
1515
|
# @param input_file Input file to perform the operation on.
|
1516
1516
|
# @param [Hash] opts the optional parameters
|
@@ -1520,7 +1520,7 @@ module CloudmersiveConvertApiClient
|
|
1520
1520
|
return data
|
1521
1521
|
end
|
1522
1522
|
|
1523
|
-
# Excel XLSX to Text
|
1523
|
+
# Convert Excel XLSX Spreadsheet to Text
|
1524
1524
|
# Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats.
|
1525
1525
|
# @param input_file Input file to perform the operation on.
|
1526
1526
|
# @param [Hash] opts the optional parameters
|