cloudmersive-convert-api-client 1.6.5 → 1.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -4
  3. data/docs/DocxComment.md +16 -0
  4. data/docs/DocxInsertCommentOnParagraphRequest.md +11 -0
  5. data/docs/DocxTopLevelComment.md +14 -0
  6. data/docs/EditDocumentApi.md +165 -0
  7. data/docs/GetDocxCommentsHierarchicalResponse.md +10 -0
  8. data/docs/GetDocxCommentsResponse.md +10 -0
  9. data/docs/GetDocxGetCommentsHierarchicalRequest.md +9 -0
  10. data/docs/GetDocxGetCommentsRequest.md +9 -0
  11. data/docs/GetDocxPagesResponse.md +3 -3
  12. data/docs/InsertDocxCommentOnParagraphResponse.md +9 -0
  13. data/lib/cloudmersive-convert-api-client.rb +8 -0
  14. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +165 -0
  15. data/lib/cloudmersive-convert-api-client/models/docx_comment.rb +269 -0
  16. data/lib/cloudmersive-convert-api-client/models/docx_insert_comment_on_paragraph_request.rb +235 -0
  17. data/lib/cloudmersive-convert-api-client/models/docx_page.rb +1 -1
  18. data/lib/cloudmersive-convert-api-client/models/docx_top_level_comment.rb +251 -0
  19. data/lib/cloudmersive-convert-api-client/models/get_docx_comments_hierarchical_response.rb +211 -0
  20. data/lib/cloudmersive-convert-api-client/models/get_docx_comments_response.rb +211 -0
  21. data/lib/cloudmersive-convert-api-client/models/get_docx_get_comments_hierarchical_request.rb +215 -0
  22. data/lib/cloudmersive-convert-api-client/models/get_docx_get_comments_request.rb +215 -0
  23. data/lib/cloudmersive-convert-api-client/models/get_docx_pages_response.rb +4 -1
  24. data/lib/cloudmersive-convert-api-client/models/insert_docx_comment_on_paragraph_response.rb +199 -0
  25. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  26. data/spec/api/edit_document_api_spec.rb +36 -0
  27. data/spec/models/docx_comment_spec.rb +90 -0
  28. data/spec/models/docx_insert_comment_on_paragraph_request_spec.rb +60 -0
  29. data/spec/models/docx_top_level_comment_spec.rb +78 -0
  30. data/spec/models/get_docx_comments_hierarchical_response_spec.rb +54 -0
  31. data/spec/models/get_docx_comments_response_spec.rb +54 -0
  32. data/spec/models/get_docx_get_comments_hierarchical_request_spec.rb +48 -0
  33. data/spec/models/get_docx_get_comments_request_spec.rb +48 -0
  34. data/spec/models/insert_docx_comment_on_paragraph_response_spec.rb +48 -0
  35. metadata +26 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31c3b9486b0fb3e997dfe4154dc594e663cfa34b2d0178aad7b0e5006e1f1b4c
4
- data.tar.gz: ed42cfd522a8022cd2a5c70fb5fa7511f0b14d160cf9f831d8d7434e0a7b31fb
3
+ metadata.gz: facc7ac024b01cf5b5296585db5a2dcd45056528f394746523542bbc854c826c
4
+ data.tar.gz: 664dec7f3e0c323f51edbb050e9bce8daf9a29daeec380fe050c15228d9f2fd2
5
5
  SHA512:
