cloudmersive-convert-api-client 1.6.8 → 1.6.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72bb167a10cb2907262314e5d0e061f5a401caaaacbdc589edcdc07f4124d0df
4
- data.tar.gz: c8c4de7e3bb3b6629af7e907831a91fcb41807ee7ec5f25412a6d88998efcde6
3
+ metadata.gz: 8f6e2dcc39edb5f0e0877b63809bc3b052c8959a54161930c1e29c456d8c34cc
4
+ data.tar.gz: efdda5cd96ff0607b153672262bbda38223590f0e278fb5972def206a1e7d471
5
5
  SHA512:
6
- metadata.gz: 6b0f914969cd652e711858344802356574e90152d7aa11abd3a239761a5faa19d45ede24b57f080a8e4f9004076a0fc4dd784d0be7d7fe41b98c15231f544bb3
7
- data.tar.gz: a61907ce9a30ba856779d0b53539f9765a041b5f2fd25f21a86b02f92d7a25ec67c5f8d3955105ddd240c32b9ebde44df04bb7683bd334ae142a5e6b595fca93
6
+ metadata.gz: 46e2d9e7ebbff002811fe53edd9f017306a92847549cd5ef0079290d91f8e40a38e03e06b1c1285b924ff04fe91c4344c9b37591158488b088039285560fe466
7
+ data.tar.gz: 91141264ea4b8d7697dd7e3e4a63507e61b11d82d896c37df15c82ddafe2c864992bd5967287f7313588a3c258871f0bce8d128eedf8b2378382b6063feecd2a
data/README.md CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.6.8
10
+ - Package version: 1.6.9
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-convert-api-client-1.6.8.gem
26
+ gem install ./cloudmersive-convert-api-client-1.6.9.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-convert-api-client-1.6.8.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-convert-api-client-1.6.9.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-convert-api-client', '~> 1.6.8'
34
+ gem 'cloudmersive-convert-api-client', '~> 1.6.9'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -183,7 +183,7 @@ Class | Method | HTTP request | Description
183
183
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_delete_worksheet**](docs/EditDocumentApi.md#edit_document_xlsx_delete_worksheet) | **POST** /convert/edit/xlsx/delete-worksheet | Delete, remove worksheet from an Excel XLSX spreadsheet document
184
184
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_get_cell_by_identifier**](docs/EditDocumentApi.md#edit_document_xlsx_get_cell_by_identifier) | **POST** /convert/edit/xlsx/get-cell/by-identifier | Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier
185
185
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_get_cell_by_index**](docs/EditDocumentApi.md#edit_document_xlsx_get_cell_by_index) | **POST** /convert/edit/xlsx/get-cell/by-index | Get cell from an Excel XLSX spreadsheet, worksheet by index
186
- *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_get_columns**](docs/EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get rows and cells from a Excel XLSX spreadsheet, worksheet
186
+ *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_get_columns**](docs/EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get columns from a Excel XLSX spreadsheet, worksheet
187
187
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_get_images**](docs/EditDocumentApi.md#edit_document_xlsx_get_images) | **POST** /convert/edit/xlsx/get-images | Get images from a Excel XLSX spreadsheet, worksheet
188
188
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_get_rows_and_cells**](docs/EditDocumentApi.md#edit_document_xlsx_get_rows_and_cells) | **POST** /convert/edit/xlsx/get-rows-and-cells | Get rows and cells from a Excel XLSX spreadsheet, worksheet
189
189
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_get_styles**](docs/EditDocumentApi.md#edit_document_xlsx_get_styles) | **POST** /convert/edit/xlsx/get-styles | Get styles from a Excel XLSX spreadsheet, worksheet
@@ -193,13 +193,13 @@ Class | Method | HTTP request | Description
193
193
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_xlsx_set_cell_by_index**](docs/EditDocumentApi.md#edit_document_xlsx_set_cell_by_index) | **POST** /convert/edit/xlsx/set-cell/by-index | Set, update cell contents in an Excel XLSX spreadsheet, worksheet by index
194
194
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_add_annotations**](docs/EditPdfApi.md#edit_pdf_add_annotations) | **POST** /convert/edit/pdf/annotations/add-item | Add one or more PDF annotations, comments in the PDF document
195
195
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_decrypt**](docs/EditPdfApi.md#edit_pdf_decrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF
196
- *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_delete_pages**](docs/EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove / delete pages from a PDF document
196
+ *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_delete_pages**](docs/EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove, delete pages from a PDF document
197
197
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_encrypt**](docs/EditPdfApi.md#edit_pdf_encrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF
198
198
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_get_annotations**](docs/EditPdfApi.md#edit_pdf_get_annotations) | **POST** /convert/edit/pdf/annotations/list | Get PDF annotations, including comments in the document
199
199
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_get_form_fields**](docs/EditPdfApi.md#edit_pdf_get_form_fields) | **POST** /convert/edit/pdf/form/get-fields | Gets PDF Form fields and values
200
200
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_get_metadata**](docs/EditPdfApi.md#edit_pdf_get_metadata) | **POST** /convert/edit/pdf/get-metadata | Get PDF document metadata
201
201
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_get_pdf_text_by_pages**](docs/EditPdfApi.md#edit_pdf_get_pdf_text_by_pages) | **POST** /convert/edit/pdf/pages/get-text | Get text in a PDF document by page
202
- *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_insert_pages**](docs/EditPdfApi.md#edit_pdf_insert_pages) | **POST** /convert/edit/pdf/pages/insert | Insert / copy pages from one PDF document into another
202
+ *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_insert_pages**](docs/EditPdfApi.md#edit_pdf_insert_pages) | **POST** /convert/edit/pdf/pages/insert | Insert, copy pages from one PDF document into another
203
203
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_rasterize**](docs/EditPdfApi.md#edit_pdf_rasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF
204
204
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_remove_all_annotations**](docs/EditPdfApi.md#edit_pdf_remove_all_annotations) | **POST** /convert/edit/pdf/annotations/remove-all | Remove all PDF annotations, including comments in the document
205
205
  *CloudmersiveConvertApiClient::EditPdfApi* | [**edit_pdf_remove_annotation_item**](docs/EditPdfApi.md#edit_pdf_remove_annotation_item) | **POST** /convert/edit/pdf/annotations/remove-item | Remove a specific PDF annotation, comment in the document
@@ -424,6 +424,7 @@ Class | Method | HTTP request | Description
424
424
  - [CloudmersiveConvertApiClient::UpdateDocxTableCellResponse](docs/UpdateDocxTableCellResponse.md)
425
425
  - [CloudmersiveConvertApiClient::UpdateDocxTableRowRequest](docs/UpdateDocxTableRowRequest.md)
426
426
  - [CloudmersiveConvertApiClient::UpdateDocxTableRowResponse](docs/UpdateDocxTableRowResponse.md)
427
+ - [CloudmersiveConvertApiClient::UrlToPdfRequest](docs/UrlToPdfRequest.md)
427
428
  - [CloudmersiveConvertApiClient::UrlToTextRequest](docs/UrlToTextRequest.md)
428
429
  - [CloudmersiveConvertApiClient::UrlToTextResponse](docs/UrlToTextResponse.md)
429
430
  - [CloudmersiveConvertApiClient::ViewerResponse](docs/ViewerResponse.md)
@@ -305,7 +305,7 @@ end
305
305
 
306
306
  api_instance = CloudmersiveConvertApiClient::ConvertWebApi.new
307
307
 
308
- input = CloudmersiveConvertApiClient::ScreenshotRequest.new # ScreenshotRequest | URL to PDF request parameters
308
+ input = CloudmersiveConvertApiClient::UrlToPdfRequest.new # UrlToPdfRequest | URL to PDF request parameters
309
309
 
310
310
 
311
311
  begin
@@ -321,7 +321,7 @@ end
321
321
 
322
322
  Name | Type | Description | Notes
323
323
  ------------- | ------------- | ------------- | -------------
324
- **input** | [**ScreenshotRequest**](ScreenshotRequest.md)| URL to PDF request parameters |
324
+ **input** | [**UrlToPdfRequest**](UrlToPdfRequest.md)| URL to PDF request parameters |
325
325
 
326
326
  ### Return type
327
327
 
@@ -42,7 +42,7 @@ Method | HTTP request | Description
42
42
  [**edit_document_xlsx_delete_worksheet**](EditDocumentApi.md#edit_document_xlsx_delete_worksheet) | **POST** /convert/edit/xlsx/delete-worksheet | Delete, remove worksheet from an Excel XLSX spreadsheet document
43
43
  [**edit_document_xlsx_get_cell_by_identifier**](EditDocumentApi.md#edit_document_xlsx_get_cell_by_identifier) | **POST** /convert/edit/xlsx/get-cell/by-identifier | Get cell from an Excel XLSX spreadsheet, worksheet by cell identifier
44
44
  [**edit_document_xlsx_get_cell_by_index**](EditDocumentApi.md#edit_document_xlsx_get_cell_by_index) | **POST** /convert/edit/xlsx/get-cell/by-index | Get cell from an Excel XLSX spreadsheet, worksheet by index
45
- [**edit_document_xlsx_get_columns**](EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get rows and cells from a Excel XLSX spreadsheet, worksheet
45
+ [**edit_document_xlsx_get_columns**](EditDocumentApi.md#edit_document_xlsx_get_columns) | **POST** /convert/edit/xlsx/get-columns | Get columns from a Excel XLSX spreadsheet, worksheet
46
46
  [**edit_document_xlsx_get_images**](EditDocumentApi.md#edit_document_xlsx_get_images) | **POST** /convert/edit/xlsx/get-images | Get images from a Excel XLSX spreadsheet, worksheet
47
47
  [**edit_document_xlsx_get_rows_and_cells**](EditDocumentApi.md#edit_document_xlsx_get_rows_and_cells) | **POST** /convert/edit/xlsx/get-rows-and-cells | Get rows and cells from a Excel XLSX spreadsheet, worksheet
48
48
  [**edit_document_xlsx_get_styles**](EditDocumentApi.md#edit_document_xlsx_get_styles) | **POST** /convert/edit/xlsx/get-styles | Get styles from a Excel XLSX spreadsheet, worksheet
@@ -2107,9 +2107,9 @@ Name | Type | Description | Notes
2107
2107
  # **edit_document_xlsx_get_columns**
2108
2108
  > GetXlsxColumnsResponse edit_document_xlsx_get_columns(input)
2109
2109
 
2110
- Get rows and cells from a Excel XLSX spreadsheet, worksheet
2110
+ Get columns from a Excel XLSX spreadsheet, worksheet
2111
2111
 
2112
- Returns the rows and cells defined in the Excel Spreadsheet worksheet
2112
+ Returns the columns defined in the Excel Spreadsheet worksheet
2113
2113
 
2114
2114
  ### Example
2115
2115
  ```ruby
@@ -2129,7 +2129,7 @@ input = CloudmersiveConvertApiClient::GetXlsxColumnsRequest.new # GetXlsxColumns
2129
2129
 
2130
2130
 
2131
2131
  begin
2132
- #Get rows and cells from a Excel XLSX spreadsheet, worksheet
2132
+ #Get columns from a Excel XLSX spreadsheet, worksheet
2133
2133
  result = api_instance.edit_document_xlsx_get_columns(input)
2134
2134
  p result
2135
2135
  rescue CloudmersiveConvertApiClient::ApiError => e
data/docs/EditPdfApi.md CHANGED
@@ -6,13 +6,13 @@ 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
8
  [**edit_pdf_decrypt**](EditPdfApi.md#edit_pdf_decrypt) | **POST** /convert/edit/pdf/decrypt | Decrypt and password-protect a PDF
9
- [**edit_pdf_delete_pages**](EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove / delete pages from a PDF document
9
+ [**edit_pdf_delete_pages**](EditPdfApi.md#edit_pdf_delete_pages) | **POST** /convert/edit/pdf/pages/delete | Remove, delete pages from a PDF document
10
10
  [**edit_pdf_encrypt**](EditPdfApi.md#edit_pdf_encrypt) | **POST** /convert/edit/pdf/encrypt | Encrypt and password-protect a PDF
11
11
  [**edit_pdf_get_annotations**](EditPdfApi.md#edit_pdf_get_annotations) | **POST** /convert/edit/pdf/annotations/list | Get PDF annotations, including comments in the document
12
12
  [**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
13
13
  [**edit_pdf_get_metadata**](EditPdfApi.md#edit_pdf_get_metadata) | **POST** /convert/edit/pdf/get-metadata | Get PDF document metadata
14
14
  [**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
- [**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
15
+ [**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
16
16
  [**edit_pdf_rasterize**](EditPdfApi.md#edit_pdf_rasterize) | **POST** /convert/edit/pdf/rasterize | Rasterize a PDF to an image-based PDF
17
17
  [**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
18
  [**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
@@ -138,7 +138,7 @@ Name | Type | Description | Notes
138
138
  # **edit_pdf_delete_pages**
139
139
  > String edit_pdf_delete_pages(input_file, page_start, page_end)
140
140
 
141
- Remove / delete pages from a PDF document
141
+ Remove, delete pages from a PDF document
142
142
 
143
143
  Remove one or more pages from a PDF document
144
144
 
@@ -164,7 +164,7 @@ page_end = 56 # Integer | Page number (1 based) to stop deleting pages from (inc
164
164
 
165
165
 
166
166
  begin
167
- #Remove / delete pages from a PDF document
167
+ #Remove, delete pages from a PDF document
168
168
  result = api_instance.edit_pdf_delete_pages(input_file, page_start, page_end)
169
169
  p result
170
170
  rescue CloudmersiveConvertApiClient::ApiError => e
@@ -476,7 +476,7 @@ Name | Type | Description | Notes
476
476
  # **edit_pdf_insert_pages**
477
477
  > String edit_pdf_insert_pages(source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation)
478
478
 
479
- Insert / copy pages from one PDF document into another
479
+ Insert, copy pages from one PDF document into another
480
480
 
481
481
  Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document).
482
482
 
@@ -506,7 +506,7 @@ page_insert_before_desitnation = 56 # Integer | Page number (1 based) to insert
506
506
 
507
507
 
508
508
  begin
509
- #Insert / copy pages from one PDF document into another
509
+ #Insert, copy pages from one PDF document into another
510
510
  result = api_instance.edit_pdf_insert_pages(source_file, destination_file, page_start_source, page_end_source, page_insert_before_desitnation)
511
511
  p result
512
512
  rescue CloudmersiveConvertApiClient::ApiError => e
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **url** | **String** | URL address of the website to screenshot. HTTP and HTTPS are both supported, as are custom ports. | [optional]
7
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. Provide a value of 0 for the default of 5000 milliseconds (5 seconds) | [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]
8
+ **screenshot_width** | **Integer** | Optional: Width of the screenshot in pixels; supply 0 to default to 1280 x 1024 | [optional]
9
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
10
 
11
11
 
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::UrlToPdfRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url** | **String** | URL address of the website to screenshot. HTTP and HTTPS are both supported, as are custom ports. | [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. Provide a value of 0 for the default of 5000 milliseconds (5 seconds) | [optional]
8
+ **include_background_graphics** | **BOOLEAN** | Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true. | [optional]
9
+
10
+
@@ -186,6 +186,7 @@ require 'cloudmersive-convert-api-client/models/update_docx_table_cell_request'
186
186
  require 'cloudmersive-convert-api-client/models/update_docx_table_cell_response'
187
187
  require 'cloudmersive-convert-api-client/models/update_docx_table_row_request'
188
188
  require 'cloudmersive-convert-api-client/models/update_docx_table_row_response'
189
+ require 'cloudmersive-convert-api-client/models/url_to_pdf_request'
189
190
  require 'cloudmersive-convert-api-client/models/url_to_text_request'
190
191
  require 'cloudmersive-convert-api-client/models/url_to_text_response'
191
192
  require 'cloudmersive-convert-api-client/models/viewer_response'
@@ -2111,8 +2111,8 @@ module CloudmersiveConvertApiClient
2111
2111
  return data, status_code, headers
2112
2112
  end
2113
2113
 
2114
- # Get rows and cells from a Excel XLSX spreadsheet, worksheet
2115
- # Returns the rows and cells defined in the Excel Spreadsheet worksheet
2114
+ # Get columns from a Excel XLSX spreadsheet, worksheet
2115
+ # Returns the columns defined in the Excel Spreadsheet worksheet
2116
2116
  # @param input Document input request
2117
2117
  # @param [Hash] opts the optional parameters
2118
2118
  # @return [GetXlsxColumnsResponse]
@@ -2121,8 +2121,8 @@ module CloudmersiveConvertApiClient
2121
2121
  return data
2122
2122
  end
2123
2123
 
2124
- # Get rows and cells from a Excel XLSX spreadsheet, worksheet
2125
- # Returns the rows and cells defined in the Excel Spreadsheet worksheet
2124
+ # Get columns from a Excel XLSX spreadsheet, worksheet
2125
+ # Returns the columns defined in the Excel Spreadsheet worksheet
2126
2126
  # @param input Document input request
2127
2127
  # @param [Hash] opts the optional parameters
2128
2128
  # @return [Array<(GetXlsxColumnsResponse, Fixnum, Hash)>] GetXlsxColumnsResponse data, response status code and response headers
@@ -138,7 +138,7 @@ module CloudmersiveConvertApiClient
138
138
  return data, status_code, headers
139
139
  end
140
140
 
141
- # Remove / delete pages from a PDF document
141
+ # Remove, delete pages from a PDF document
142
142
  # Remove one or more pages from a PDF document
143
143
  # @param input_file Input file to perform the operation on.
144
144
  # @param page_start Page number (1 based) to start deleting pages from (inclusive).
@@ -150,7 +150,7 @@ module CloudmersiveConvertApiClient
150
150
  return data
151
151
  end
152
152
 
153
- # Remove / delete pages from a PDF document
153
+ # Remove, delete pages from a PDF document
154
154
  # Remove one or more pages from a PDF document
155
155
  # @param input_file Input file to perform the operation on.
156
156
  # @param page_start Page number (1 based) to start deleting pages from (inclusive).
@@ -497,7 +497,7 @@ module CloudmersiveConvertApiClient
497
497
  return data, status_code, headers
498
498
  end
499
499
 
500
- # Insert / copy pages from one PDF document into another
500
+ # Insert, copy pages from one PDF document into another
501
501
  # Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document).
502
502
  # @param source_file Source PDF file to copy pages from.
503
503
  # @param destination_file Destination PDF file to copy pages into.
@@ -511,7 +511,7 @@ module CloudmersiveConvertApiClient
511
511
  return data
512
512
  end
513
513
 
514
- # Insert / copy pages from one PDF document into another
514
+ # Insert, copy pages from one PDF document into another
515
515
  # Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document).
516
516
  # @param source_file Source PDF file to copy pages from.
517
517
  # @param destination_file Destination PDF file to copy pages into.
@@ -21,7 +21,7 @@ module CloudmersiveConvertApiClient
21
21
  # 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. Provide a value of 0 for the default of 5000 milliseconds (5 seconds)
22
22
  attr_accessor :extra_loading_wait
23
23
 
24
- # 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
24
+ # Optional: Width of the screenshot in pixels; supply 0 to default to 1280 x 1024
25
25
  attr_accessor :screenshot_width
26
26
 
27
27
  # 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
@@ -0,0 +1,209 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveConvertApiClient
16
+ # Request to convert a URL to a PDF file
17
+ class UrlToPdfRequest
18
+ # URL address of the website to screenshot. HTTP and HTTPS are both supported, as are custom ports.
19
+ attr_accessor :url
20
+
21
+ # 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. Provide a value of 0 for the default of 5000 milliseconds (5 seconds)
22
+ attr_accessor :extra_loading_wait
23
+
24
+ # Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true.
25
+ attr_accessor :include_background_graphics
26
+
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'url' => :'Url',
32
+ :'extra_loading_wait' => :'ExtraLoadingWait',
33
+ :'include_background_graphics' => :'IncludeBackgroundGraphics'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'url' => :'String',
41
+ :'extra_loading_wait' => :'Integer',
42
+ :'include_background_graphics' => :'BOOLEAN'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
+
54
+ if attributes.has_key?(:'Url')
55
+ self.url = attributes[:'Url']
56
+ end
57
+
58
+ if attributes.has_key?(:'ExtraLoadingWait')
59
+ self.extra_loading_wait = attributes[:'ExtraLoadingWait']
60
+ end
61
+
62
+ if attributes.has_key?(:'IncludeBackgroundGraphics')
63
+ self.include_background_graphics = attributes[:'IncludeBackgroundGraphics']
64
+ end
65
+
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ return invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ return true
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ url == o.url &&
87
+ extra_loading_wait == o.extra_loading_wait &&
88
+ include_background_graphics == o.include_background_graphics
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [url, extra_loading_wait, include_background_graphics].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.swagger_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ end
119
+
120
+ self
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def _deserialize(type, value)
128
+ case type.to_sym
129
+ when :DateTime
130
+ DateTime.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :BOOLEAN
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ temp_model = CloudmersiveConvertApiClient.const_get(type).new
161
+ temp_model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ next if value.nil?
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map{ |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+
207
+ end
208
+
209
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module CloudmersiveConvertApiClient
14
- VERSION = "1.6.8"
14
+ VERSION = "1.6.9"
15
15
  end
@@ -489,8 +489,8 @@ describe 'EditDocumentApi' do
489
489
  end
490
490
 
491
491
  # unit tests for edit_document_xlsx_get_columns
492
- # Get rows and cells from a Excel XLSX spreadsheet, worksheet
493
- # Returns the rows and cells defined in the Excel Spreadsheet worksheet
492
+ # Get columns from a Excel XLSX spreadsheet, worksheet
493
+ # Returns the columns defined in the Excel Spreadsheet worksheet
494
494
  # @param input Document input request
495
495
  # @param [Hash] opts the optional parameters
496
496
  # @return [GetXlsxColumnsResponse]
@@ -58,7 +58,7 @@ describe 'EditPdfApi' do
58
58
  end
59
59
 
60
60
  # unit tests for edit_pdf_delete_pages
61
- # Remove / delete pages from a PDF document
61
+ # Remove, delete pages from a PDF document
62
62
  # Remove one or more pages from a PDF document
63
63
  # @param input_file Input file to perform the operation on.
64
64
  # @param page_start Page number (1 based) to start deleting pages from (inclusive).
@@ -135,7 +135,7 @@ describe 'EditPdfApi' do
135
135
  end
136
136
 
137
137
  # unit tests for edit_pdf_insert_pages
138
- # Insert / copy pages from one PDF document into another
138
+ # Insert, copy pages from one PDF document into another
139
139
  # Copy one or more pages from one PDF document (source document) and insert them into a second PDF document (destination document).
140
140
  # @param source_file Source PDF file to copy pages from.
141
141
  # @param destination_file Destination PDF file to copy pages into.
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::UrlToPdfRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'UrlToPdfRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::UrlToPdfRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UrlToPdfRequest' do
31
+ it 'should create an instance of UrlToPdfRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::UrlToPdfRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "url"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "extra_loading_wait"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "include_background_graphics"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
54
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-convert-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.8
4
+ version: 1.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-28 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -382,6 +382,7 @@ files:
382
382
  - "./docs/UpdateDocxTableCellResponse.md"
383
383
  - "./docs/UpdateDocxTableRowRequest.md"
384
384
  - "./docs/UpdateDocxTableRowResponse.md"
385
+ - "./docs/UrlToPdfRequest.md"
385
386
  - "./docs/UrlToTextRequest.md"
386
387
  - "./docs/UrlToTextResponse.md"
387
388
  - "./docs/ValidateDocumentApi.md"
@@ -594,6 +595,7 @@ files:
594
595
  - "./lib/cloudmersive-convert-api-client/models/update_docx_table_cell_response.rb"
595
596
  - "./lib/cloudmersive-convert-api-client/models/update_docx_table_row_request.rb"
596
597
  - "./lib/cloudmersive-convert-api-client/models/update_docx_table_row_response.rb"
598
+ - "./lib/cloudmersive-convert-api-client/models/url_to_pdf_request.rb"
597
599
  - "./lib/cloudmersive-convert-api-client/models/url_to_text_request.rb"
598
600
  - "./lib/cloudmersive-convert-api-client/models/url_to_text_response.rb"
599
601
  - "./lib/cloudmersive-convert-api-client/models/viewer_response.rb"
@@ -801,6 +803,7 @@ files:
801
803
  - "./spec/models/update_docx_table_cell_response_spec.rb"
802
804
  - "./spec/models/update_docx_table_row_request_spec.rb"
803
805
  - "./spec/models/update_docx_table_row_response_spec.rb"
806
+ - "./spec/models/url_to_pdf_request_spec.rb"
804
807
  - "./spec/models/url_to_text_request_spec.rb"
805
808
  - "./spec/models/url_to_text_response_spec.rb"
806
809
  - "./spec/models/viewer_response_spec.rb"