cloudmersive-convert-api-client 2.1.0 → 2.1.5
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 +28 -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 +110 -0
- data/docs/EditHtmlApi.md +60 -0
- data/docs/EditPdfApi.md +169 -0
- data/docs/GetDocxMetadataPropertiesResponse.md +16 -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/ViewerToolsApi.md +8 -2
- data/lib/cloudmersive-convert-api-client.rb +7 -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 +109 -0
- data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +55 -0
- data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +168 -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/viewer_tools_api.rb +6 -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/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/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 +24 -0
- data/spec/api/edit_html_api_spec.rb +14 -0
- data/spec/api/edit_pdf_api_spec.rb +37 -0
- data/spec/api/merge_document_api_spec.rb +34 -0
- data/spec/api/validate_document_api_spec.rb +48 -0
- data/spec/api/viewer_tools_api_spec.rb +2 -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/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
- metadata +23 -2
@@ -0,0 +1,13 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::DocxMetadataCustomProperty
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**property_name** | **String** | Name of the property | [optional]
|
7
|
+
**property_data_type** | **String** | Data type of the property; possible values are \"string\", \"integer\", \"double\" or \"date\" | [optional]
|
8
|
+
**string_value** | **String** | If the property is of a string data type, then provides the string value if available | [optional]
|
9
|
+
**integer_value** | **Integer** | If the property is of a integer data type, then provides the integer value if available | [optional]
|
10
|
+
**double_value** | **Float** | If the property is of a double floating point data type, then provides the double value if available | [optional]
|
11
|
+
**date_value** | **DateTime** | If the property is of a date time data type, then provides the date time value if available | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# CloudmersiveConvertApiClient::DocxSetCustomMetadataPropertiesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**input_file_bytes** | **String** | Optional: Bytes of the input file to operate on | [optional]
|
7
|
+
**input_file_url** | **String** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
|
8
|
+
**properties_to_set** | [**Array<DocxMetadataCustomProperty>**](DocxMetadataCustomProperty.md) | Required: properties to set in the Word Document; provide one or more property definitions to set - be sure to specify the data type and value, together with the property name | [optional]
|
9
|
+
|
10
|
+
|
data/docs/EditDocumentApi.md
CHANGED
@@ -18,6 +18,7 @@ Method | HTTP request | Description
|
|
18
18
|
[**edit_document_docx_get_comments_hierarchical**](EditDocumentApi.md#edit_document_docx_get_comments_hierarchical) | **POST** /convert/edit/docx/get-comments/hierarchical | Get comments from a Word DOCX document hierarchically
|
19
19
|
[**edit_document_docx_get_headers_and_footers**](EditDocumentApi.md#edit_document_docx_get_headers_and_footers) | **POST** /convert/edit/docx/get-headers-and-footers | Get content of a footer from a Word DOCX document
|
20
20
|
[**edit_document_docx_get_images**](EditDocumentApi.md#edit_document_docx_get_images) | **POST** /convert/edit/docx/get-images | Get images from a Word DOCX document
|
21
|
+
[**edit_document_docx_get_metadata_properties**](EditDocumentApi.md#edit_document_docx_get_metadata_properties) | **POST** /convert/edit/docx/get-metadata | Get all metadata properties in Word DOCX document
|
21
22
|
[**edit_document_docx_get_sections**](EditDocumentApi.md#edit_document_docx_get_sections) | **POST** /convert/edit/docx/get-sections | Get sections from a Word DOCX document
|
22
23
|
[**edit_document_docx_get_styles**](EditDocumentApi.md#edit_document_docx_get_styles) | **POST** /convert/edit/docx/get-styles | Get styles from a Word DOCX document
|
23
24
|
[**edit_document_docx_get_table_by_index**](EditDocumentApi.md#edit_document_docx_get_table_by_index) | **POST** /convert/edit/docx/get-table/by-index | Get a specific table by index in a Word DOCX document
|
@@ -35,6 +36,7 @@ Method | HTTP request | Description
|
|
35
36
|
[**edit_document_docx_replace**](EditDocumentApi.md#edit_document_docx_replace) | **POST** /convert/edit/docx/replace-all | Replace string in Word DOCX document
|
36
37
|
[**edit_document_docx_replace_multi**](EditDocumentApi.md#edit_document_docx_replace_multi) | **POST** /convert/edit/docx/replace-all/multi | Replace multiple strings in Word DOCX document
|
37
38
|
[**edit_document_docx_replace_paragraph**](EditDocumentApi.md#edit_document_docx_replace_paragraph) | **POST** /convert/edit/docx/replace/paragraph | Replace matching paragraphs in a Word DOCX document
|
39
|
+
[**edit_document_docx_set_custom_metadata_properties**](EditDocumentApi.md#edit_document_docx_set_custom_metadata_properties) | **POST** /convert/edit/docx/set-metadata/custom-property | Set custom property metadata properties in Word DOCX document
|
38
40
|
[**edit_document_docx_set_footer**](EditDocumentApi.md#edit_document_docx_set_footer) | **POST** /convert/edit/docx/set-footer | Set the footer in a Word DOCX document
|
39
41
|
[**edit_document_docx_set_footer_add_page_number**](EditDocumentApi.md#edit_document_docx_set_footer_add_page_number) | **POST** /convert/edit/docx/set-footer/add-page-number | Add page number to footer in a Word DOCX document
|
40
42
|
[**edit_document_docx_set_header**](EditDocumentApi.md#edit_document_docx_set_header) | **POST** /convert/edit/docx/set-header | Set the header in a Word DOCX document
|
@@ -821,6 +823,60 @@ Name | Type | Description | Notes
|
|
821
823
|
|
822
824
|
|
823
825
|
|
826
|
+
# **edit_document_docx_get_metadata_properties**
|
827
|
+
> GetDocxMetadataPropertiesResponse edit_document_docx_get_metadata_properties(input_file)
|
828
|
+
|
829
|
+
Get all metadata properties in Word DOCX document
|
830
|
+
|
831
|
+
Returns all the metadata properties in an Office Word Document (docx)
|
832
|
+
|
833
|
+
### Example
|
834
|
+
```ruby
|
835
|
+
# load the gem
|
836
|
+
require 'cloudmersive-convert-api-client'
|
837
|
+
# setup authorization
|
838
|
+
CloudmersiveConvertApiClient.configure do |config|
|
839
|
+
# Configure API key authorization: Apikey
|
840
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
841
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
842
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
843
|
+
end
|
844
|
+
|
845
|
+
api_instance = CloudmersiveConvertApiClient::EditDocumentApi.new
|
846
|
+
|
847
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
848
|
+
|
849
|
+
|
850
|
+
begin
|
851
|
+
#Get all metadata properties in Word DOCX document
|
852
|
+
result = api_instance.edit_document_docx_get_metadata_properties(input_file)
|
853
|
+
p result
|
854
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
855
|
+
puts "Exception when calling EditDocumentApi->edit_document_docx_get_metadata_properties: #{e}"
|
856
|
+
end
|
857
|
+
```
|
858
|
+
|
859
|
+
### Parameters
|
860
|
+
|
861
|
+
Name | Type | Description | Notes
|
862
|
+
------------- | ------------- | ------------- | -------------
|
863
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
864
|
+
|
865
|
+
### Return type
|
866
|
+
|
867
|
+
[**GetDocxMetadataPropertiesResponse**](GetDocxMetadataPropertiesResponse.md)
|
868
|
+
|
869
|
+
### Authorization
|
870
|
+
|
871
|
+
[Apikey](../README.md#Apikey)
|
872
|
+
|
873
|
+
### HTTP request headers
|
874
|
+
|
875
|
+
- **Content-Type**: multipart/form-data
|
876
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
877
|
+
|
878
|
+
|
879
|
+
|
824
880
|
# **edit_document_docx_get_sections**
|
825
881
|
> GetDocxSectionsResponse edit_document_docx_get_sections(req_config)
|
826
882
|
|
@@ -1739,6 +1795,60 @@ Name | Type | Description | Notes
|
|
1739
1795
|
|
1740
1796
|
|
1741
1797
|
|
1798
|
+
# **edit_document_docx_set_custom_metadata_properties**
|
1799
|
+
> String edit_document_docx_set_custom_metadata_properties(input)
|
1800
|
+
|
1801
|
+
Set custom property metadata properties in Word DOCX document
|
1802
|
+
|
1803
|
+
Sets the custom property metadata for the metadata properties in an Office Word Document (docx)
|
1804
|
+
|
1805
|
+
### Example
|
1806
|
+
```ruby
|
1807
|
+
# load the gem
|
1808
|
+
require 'cloudmersive-convert-api-client'
|
1809
|
+
# setup authorization
|
1810
|
+
CloudmersiveConvertApiClient.configure do |config|
|
1811
|
+
# Configure API key authorization: Apikey
|
1812
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
1813
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1814
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
1815
|
+
end
|
1816
|
+
|
1817
|
+
api_instance = CloudmersiveConvertApiClient::EditDocumentApi.new
|
1818
|
+
|
1819
|
+
input = CloudmersiveConvertApiClient::DocxSetCustomMetadataPropertiesRequest.new # DocxSetCustomMetadataPropertiesRequest |
|
1820
|
+
|
1821
|
+
|
1822
|
+
begin
|
1823
|
+
#Set custom property metadata properties in Word DOCX document
|
1824
|
+
result = api_instance.edit_document_docx_set_custom_metadata_properties(input)
|
1825
|
+
p result
|
1826
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
1827
|
+
puts "Exception when calling EditDocumentApi->edit_document_docx_set_custom_metadata_properties: #{e}"
|
1828
|
+
end
|
1829
|
+
```
|
1830
|
+
|
1831
|
+
### Parameters
|
1832
|
+
|
1833
|
+
Name | Type | Description | Notes
|
1834
|
+
------------- | ------------- | ------------- | -------------
|
1835
|
+
**input** | [**DocxSetCustomMetadataPropertiesRequest**](DocxSetCustomMetadataPropertiesRequest.md)| |
|
1836
|
+
|
1837
|
+
### Return type
|
1838
|
+
|
1839
|
+
**String**
|
1840
|
+
|
1841
|
+
### Authorization
|
1842
|
+
|
1843
|
+
[Apikey](../README.md#Apikey)
|
1844
|
+
|
1845
|
+
### HTTP request headers
|
1846
|
+
|
1847
|
+
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
|
1848
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
1849
|
+
|
1850
|
+
|
1851
|
+
|
1742
1852
|
# **edit_document_docx_set_footer**
|
1743
1853
|
> DocxSetFooterResponse edit_document_docx_set_footer(req_config)
|
1744
1854
|
|
data/docs/EditHtmlApi.md
CHANGED
@@ -9,6 +9,7 @@ Method | HTTP request | Description
|
|
9
9
|
[**edit_html_html_append_image_inline**](EditHtmlApi.md#edit_html_html_append_image_inline) | **POST** /convert/edit/html/append/image/inline | Append a Base64 Inline Image to an HTML Document
|
10
10
|
[**edit_html_html_append_paragraph**](EditHtmlApi.md#edit_html_html_append_paragraph) | **POST** /convert/edit/html/append/paragraph | Append a Paragraph to an HTML Document
|
11
11
|
[**edit_html_html_create_blank_document**](EditHtmlApi.md#edit_html_html_create_blank_document) | **POST** /convert/edit/html/create/blank | Create a Blank HTML Document
|
12
|
+
[**edit_html_html_get_links**](EditHtmlApi.md#edit_html_html_get_links) | **POST** /convert/edit/html/extract/links | Extract resolved link URLs from HTML File
|
12
13
|
|
13
14
|
|
14
15
|
# **edit_html_html_append_heading**
|
@@ -327,3 +328,62 @@ Name | Type | Description | Notes
|
|
327
328
|
|
328
329
|
|
329
330
|
|
331
|
+
# **edit_html_html_get_links**
|
332
|
+
> HtmlGetLinksResponse edit_html_html_get_links(opts)
|
333
|
+
|
334
|
+
Extract resolved link URLs from HTML File
|
335
|
+
|
336
|
+
Extracts the resolved link URLs, fully-qualified if possible, from an input HTML file.
|
337
|
+
|
338
|
+
### Example
|
339
|
+
```ruby
|
340
|
+
# load the gem
|
341
|
+
require 'cloudmersive-convert-api-client'
|
342
|
+
# setup authorization
|
343
|
+
CloudmersiveConvertApiClient.configure do |config|
|
344
|
+
# Configure API key authorization: Apikey
|
345
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
346
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
347
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
348
|
+
end
|
349
|
+
|
350
|
+
api_instance = CloudmersiveConvertApiClient::EditHtmlApi.new
|
351
|
+
|
352
|
+
opts = {
|
353
|
+
input_file: File.new('/path/to/file.txt'), # File | Optional: Input file to perform the operation on.
|
354
|
+
input_file_url: 'input_file_url_example', # String | Optional: URL of a file to operate on as input.
|
355
|
+
base_url: 'base_url_example' # String | Optional: Base URL of the page, such as https://mydomain.com
|
356
|
+
}
|
357
|
+
|
358
|
+
begin
|
359
|
+
#Extract resolved link URLs from HTML File
|
360
|
+
result = api_instance.edit_html_html_get_links(opts)
|
361
|
+
p result
|
362
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
363
|
+
puts "Exception when calling EditHtmlApi->edit_html_html_get_links: #{e}"
|
364
|
+
end
|
365
|
+
```
|
366
|
+
|
367
|
+
### Parameters
|
368
|
+
|
369
|
+
Name | Type | Description | Notes
|
370
|
+
------------- | ------------- | ------------- | -------------
|
371
|
+
**input_file** | **File**| Optional: Input file to perform the operation on. | [optional]
|
372
|
+
**input_file_url** | **String**| Optional: URL of a file to operate on as input. | [optional]
|
373
|
+
**base_url** | **String**| Optional: Base URL of the page, such as https://mydomain.com | [optional]
|
374
|
+
|
375
|
+
### Return type
|
376
|
+
|
377
|
+
[**HtmlGetLinksResponse**](HtmlGetLinksResponse.md)
|
378
|
+
|
379
|
+
### Authorization
|
380
|
+
|
381
|
+
[Apikey](../README.md#Apikey)
|
382
|
+
|
383
|
+
### HTTP request headers
|
384
|
+
|
385
|
+
- **Content-Type**: Not defined
|
386
|
+
- **Accept**: application/json, text/json, application/xml, text/xml
|
387
|
+
|
388
|
+
|
389
|
+
|
data/docs/EditPdfApi.md
CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**edit_pdf_add_annotations**](EditPdfApi.md#edit_pdf_add_annotations) | **POST** /convert/edit/pdf/annotations/add-item | Add one or more PDF annotations, comments in the PDF document
|
8
|
+
[**edit_pdf_convert_to_pdf_a**](EditPdfApi.md#edit_pdf_convert_to_pdf_a) | **POST** /convert/edit/pdf/optimize/pdf-a | Convert a PDF file to PDF/A
|
8
9
|
[**edit_pdf_decrypt**](EditPdfApi.md#edit_pdf_decrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF
|
9
10
|
[**edit_pdf_delete_pages**](EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove, delete pages from a PDF document
|
10
11
|
[**edit_pdf_encrypt**](EditPdfApi.md#edit_pdf_encrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF
|
@@ -13,7 +14,9 @@ Method | HTTP request | Description
|
|
13
14
|
[**edit_pdf_get_metadata**](EditPdfApi.md#edit_pdf_get_metadata) | **POST** /convert/edit/pdf/get-metadata | Get PDF document metadata
|
14
15
|
[**edit_pdf_get_pdf_text_by_pages**](EditPdfApi.md#edit_pdf_get_pdf_text_by_pages) | **POST** /convert/edit/pdf/pages/get-text | Get text in a PDF document by page
|
15
16
|
[**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
|
17
|
+
[**edit_pdf_linearize**](EditPdfApi.md#edit_pdf_linearize) | **POST** /convert/edit/pdf/optimize/linearize | Linearize and optimize a PDF for streaming download
|
16
18
|
[**edit_pdf_rasterize**](EditPdfApi.md#edit_pdf_rasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF
|
19
|
+
[**edit_pdf_reduce_file_size**](EditPdfApi.md#edit_pdf_reduce_file_size) | **POST** /convert/edit/pdf/optimize/reduce-file-size | Reduce the file size and optimize a PDF
|
17
20
|
[**edit_pdf_remove_all_annotations**](EditPdfApi.md#edit_pdf_remove_all_annotations) | **POST** /convert/edit/pdf/annotations/remove-all | Remove all PDF annotations, including comments in the document
|
18
21
|
[**edit_pdf_remove_annotation_item**](EditPdfApi.md#edit_pdf_remove_annotation_item) | **POST** /convert/edit/pdf/annotations/remove-item | Remove a specific PDF annotation, comment in the document
|
19
22
|
[**edit_pdf_resize**](EditPdfApi.md#edit_pdf_resize) | **POST** /convert/edit/pdf/resize | Change PDF Document's Paper Size
|
@@ -79,6 +82,64 @@ Name | Type | Description | Notes
|
|
79
82
|
|
80
83
|
|
81
84
|
|
85
|
+
# **edit_pdf_convert_to_pdf_a**
|
86
|
+
> String edit_pdf_convert_to_pdf_a(input_file, opts)
|
87
|
+
|
88
|
+
Convert a PDF file to PDF/A
|
89
|
+
|
90
|
+
Converts the input PDF file to a PDF/A-1b or PDF/A-2b standardized PDF.
|
91
|
+
|
92
|
+
### Example
|
93
|
+
```ruby
|
94
|
+
# load the gem
|
95
|
+
require 'cloudmersive-convert-api-client'
|
96
|
+
# setup authorization
|
97
|
+
CloudmersiveConvertApiClient.configure do |config|
|
98
|
+
# Configure API key authorization: Apikey
|
99
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
100
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
101
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
102
|
+
end
|
103
|
+
|
104
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
105
|
+
|
106
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
107
|
+
|
108
|
+
opts = {
|
109
|
+
conformance_level: 'conformance_level_example' # String | Optional: Select the conformance level for PDF/A - specify '1b' for PDF/A-1b or specify '2b' for PDF/A-2b; default is PDF/A-1b
|
110
|
+
}
|
111
|
+
|
112
|
+
begin
|
113
|
+
#Convert a PDF file to PDF/A
|
114
|
+
result = api_instance.edit_pdf_convert_to_pdf_a(input_file, opts)
|
115
|
+
p result
|
116
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
117
|
+
puts "Exception when calling EditPdfApi->edit_pdf_convert_to_pdf_a: #{e}"
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
### Parameters
|
122
|
+
|
123
|
+
Name | Type | Description | Notes
|
124
|
+
------------- | ------------- | ------------- | -------------
|
125
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
126
|
+
**conformance_level** | **String**| Optional: Select the conformance level for PDF/A - specify '1b' for PDF/A-1b or specify '2b' for PDF/A-2b; default is PDF/A-1b | [optional]
|
127
|
+
|
128
|
+
### Return type
|
129
|
+
|
130
|
+
**String**
|
131
|
+
|
132
|
+
### Authorization
|
133
|
+
|
134
|
+
[Apikey](../README.md#Apikey)
|
135
|
+
|
136
|
+
### HTTP request headers
|
137
|
+
|
138
|
+
- **Content-Type**: multipart/form-data
|
139
|
+
- **Accept**: application/octet-stream
|
140
|
+
|
141
|
+
|
142
|
+
|
82
143
|
# **edit_pdf_decrypt**
|
83
144
|
> String edit_pdf_decrypt(password, input_file)
|
84
145
|
|
@@ -544,6 +605,60 @@ Name | Type | Description | Notes
|
|
544
605
|
|
545
606
|
|
546
607
|
|
608
|
+
# **edit_pdf_linearize**
|
609
|
+
> String edit_pdf_linearize(input_file)
|
610
|
+
|
611
|
+
Linearize and optimize a PDF for streaming download
|
612
|
+
|
613
|
+
Linearizes the content of a PDF to optimize it for streaming download, particularly over web streaming.
|
614
|
+
|
615
|
+
### Example
|
616
|
+
```ruby
|
617
|
+
# load the gem
|
618
|
+
require 'cloudmersive-convert-api-client'
|
619
|
+
# setup authorization
|
620
|
+
CloudmersiveConvertApiClient.configure do |config|
|
621
|
+
# Configure API key authorization: Apikey
|
622
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
623
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
624
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
625
|
+
end
|
626
|
+
|
627
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
628
|
+
|
629
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
630
|
+
|
631
|
+
|
632
|
+
begin
|
633
|
+
#Linearize and optimize a PDF for streaming download
|
634
|
+
result = api_instance.edit_pdf_linearize(input_file)
|
635
|
+
p result
|
636
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
637
|
+
puts "Exception when calling EditPdfApi->edit_pdf_linearize: #{e}"
|
638
|
+
end
|
639
|
+
```
|
640
|
+
|
641
|
+
### Parameters
|
642
|
+
|
643
|
+
Name | Type | Description | Notes
|
644
|
+
------------- | ------------- | ------------- | -------------
|
645
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
646
|
+
|
647
|
+
### Return type
|
648
|
+
|
649
|
+
**String**
|
650
|
+
|
651
|
+
### Authorization
|
652
|
+
|
653
|
+
[Apikey](../README.md#Apikey)
|
654
|
+
|
655
|
+
### HTTP request headers
|
656
|
+
|
657
|
+
- **Content-Type**: multipart/form-data
|
658
|
+
- **Accept**: application/octet-stream
|
659
|
+
|
660
|
+
|
661
|
+
|
547
662
|
# **edit_pdf_rasterize**
|
548
663
|
> String edit_pdf_rasterize(input_file)
|
549
664
|
|
@@ -598,6 +713,60 @@ Name | Type | Description | Notes
|
|
598
713
|
|
599
714
|
|
600
715
|
|
716
|
+
# **edit_pdf_reduce_file_size**
|
717
|
+
> String edit_pdf_reduce_file_size(input_file)
|
718
|
+
|
719
|
+
Reduce the file size and optimize a PDF
|
720
|
+
|
721
|
+
Reduces the file size and optimizes the content of a PDF to minimize its file size.
|
722
|
+
|
723
|
+
### Example
|
724
|
+
```ruby
|
725
|
+
# load the gem
|
726
|
+
require 'cloudmersive-convert-api-client'
|
727
|
+
# setup authorization
|
728
|
+
CloudmersiveConvertApiClient.configure do |config|
|
729
|
+
# Configure API key authorization: Apikey
|
730
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
731
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
732
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
733
|
+
end
|
734
|
+
|
735
|
+
api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
|
736
|
+
|
737
|
+
input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
|
738
|
+
|
739
|
+
|
740
|
+
begin
|
741
|
+
#Reduce the file size and optimize a PDF
|
742
|
+
result = api_instance.edit_pdf_reduce_file_size(input_file)
|
743
|
+
p result
|
744
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
745
|
+
puts "Exception when calling EditPdfApi->edit_pdf_reduce_file_size: #{e}"
|
746
|
+
end
|
747
|
+
```
|
748
|
+
|
749
|
+
### Parameters
|
750
|
+
|
751
|
+
Name | Type | Description | Notes
|
752
|
+
------------- | ------------- | ------------- | -------------
|
753
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
754
|
+
|
755
|
+
### Return type
|
756
|
+
|
757
|
+
**String**
|
758
|
+
|
759
|
+
### Authorization
|
760
|
+
|
761
|
+
[Apikey](../README.md#Apikey)
|
762
|
+
|
763
|
+
### HTTP request headers
|
764
|
+
|
765
|
+
- **Content-Type**: multipart/form-data
|
766
|
+
- **Accept**: application/octet-stream
|
767
|
+
|
768
|
+
|
769
|
+
|
601
770
|
# **edit_pdf_remove_all_annotations**
|
602
771
|
> String edit_pdf_remove_all_annotations(input_file)
|
603
772
|
|
@@ -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
|
+
|