6
- metadata.gz: 31eb5abdbb51f33f14bf0f14cc88926fbfd5f3263ef24b9801cb06a12fb22019fbdab2e3322deec92efc6a17739dc82dfe1cb5441ec9eec37e807b0697cb54ea
7
- data.tar.gz: 4a4dc57cd8bb31311232fd3e98d5fe9c02383d1b19d0a7ab27b6b1dc685f4a65afffaa13b1f254fbdef79f6bfbb1170004d8865f2b974cfa6925e4334b7ce761
6
+ metadata.gz: 2ebd02c4b2d689a280b62876e5d0f8558ab753c5cbdac7560cc2d068883ce0b6293cf2953d310917475d343e1eace3bb6651e56e5edc141ec1405dca97acaf46
7
+ data.tar.gz: 49f463075940c4271df5061f2bb35f0f6bf6ea26171fa02433a0b6001ad80ebc456ea4490d6a5ec74e40e2d45c4d31150898186d6ff254db96cf63c6a2a36e83
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.5
10
+ - Package version: 1.6.6
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.5.gem
26
+ gem install ./cloudmersive-convert-api-client-1.6.6.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-convert-api-client-1.6.5.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-convert-api-client-1.6.6.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.5'
34
+ gem 'cloudmersive-convert-api-client', '~> 1.6.6'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -151,6 +151,8 @@ Class | Method | HTTP request | Description
151
151
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_delete_pages**](docs/EditDocumentApi.md#edit_document_docx_delete_pages) | **POST** /convert/edit/docx/delete-pages | Delete, remove pages from a Word DOCX document
152
152
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_delete_table_row**](docs/EditDocumentApi.md#edit_document_docx_delete_table_row) | **POST** /convert/edit/docx/delete-table-row | Deletes a table row in an existing table in a Word DOCX document
153
153
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_delete_table_row_range**](docs/EditDocumentApi.md#edit_document_docx_delete_table_row_range) | **POST** /convert/edit/docx/delete-table-row/range | Deletes a range of multiple table rows in an existing table in a Word DOCX document
154
+ *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_get_comments**](docs/EditDocumentApi.md#edit_document_docx_get_comments) | **POST** /convert/edit/docx/get-comments/flat-list | Get comments from a Word DOCX document as a flat list
155
+ *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_get_comments_hierarchical**](docs/EditDocumentApi.md#edit_document_docx_get_comments_hierarchical) | **POST** /convert/edit/docx/get-comments/hierarchical | Get comments from a Word DOCX document hierarchically
154
156
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_get_headers_and_footers**](docs/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
155
157
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_get_images**](docs/EditDocumentApi.md#edit_document_docx_get_images) | **POST** /convert/edit/docx/get-images | Get images from a Word DOCX document
156
158
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_get_sections**](docs/EditDocumentApi.md#edit_document_docx_get_sections) | **POST** /convert/edit/docx/get-sections | Get sections from a Word DOCX document
@@ -158,6 +160,7 @@ Class | Method | HTTP request | Description
158
160
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_get_table_by_index**](docs/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
159
161
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_get_table_row**](docs/EditDocumentApi.md#edit_document_docx_get_table_row) | **POST** /convert/edit/docx/get-table-row | Gets the contents of an existing table row in an existing table in a Word DOCX document
160
162
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_get_tables**](docs/EditDocumentApi.md#edit_document_docx_get_tables) | **POST** /convert/edit/docx/get-tables | Get all tables in Word DOCX document
163
+ *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_insert_comment_on_paragraph**](docs/EditDocumentApi.md#edit_document_docx_insert_comment_on_paragraph) | **POST** /convert/edit/docx/insert-comment/on/paragraph | Insert a new comment into a Word DOCX document attached to a paragraph
161
164
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_insert_image**](docs/EditDocumentApi.md#edit_document_docx_insert_image) | **POST** /convert/edit/docx/insert-image | Insert image into a Word DOCX document
162
165
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_insert_paragraph**](docs/EditDocumentApi.md#edit_document_docx_insert_paragraph) | **POST** /convert/edit/docx/insert-paragraph | Insert a new paragraph into a Word DOCX document
163
166
  *CloudmersiveConvertApiClient::EditDocumentApi* | [**edit_document_docx_insert_table**](docs/EditDocumentApi.md#edit_document_docx_insert_table) | **POST** /convert/edit/docx/insert-table | Insert a new table into a Word DOCX document
@@ -255,9 +258,11 @@ Class | Method | HTTP request | Description
255
258
  - [CloudmersiveConvertApiClient::DocumentValidationResult](docs/DocumentValidationResult.md)
256
259
  - [CloudmersiveConvertApiClient::DocxBody](docs/DocxBody.md)
257
260
  - [CloudmersiveConvertApiClient::DocxCellStyle](docs/DocxCellStyle.md)
261
+ - [CloudmersiveConvertApiClient::DocxComment](docs/DocxComment.md)
258
262
  - [CloudmersiveConvertApiClient::DocxFooter](docs/DocxFooter.md)
259
263
  - [CloudmersiveConvertApiClient::DocxHeader](docs/DocxHeader.md)
260
264
  - [CloudmersiveConvertApiClient::DocxImage](docs/DocxImage.md)
265
+ - [CloudmersiveConvertApiClient::DocxInsertCommentOnParagraphRequest](docs/DocxInsertCommentOnParagraphRequest.md)
261
266
  - [CloudmersiveConvertApiClient::DocxInsertImageRequest](docs/DocxInsertImageRequest.md)
262
267
  - [CloudmersiveConvertApiClient::DocxInsertImageResponse](docs/DocxInsertImageResponse.md)
263
268
  - [CloudmersiveConvertApiClient::DocxPage](docs/DocxPage.md)
@@ -278,10 +283,15 @@ Class | Method | HTTP request | Description
278
283
  - [CloudmersiveConvertApiClient::DocxTemplateApplicationRequest](docs/DocxTemplateApplicationRequest.md)
279
284
  - [CloudmersiveConvertApiClient::DocxTemplateOperation](docs/DocxTemplateOperation.md)
280
285
  - [CloudmersiveConvertApiClient::DocxText](docs/DocxText.md)
286
+ - [CloudmersiveConvertApiClient::DocxTopLevelComment](docs/DocxTopLevelComment.md)
281
287
  - [CloudmersiveConvertApiClient::ExifValue](docs/ExifValue.md)
282
288
  - [CloudmersiveConvertApiClient::FinishEditingRequest](docs/FinishEditingRequest.md)
283
289
  - [CloudmersiveConvertApiClient::GetDocxBodyRequest](docs/GetDocxBodyRequest.md)
284
290
  - [CloudmersiveConvertApiClient::GetDocxBodyResponse](docs/GetDocxBodyResponse.md)
291
+ - [CloudmersiveConvertApiClient::GetDocxCommentsHierarchicalResponse](docs/GetDocxCommentsHierarchicalResponse.md)
292
+ - [CloudmersiveConvertApiClient::GetDocxCommentsResponse](docs/GetDocxCommentsResponse.md)
293
+ - [CloudmersiveConvertApiClient::GetDocxGetCommentsHierarchicalRequest](docs/GetDocxGetCommentsHierarchicalRequest.md)
294
+ - [CloudmersiveConvertApiClient::GetDocxGetCommentsRequest](docs/GetDocxGetCommentsRequest.md)
285
295
  - [CloudmersiveConvertApiClient::GetDocxHeadersAndFootersRequest](docs/GetDocxHeadersAndFootersRequest.md)
286
296
  - [CloudmersiveConvertApiClient::GetDocxHeadersAndFootersResponse](docs/GetDocxHeadersAndFootersResponse.md)
287
297
  - [CloudmersiveConvertApiClient::GetDocxImagesRequest](docs/GetDocxImagesRequest.md)
@@ -323,6 +333,7 @@ Class | Method | HTTP request | Description
323
333
  - [CloudmersiveConvertApiClient::HtmlToPngRequest](docs/HtmlToPngRequest.md)
324
334
  - [CloudmersiveConvertApiClient::HtmlToTextRequest](docs/HtmlToTextRequest.md)
325
335
  - [CloudmersiveConvertApiClient::HtmlToTextResponse](docs/HtmlToTextResponse.md)
336
+ - [CloudmersiveConvertApiClient::InsertDocxCommentOnParagraphResponse](docs/InsertDocxCommentOnParagraphResponse.md)
326
337
  - [CloudmersiveConvertApiClient::InsertDocxInsertParagraphRequest](docs/InsertDocxInsertParagraphRequest.md)
327
338
  - [CloudmersiveConvertApiClient::InsertDocxInsertParagraphResponse](docs/InsertDocxInsertParagraphResponse.md)
328
339
  - [CloudmersiveConvertApiClient::InsertDocxTableRowRequest](docs/InsertDocxTableRowRequest.md)
@@ -0,0 +1,16 @@
1
+ # CloudmersiveConvertApiClient::DocxComment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **path** | **String** | Path to the comment in the document | [optional]
7
+ **author** | **String** | Author name of the comment | [optional]
8
+ **author_initials** | **String** | Initials of the author of the comment | [optional]
9
+ **comment_text** | **String** | Text content of the comment | [optional]
10
+ **comment_date** | **DateTime** | Date timestamp of the comment | [optional]
11
+ **is_top_level** | **BOOLEAN** | True if the comment is at the top level, false if this comment is a child reply of another comment | [optional]
12
+ **is_reply** | **BOOLEAN** | True if this comment is a reply to another comment, false otherwise | [optional]
13
+ **parent_comment_path** | **String** | Path to the parent of this comment, if this comment is a reply, otherwise this value will be null | [optional]
14
+ **done** | **BOOLEAN** | True if this comment is marked as Done in Word, otherwise it is false | [optional]
15
+
16
+
@@ -0,0 +1,11 @@
1
+ # CloudmersiveConvertApiClient::DocxInsertCommentOnParagraphRequest
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
+ **paragraph_path** | **String** | Path to the paragraph to attach the comment to. You can get the Path by retrieving all of the Paragraphs in document by calling Get Body and taking the Path property of the desired paragraph to add the comment to. | [optional]
9
+ **comment_to_insert** | [**DocxComment**](DocxComment.md) | Comment to insert | [optional]
10
+
11
+
@@ -0,0 +1,14 @@
1
+ # CloudmersiveConvertApiClient::DocxTopLevelComment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **path** | **String** | Path to the comment in the document | [optional]
7
+ **author** | **String** | Author name of the comment | [optional]
8
+ **author_initials** | **String** | Initials of the author of the comment | [optional]
9
+ **comment_text** | **String** | Text content of the comment | [optional]
10
+ **comment_date** | **DateTime** | Date timestamp of the comment | [optional]
11
+ **reply_child_comments** | [**Array<DocxComment>**](DocxComment.md) | Child comments, that are replies to this one | [optional]
12
+ **done** | **BOOLEAN** | True if this comment is marked as Done in Word, otherwise it is false | [optional]
13
+
14
+
@@ -10,6 +10,8 @@ Method | HTTP request | Description
10
10
  [**edit_document_docx_delete_pages**](EditDocumentApi.md#edit_document_docx_delete_pages) | **POST** /convert/edit/docx/delete-pages | Delete, remove pages from a Word DOCX document
11
11
  [**edit_document_docx_delete_table_row**](EditDocumentApi.md#edit_document_docx_delete_table_row) | **POST** /convert/edit/docx/delete-table-row | Deletes a table row in an existing table in a Word DOCX document
12
12
  [**edit_document_docx_delete_table_row_range**](EditDocumentApi.md#edit_document_docx_delete_table_row_range) | **POST** /convert/edit/docx/delete-table-row/range | Deletes a range of multiple table rows in an existing table in a Word DOCX document
13
+ [**edit_document_docx_get_comments**](EditDocumentApi.md#edit_document_docx_get_comments) | **POST** /convert/edit/docx/get-comments/flat-list | Get comments from a Word DOCX document as a flat list
14
+ [**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
13
15
  [**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
14
16
  [**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
15
17
  [**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
@@ -17,6 +19,7 @@ Method | HTTP request | Description
17
19
  [**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
18
20
  [**edit_document_docx_get_table_row**](EditDocumentApi.md#edit_document_docx_get_table_row) | **POST** /convert/edit/docx/get-table-row | Gets the contents of an existing table row in an existing table in a Word DOCX document
19
21
  [**edit_document_docx_get_tables**](EditDocumentApi.md#edit_document_docx_get_tables) | **POST** /convert/edit/docx/get-tables | Get all tables in Word DOCX document
22
+ [**edit_document_docx_insert_comment_on_paragraph**](EditDocumentApi.md#edit_document_docx_insert_comment_on_paragraph) | **POST** /convert/edit/docx/insert-comment/on/paragraph | Insert a new comment into a Word DOCX document attached to a paragraph
20
23
  [**edit_document_docx_insert_image**](EditDocumentApi.md#edit_document_docx_insert_image) | **POST** /convert/edit/docx/insert-image | Insert image into a Word DOCX document
21
24
  [**edit_document_docx_insert_paragraph**](EditDocumentApi.md#edit_document_docx_insert_paragraph) | **POST** /convert/edit/docx/insert-paragraph | Insert a new paragraph into a Word DOCX document
22
25
  [**edit_document_docx_insert_table**](EditDocumentApi.md#edit_document_docx_insert_table) | **POST** /convert/edit/docx/insert-table | Insert a new table into a Word DOCX document
@@ -373,6 +376,114 @@ Name | Type | Description | Notes
373
376
 
374
377
 
375
378
 
379
+ # **edit_document_docx_get_comments**
380
+ > GetDocxCommentsResponse edit_document_docx_get_comments(req_config)
381
+
382
+ Get comments from a Word DOCX document as a flat list
383
+
384
+ Returns the comments and review annotations stored in the Word Document (DOCX) format file as a flattened list (not as a hierarchy of comments and replies).
385
+
386
+ ### Example
387
+ ```ruby
388
+ # load the gem
389
+ require 'cloudmersive-convert-api-client'
390
+ # setup authorization
391
+ CloudmersiveConvertApiClient.configure do |config|
392
+ # Configure API key authorization: Apikey
393
+ config.api_key['Apikey'] = 'YOUR API KEY'
394
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
395
+ #config.api_key_prefix['Apikey'] = 'Bearer'
396
+ end
397
+
398
+ api_instance = CloudmersiveConvertApiClient::EditDocumentApi.new
399
+
400
+ req_config = CloudmersiveConvertApiClient::GetDocxGetCommentsRequest.new # GetDocxGetCommentsRequest | Document input request
401
+
402
+
403
+ begin
404
+ #Get comments from a Word DOCX document as a flat list
405
+ result = api_instance.edit_document_docx_get_comments(req_config)
406
+ p result
407
+ rescue CloudmersiveConvertApiClient::ApiError => e
408
+ puts "Exception when calling EditDocumentApi->edit_document_docx_get_comments: #{e}"
409
+ end
410
+ ```
411
+
412
+ ### Parameters
413
+
414
+ Name | Type | Description | Notes
415
+ ------------- | ------------- | ------------- | -------------
416
+ **req_config** | [**GetDocxGetCommentsRequest**](GetDocxGetCommentsRequest.md)| Document input request |
417
+
418
+ ### Return type
419
+
420
+ [**GetDocxCommentsResponse**](GetDocxCommentsResponse.md)
421
+
422
+ ### Authorization
423
+
424
+ [Apikey](../README.md#Apikey)
425
+
426
+ ### HTTP request headers
427
+
428
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
429
+ - **Accept**: application/json, text/json, application/xml, text/xml
430
+
431
+
432
+
433
+ # **edit_document_docx_get_comments_hierarchical**
434
+ > GetDocxCommentsHierarchicalResponse edit_document_docx_get_comments_hierarchical(req_config)
435
+
436
+ Get comments from a Word DOCX document hierarchically
437
+
438
+ Returns the comments and review annotations stored in the Word Document (DOCX) format file hierarchically, where reply comments are nested as children under top-level comments in the results returned.
439
+
440
+ ### Example
441
+ ```ruby
442
+ # load the gem
443
+ require 'cloudmersive-convert-api-client'
444
+ # setup authorization
445
+ CloudmersiveConvertApiClient.configure do |config|
446
+ # Configure API key authorization: Apikey
447
+ config.api_key['Apikey'] = 'YOUR API KEY'
448
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
449
+ #config.api_key_prefix['Apikey'] = 'Bearer'
450
+ end
451
+
452
+ api_instance = CloudmersiveConvertApiClient::EditDocumentApi.new
453
+
454
+ req_config = CloudmersiveConvertApiClient::GetDocxGetCommentsHierarchicalRequest.new # GetDocxGetCommentsHierarchicalRequest | Document input request
455
+
456
+
457
+ begin
458
+ #Get comments from a Word DOCX document hierarchically
459
+ result = api_instance.edit_document_docx_get_comments_hierarchical(req_config)
460
+ p result
461
+ rescue CloudmersiveConvertApiClient::ApiError => e
462
+ puts "Exception when calling EditDocumentApi->edit_document_docx_get_comments_hierarchical: #{e}"
463
+ end
464
+ ```
465
+
466
+ ### Parameters
467
+
468
+ Name | Type | Description | Notes
469
+ ------------- | ------------- | ------------- | -------------
470
+ **req_config** | [**GetDocxGetCommentsHierarchicalRequest**](GetDocxGetCommentsHierarchicalRequest.md)| Document input request |
471
+
472
+ ### Return type
473
+
474
+ [**GetDocxCommentsHierarchicalResponse**](GetDocxCommentsHierarchicalResponse.md)
475
+
476
+ ### Authorization
477
+
478
+ [Apikey](../README.md#Apikey)
479
+
480
+ ### HTTP request headers
481
+
482
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
483
+ - **Accept**: application/json, text/json, application/xml, text/xml
484
+
485
+
486
+
376
487
  # **edit_document_docx_get_headers_and_footers**
377
488
  > GetDocxHeadersAndFootersResponse edit_document_docx_get_headers_and_footers(req_config)
378
489
 
@@ -751,6 +862,60 @@ Name | Type | Description | Notes
751
862
 
752
863
 
753
864
 
865
+ # **edit_document_docx_insert_comment_on_paragraph**
866
+ > InsertDocxCommentOnParagraphResponse edit_document_docx_insert_comment_on_paragraph(req_config)
867
+
868
+ Insert a new comment into a Word DOCX document attached to a paragraph
869
+
870
+ Adds a new comment into a Word DOCX document attached to a paragraph and returns the result. Call Finish Editing on the output URL to complete the operation.
871
+
872
+ ### Example
873
+ ```ruby
874
+ # load the gem
875
+ require 'cloudmersive-convert-api-client'
876
+ # setup authorization
877
+ CloudmersiveConvertApiClient.configure do |config|
878
+ # Configure API key authorization: Apikey
879
+ config.api_key['Apikey'] = 'YOUR API KEY'
880
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
881
+ #config.api_key_prefix['Apikey'] = 'Bearer'
882
+ end
883
+
884
+ api_instance = CloudmersiveConvertApiClient::EditDocumentApi.new
885
+
886
+ req_config = CloudmersiveConvertApiClient::DocxInsertCommentOnParagraphRequest.new # DocxInsertCommentOnParagraphRequest | Document input request
887
+
888
+
889
+ begin
890
+ #Insert a new comment into a Word DOCX document attached to a paragraph
891
+ result = api_instance.edit_document_docx_insert_comment_on_paragraph(req_config)
892
+ p result
893
+ rescue CloudmersiveConvertApiClient::ApiError => e
894
+ puts "Exception when calling EditDocumentApi->edit_document_docx_insert_comment_on_paragraph: #{e}"
895
+ end
896
+ ```
897
+
898
+ ### Parameters
899
+
900
+ Name | Type | Description | Notes
901
+ ------------- | ------------- | ------------- | -------------
902
+ **req_config** | [**DocxInsertCommentOnParagraphRequest**](DocxInsertCommentOnParagraphRequest.md)| Document input request |
903
+
904
+ ### Return type
905
+
906
+ [**InsertDocxCommentOnParagraphResponse**](InsertDocxCommentOnParagraphResponse.md)
907
+
908
+ ### Authorization
909
+
910
+ [Apikey](../README.md#Apikey)
911
+
912
+ ### HTTP request headers
913
+
914
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
915
+ - **Accept**: application/json, text/json, application/xml, text/xml
916
+
917
+
918
+
754
919
  # **edit_document_docx_insert_image**
755
920
  > DocxInsertImageResponse edit_document_docx_insert_image(req_config)
756
921
 
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::GetDocxCommentsHierarchicalResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **comments** | [**Array<DocxTopLevelComment>**](DocxTopLevelComment.md) | Comments in the document | [optional]
8
+ **top_level_comment_count** | **Integer** | The number of comments in the document | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::GetDocxCommentsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **comments** | [**Array<DocxComment>**](DocxComment.md) | Comments in the document | [optional]
8
+ **comment_count** | **Integer** | The number of comments in the document | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::GetDocxGetCommentsHierarchicalRequest
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
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::GetDocxGetCommentsRequest
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
+
9
+
@@ -3,8 +3,8 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **successful** | **BOOLEAN** | | [optional]
7
- **pages** | [**Array<DocxPage>**](DocxPage.md) | | [optional]
8
- **page_count** | **Integer** | | [optional]
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **pages** | [**Array<DocxPage>**](DocxPage.md) | Pages in the document | [optional]
8
+ **page_count** | **Integer** | Count of pages | [optional]
9
9
 
10
10
 
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::InsertDocxCommentOnParagraphResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **edited_document_url** | **String** | URL to the edited DOCX file; file is stored in an in-memory cache and will be deleted. Call Finish-Editing to get the result document contents. | [optional]
8
+
9
+
@@ -39,9 +39,11 @@ require 'cloudmersive-convert-api-client/models/document_validation_error'
39
39
  require 'cloudmersive-convert-api-client/models/document_validation_result'
40
40
  require 'cloudmersive-convert-api-client/models/docx_body'
41
41
  require 'cloudmersive-convert-api-client/models/docx_cell_style'
42
+ require 'cloudmersive-convert-api-client/models/docx_comment'
42
43
  require 'cloudmersive-convert-api-client/models/docx_footer'
43
44
  require 'cloudmersive-convert-api-client/models/docx_header'
44
45
  require 'cloudmersive-convert-api-client/models/docx_image'
46
+ require 'cloudmersive-convert-api-client/models/docx_insert_comment_on_paragraph_request'
45
47
  require 'cloudmersive-convert-api-client/models/docx_insert_image_request'
46
48
  require 'cloudmersive-convert-api-client/models/docx_insert_image_response'
47
49
  require 'cloudmersive-convert-api-client/models/docx_page'
@@ -62,10 +64,15 @@ require 'cloudmersive-convert-api-client/models/docx_table_row'
62
64
  require 'cloudmersive-convert-api-client/models/docx_template_application_request'
63
65
  require 'cloudmersive-convert-api-client/models/docx_template_operation'
64
66
  require 'cloudmersive-convert-api-client/models/docx_text'
67
+ require 'cloudmersive-convert-api-client/models/docx_top_level_comment'
65
68
  require 'cloudmersive-convert-api-client/models/exif_value'
66
69
  require 'cloudmersive-convert-api-client/models/finish_editing_request'
67
70
  require 'cloudmersive-convert-api-client/models/get_docx_body_request'
68
71
  require 'cloudmersive-convert-api-client/models/get_docx_body_response'
72
+ require 'cloudmersive-convert-api-client/models/get_docx_comments_hierarchical_response'
73
+ require 'cloudmersive-convert-api-client/models/get_docx_comments_response'
74
+ require 'cloudmersive-convert-api-client/models/get_docx_get_comments_hierarchical_request'
75
+ require 'cloudmersive-convert-api-client/models/get_docx_get_comments_request'
69
76
  require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request'
70
77
  require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response'
71
78
  require 'cloudmersive-convert-api-client/models/get_docx_images_request'
@@ -107,6 +114,7 @@ require 'cloudmersive-convert-api-client/models/html_to_pdf_request'
107
114
  require 'cloudmersive-convert-api-client/models/html_to_png_request'
108
115
  require 'cloudmersive-convert-api-client/models/html_to_text_request'
109
116
  require 'cloudmersive-convert-api-client/models/html_to_text_response'
117
+ require 'cloudmersive-convert-api-client/models/insert_docx_comment_on_paragraph_response'
110
118
  require 'cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request'
111
119
  require 'cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response'
112
120
  require 'cloudmersive-convert-api-client/models/insert_docx_table_row_request'
@@ -351,6 +351,116 @@ module CloudmersiveConvertApiClient
351
351
  return data, status_code, headers
352
352
  end
353
353
 
354
+ # Get comments from a Word DOCX document as a flat list
355
+ # Returns the comments and review annotations stored in the Word Document (DOCX) format file as a flattened list (not as a hierarchy of comments and replies).
356
+ # @param req_config Document input request
357
+ # @param [Hash] opts the optional parameters
358
+ # @return [GetDocxCommentsResponse]
359
+ def edit_document_docx_get_comments(req_config, opts = {})
360
+ data, _status_code, _headers = edit_document_docx_get_comments_with_http_info(req_config, opts)
361
+ return data
362
+ end
363
+
364
+ # Get comments from a Word DOCX document as a flat list
365
+ # Returns the comments and review annotations stored in the Word Document (DOCX) format file as a flattened list (not as a hierarchy of comments and replies).
366
+ # @param req_config Document input request
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [Array<(GetDocxCommentsResponse, Fixnum, Hash)>] GetDocxCommentsResponse data, response status code and response headers
369
+ def edit_document_docx_get_comments_with_http_info(req_config, opts = {})
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_get_comments ..."
372
+ end
373
+ # verify the required parameter 'req_config' is set
374
+ if @api_client.config.client_side_validation && req_config.nil?
375
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_get_comments"
376
+ end
377
+ # resource path
378
+ local_var_path = "/convert/edit/docx/get-comments/flat-list"
379
+
380
+ # query parameters
381
+ query_params = {}
382
+
383
+ # header parameters
384
+ header_params = {}
385
+ # HTTP header 'Accept' (if needed)
386
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
387
+ # HTTP header 'Content-Type'
388
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
389
+
390
+ # form parameters
391
+ form_params = {}
392
+
393
+ # http body (model)
394
+ post_body = @api_client.object_to_http_body(req_config)
395
+ auth_names = ['Apikey']
396
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
397
+ :header_params => header_params,
398
+ :query_params => query_params,
399
+ :form_params => form_params,
400
+ :body => post_body,
401
+ :auth_names => auth_names,
402
+ :return_type => 'GetDocxCommentsResponse')
403
+ if @api_client.config.debugging
404
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_comments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
405
+ end
406
+ return data, status_code, headers
407
+ end
408
+
409
+ # Get comments from a Word DOCX document hierarchically
410
+ # Returns the comments and review annotations stored in the Word Document (DOCX) format file hierarchically, where reply comments are nested as children under top-level comments in the results returned.
411
+ # @param req_config Document input request
412
+ # @param [Hash] opts the optional parameters
413
+ # @return [GetDocxCommentsHierarchicalResponse]
414
+ def edit_document_docx_get_comments_hierarchical(req_config, opts = {})
415
+ data, _status_code, _headers = edit_document_docx_get_comments_hierarchical_with_http_info(req_config, opts)
416
+ return data
417
+ end
418
+
419
+ # Get comments from a Word DOCX document hierarchically
420
+ # Returns the comments and review annotations stored in the Word Document (DOCX) format file hierarchically, where reply comments are nested as children under top-level comments in the results returned.
421
+ # @param req_config Document input request
422
+ # @param [Hash] opts the optional parameters
423
+ # @return [Array<(GetDocxCommentsHierarchicalResponse, Fixnum, Hash)>] GetDocxCommentsHierarchicalResponse data, response status code and response headers
424
+ def edit_document_docx_get_comments_hierarchical_with_http_info(req_config, opts = {})
425
+ if @api_client.config.debugging
426
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_get_comments_hierarchical ..."
427
+ end
428
+ # verify the required parameter 'req_config' is set
429
+ if @api_client.config.client_side_validation && req_config.nil?
430
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_get_comments_hierarchical"
431
+ end
432
+ # resource path
433
+ local_var_path = "/convert/edit/docx/get-comments/hierarchical"
434
+
435
+ # query parameters
436
+ query_params = {}
437
+
438
+ # header parameters
439
+ header_params = {}
440
+ # HTTP header 'Accept' (if needed)
441
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
442
+ # HTTP header 'Content-Type'
443
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
444
+
445
+ # form parameters
446
+ form_params = {}
447
+
448
+ # http body (model)
449
+ post_body = @api_client.object_to_http_body(req_config)
450
+ auth_names = ['Apikey']
451
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :form_params => form_params,
455
+ :body => post_body,
456
+ :auth_names => auth_names,
457
+ :return_type => 'GetDocxCommentsHierarchicalResponse')
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_comments_hierarchical\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
463
+
354
464
  # Get content of a footer from a Word DOCX document
355
465
  # Returns the footer content from a Word Document (DOCX) format file
356
466
  # @param req_config Document input request
@@ -736,6 +846,61 @@ module CloudmersiveConvertApiClient
736
846
  return data, status_code, headers
737
847
  end
738
848
 
849
+ # Insert a new comment into a Word DOCX document attached to a paragraph
850
+ # Adds a new comment into a Word DOCX document attached to a paragraph and returns the result. Call Finish Editing on the output URL to complete the operation.
851
+ # @param req_config Document input request
852
+ # @param [Hash] opts the optional parameters
853
+ # @return [InsertDocxCommentOnParagraphResponse]
854
+ def edit_document_docx_insert_comment_on_paragraph(req_config, opts = {})
855
+ data, _status_code, _headers = edit_document_docx_insert_comment_on_paragraph_with_http_info(req_config, opts)
856
+ return data
857
+ end
858
+
859
+ # Insert a new comment into a Word DOCX document attached to a paragraph
860
+ # Adds a new comment into a Word DOCX document attached to a paragraph and returns the result. Call Finish Editing on the output URL to complete the operation.
861
+ # @param req_config Document input request
862
+ # @param [Hash] opts the optional parameters
863
+ # @return [Array<(InsertDocxCommentOnParagraphResponse, Fixnum, Hash)>] InsertDocxCommentOnParagraphResponse data, response status code and response headers
864
+ def edit_document_docx_insert_comment_on_paragraph_with_http_info(req_config, opts = {})
865
+ if @api_client.config.debugging
866
+ @api_client.config.logger.debug "Calling API: EditDocumentApi.edit_document_docx_insert_comment_on_paragraph ..."
867
+ end
868
+ # verify the required parameter 'req_config' is set
869
+ if @api_client.config.client_side_validation && req_config.nil?
870
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling EditDocumentApi.edit_document_docx_insert_comment_on_paragraph"
871
+ end
872
+ # resource path
873
+ local_var_path = "/convert/edit/docx/insert-comment/on/paragraph"
874
+
875
+ # query parameters
876
+ query_params = {}
877
+
878
+ # header parameters
879
+ header_params = {}
880
+ # HTTP header 'Accept' (if needed)
881
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
882
+ # HTTP header 'Content-Type'
883
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
884
+
885
+ # form parameters
886
+ form_params = {}
887
+
888
+ # http body (model)
889
+ post_body = @api_client.object_to_http_body(req_config)
890
+ auth_names = ['Apikey']
891
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
892
+ :header_params => header_params,
893
+ :query_params => query_params,
894
+ :form_params => form_params,
895
+ :body => post_body,
896
+ :auth_names => auth_names,
897
+ :return_type => 'InsertDocxCommentOnParagraphResponse')
898
+ if @api_client.config.debugging
899
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_insert_comment_on_paragraph\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
900
+ end
901
+ return data, status_code, headers
902
+ end
903
+
739
904
  # Insert image into a Word DOCX document
740
905
  # Set the footer in a Word Document (DOCX). Call Finish Editing on the output URL to complete the operation.
741
906
  # @param req_config Document input request