aspose_pdf_cloud 19.10.0 → 19.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -4
- data/docs/ComboBoxField.md +32 -0
- data/docs/ComboBoxFieldResponse.md +11 -0
- data/docs/ComboBoxFields.md +10 -0
- data/docs/ComboBoxFieldsResponse.md +11 -0
- data/docs/PdfApi.md +130 -0
- data/lib/aspose_pdf_cloud.rb +4 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +388 -0
- data/lib/aspose_pdf_cloud/models/combo_box_field.rb +450 -0
- data/lib/aspose_pdf_cloud/models/combo_box_field_response.rb +224 -0
- data/lib/aspose_pdf_cloud/models/combo_box_fields.rb +213 -0
- data/lib/aspose_pdf_cloud/models/combo_box_fields_response.rb +224 -0
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +103 -1
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d911fe10cc95a756cb9dc1ec4d2c98107109fda0894389b47d1f4eff11f6ab59
|
4
|
+
data.tar.gz: 9eb4e480621f99925ca03f89bbae83a4dc786c5f3ee8a62ff60670c7a0950ad8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cde0d6ba4d4154e2354e91ed965392c7edb94ec4db667f0e4498e8c0d7780ff7bdbf07cddcad1043628cdb4dae15661c43ec289a64885d5ea02f0fdf61017ee3
|
7
|
+
data.tar.gz: 2be8eeba74aefa9939169c147b7f1e234f065d6f43b4be611fb08b210f766b888dcad25321013ed9c19091824fc98057c92dfd9702c8330bb1065921fa8106bb
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Aspose.PDF Cloud
|
2
2
|
|
3
3
|
- API version: 3.0
|
4
|
-
- Package version: 19.
|
4
|
+
- Package version: 19.11.0
|
5
5
|
|
6
6
|
[Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Pdf documents in the cloud.
|
7
7
|
|
@@ -22,15 +22,15 @@ gem build aspose_pdf_cloud.gemspec
|
|
22
22
|
Then either install the gem locally:
|
23
23
|
|
24
24
|
```shell
|
25
|
-
gem install ./aspose_pdf_cloud-19.
|
25
|
+
gem install ./aspose_pdf_cloud-19.11.0.gem
|
26
26
|
```
|
27
|
-
(for development, run `gem install --dev ./aspose_pdf_cloud-19.
|
27
|
+
(for development, run `gem install --dev ./aspose_pdf_cloud-19.11.0.gem` to install the development dependencies)
|
28
28
|
|
29
29
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
30
30
|
|
31
31
|
Finally add this to the Gemfile:
|
32
32
|
|
33
|
-
gem 'aspose_pdf_cloud', '~> 19.
|
33
|
+
gem 'aspose_pdf_cloud', '~> 19.11.0'
|
34
34
|
|
35
35
|
### Install from Git
|
36
36
|
|
@@ -119,6 +119,7 @@ Class | Method | HTTP request | Description
|
|
119
119
|
*AsposePdfCloud::PdfApi* | [**get_caret_annotation**](docs/PdfApi.md#get_caret_annotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID.
|
120
120
|
*AsposePdfCloud::PdfApi* | [**get_check_box_field**](docs/PdfApi.md#get_check_box_field) | **GET** /pdf/\{name}/fields/checkbox/\{fieldName} | Read document checkbox field by name.
|
121
121
|
*AsposePdfCloud::PdfApi* | [**get_circle_annotation**](docs/PdfApi.md#get_circle_annotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID.
|
122
|
+
*AsposePdfCloud::PdfApi* | [**get_combo_box_field**](docs/PdfApi.md#get_combo_box_field) | **GET** /pdf/\{name}/fields/combobox/\{fieldName} | Read document combobox field by name.
|
122
123
|
*AsposePdfCloud::PdfApi* | [**get_disc_usage**](docs/PdfApi.md#get_disc_usage) | **GET** /pdf/storage/disc | Get disc usage
|
123
124
|
*AsposePdfCloud::PdfApi* | [**get_document**](docs/PdfApi.md#get_document) | **GET** /pdf/\{name} | Read common document info.
|
124
125
|
*AsposePdfCloud::PdfApi* | [**get_document_annotations**](docs/PdfApi.md#get_document_annotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
|
@@ -128,6 +129,7 @@ Class | Method | HTTP request | Description
|
|
128
129
|
*AsposePdfCloud::PdfApi* | [**get_document_caret_annotations**](docs/PdfApi.md#get_document_caret_annotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations.
|
129
130
|
*AsposePdfCloud::PdfApi* | [**get_document_check_box_fields**](docs/PdfApi.md#get_document_check_box_fields) | **GET** /pdf/\{name}/fields/checkbox | Read document checkbox fields.
|
130
131
|
*AsposePdfCloud::PdfApi* | [**get_document_circle_annotations**](docs/PdfApi.md#get_document_circle_annotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations.
|
132
|
+
*AsposePdfCloud::PdfApi* | [**get_document_combo_box_fields**](docs/PdfApi.md#get_document_combo_box_fields) | **GET** /pdf/\{name}/fields/combobox | Read document combobox fields.
|
131
133
|
*AsposePdfCloud::PdfApi* | [**get_document_file_attachment_annotations**](docs/PdfApi.md#get_document_file_attachment_annotations) | **GET** /pdf/\{name}/annotations/fileattachment | Read document FileAttachment annotations.
|
132
134
|
*AsposePdfCloud::PdfApi* | [**get_document_free_text_annotations**](docs/PdfApi.md#get_document_free_text_annotations) | **GET** /pdf/\{name}/annotations/freetext | Read document free text annotations.
|
133
135
|
*AsposePdfCloud::PdfApi* | [**get_document_highlight_annotations**](docs/PdfApi.md#get_document_highlight_annotations) | **GET** /pdf/\{name}/annotations/highlight | Read document highlight annotations.
|
@@ -189,6 +191,7 @@ Class | Method | HTTP request | Description
|
|
189
191
|
*AsposePdfCloud::PdfApi* | [**get_page_caret_annotations**](docs/PdfApi.md#get_page_caret_annotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Read document page caret annotations.
|
190
192
|
*AsposePdfCloud::PdfApi* | [**get_page_check_box_fields**](docs/PdfApi.md#get_page_check_box_fields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/checkbox | Read document page checkbox fields.
|
191
193
|
*AsposePdfCloud::PdfApi* | [**get_page_circle_annotations**](docs/PdfApi.md#get_page_circle_annotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/circle | Read document page circle annotations.
|
194
|
+
*AsposePdfCloud::PdfApi* | [**get_page_combo_box_fields**](docs/PdfApi.md#get_page_combo_box_fields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/combobox | Read document page combobox fields.
|
192
195
|
*AsposePdfCloud::PdfApi* | [**get_page_convert_to_bmp**](docs/PdfApi.md#get_page_convert_to_bmp) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/bmp | Convert document page to Bmp image and return resulting file in response.
|
193
196
|
*AsposePdfCloud::PdfApi* | [**get_page_convert_to_emf**](docs/PdfApi.md#get_page_convert_to_emf) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/emf | Convert document page to Emf image and return resulting file in response.
|
194
197
|
*AsposePdfCloud::PdfApi* | [**get_page_convert_to_gif**](docs/PdfApi.md#get_page_convert_to_gif) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/gif | Convert document page to Gif image and return resulting file in response.
|
@@ -272,6 +275,7 @@ Class | Method | HTTP request | Description
|
|
272
275
|
*AsposePdfCloud::PdfApi* | [**post_bookmark**](docs/PdfApi.md#post_bookmark) | **POST** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Add document bookmarks.
|
273
276
|
*AsposePdfCloud::PdfApi* | [**post_change_password_document_in_storage**](docs/PdfApi.md#post_change_password_document_in_storage) | **POST** /pdf/\{name}/changepassword | Change document password in storage.
|
274
277
|
*AsposePdfCloud::PdfApi* | [**post_check_box_fields**](docs/PdfApi.md#post_check_box_fields) | **POST** /pdf/\{name}/fields/checkbox | Add document checkbox fields.
|
278
|
+
*AsposePdfCloud::PdfApi* | [**post_combo_box_fields**](docs/PdfApi.md#post_combo_box_fields) | **POST** /pdf/\{name}/fields/combobox | Add document combobox fields.
|
275
279
|
*AsposePdfCloud::PdfApi* | [**post_create_field**](docs/PdfApi.md#post_create_field) | **POST** /pdf/\{name}/fields | Create field.
|
276
280
|
*AsposePdfCloud::PdfApi* | [**post_decrypt_document_in_storage**](docs/PdfApi.md#post_decrypt_document_in_storage) | **POST** /pdf/\{name}/decrypt | Decrypt document in storage.
|
277
281
|
*AsposePdfCloud::PdfApi* | [**post_document_image_footer**](docs/PdfApi.md#post_document_image_footer) | **POST** /pdf/\{name}/footer/image | Add document image footer.
|
@@ -328,6 +332,7 @@ Class | Method | HTTP request | Description
|
|
328
332
|
*AsposePdfCloud::PdfApi* | [**put_change_password_document**](docs/PdfApi.md#put_change_password_document) | **PUT** /pdf/changepassword | Change document password from content.
|
329
333
|
*AsposePdfCloud::PdfApi* | [**put_check_box_field**](docs/PdfApi.md#put_check_box_field) | **PUT** /pdf/\{name}/fields/checkbox/\{fieldName} | Replace document checkbox field
|
330
334
|
*AsposePdfCloud::PdfApi* | [**put_circle_annotation**](docs/PdfApi.md#put_circle_annotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation
|
335
|
+
*AsposePdfCloud::PdfApi* | [**put_combo_box_field**](docs/PdfApi.md#put_combo_box_field) | **PUT** /pdf/\{name}/fields/combobox/\{fieldName} | Replace document combobox field
|
331
336
|
*AsposePdfCloud::PdfApi* | [**put_create_document**](docs/PdfApi.md#put_create_document) | **PUT** /pdf/\{name} | Create empty document.
|
332
337
|
*AsposePdfCloud::PdfApi* | [**put_decrypt_document**](docs/PdfApi.md#put_decrypt_document) | **PUT** /pdf/decrypt | Decrypt document from content.
|
333
338
|
*AsposePdfCloud::PdfApi* | [**put_encrypt_document**](docs/PdfApi.md#put_encrypt_document) | **PUT** /pdf/encrypt | Encrypt document from content.
|
@@ -549,6 +554,9 @@ Class | Method | HTTP request | Description
|
|
549
554
|
- [AsposePdfCloud::CircleAnnotationResponse](docs/CircleAnnotationResponse.md)
|
550
555
|
- [AsposePdfCloud::CircleAnnotations](docs/CircleAnnotations.md)
|
551
556
|
- [AsposePdfCloud::CircleAnnotationsResponse](docs/CircleAnnotationsResponse.md)
|
557
|
+
- [AsposePdfCloud::ComboBoxFieldResponse](docs/ComboBoxFieldResponse.md)
|
558
|
+
- [AsposePdfCloud::ComboBoxFields](docs/ComboBoxFields.md)
|
559
|
+
- [AsposePdfCloud::ComboBoxFieldsResponse](docs/ComboBoxFieldsResponse.md)
|
552
560
|
- [AsposePdfCloud::Document](docs/Document.md)
|
553
561
|
- [AsposePdfCloud::DocumentPageResponse](docs/DocumentPageResponse.md)
|
554
562
|
- [AsposePdfCloud::DocumentPagesResponse](docs/DocumentPagesResponse.md)
|
@@ -671,6 +679,7 @@ Class | Method | HTTP request | Description
|
|
671
679
|
- [AsposePdfCloud::TextHeader](docs/TextHeader.md)
|
672
680
|
- [AsposePdfCloud::TextStamp](docs/TextStamp.md)
|
673
681
|
- [AsposePdfCloud::CaretAnnotation](docs/CaretAnnotation.md)
|
682
|
+
- [AsposePdfCloud::ComboBoxField](docs/ComboBoxField.md)
|
674
683
|
- [AsposePdfCloud::CommonFigureAnnotation](docs/CommonFigureAnnotation.md)
|
675
684
|
- [AsposePdfCloud::FileAttachmentAnnotation](docs/FileAttachmentAnnotation.md)
|
676
685
|
- [AsposePdfCloud::FreeTextAnnotation](docs/FreeTextAnnotation.md)
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# AsposePdfCloud::ComboBoxField
|
2
|
+
Provides ComboBoxField.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**partial_name** | **String** | Field name. | [optional]
|
9
|
+
**rect** | [**Rectangle**](Rectangle.md) | Field rectangle. | [optional]
|
10
|
+
**value** | **String** | Field value. | [optional]
|
11
|
+
**page_index** | **Integer** | Page index. |
|
12
|
+
**height** | **Float** | Gets or sets height of the field. | [optional]
|
13
|
+
**width** | **Float** | Gets or sets width of the field. | [optional]
|
14
|
+
**z_index** | **Integer** | Z index. | [optional]
|
15
|
+
**is_group** | **BOOLEAN** | Is group. |
|
16
|
+
**parent** | [**FormField**](FormField.md) | Gets field parent. | [optional]
|
17
|
+
**is_shared_field** | **BOOLEAN** | Property for Generator support. Used when field is added to header or footer. If true, this field will created once and it's appearance will be visible on all pages of the document. If false, separated field will be created for every document page. | [optional]
|
18
|
+
**flags** | [**Array<AnnotationFlags>**](AnnotationFlags.md) | Gets Flags of the field. | [optional]
|
19
|
+
**color** | [**Color**](Color.md) | Color of the annotation. | [optional]
|
20
|
+
**contents** | **String** | Get the field content. | [optional]
|
21
|
+
**margin** | [**MarginInfo**](MarginInfo.md) | Gets or sets a outer margin for paragraph (for pdf generation) | [optional]
|
22
|
+
**highlighting** | [**LinkHighlightingMode**](LinkHighlightingMode.md) | Field highlighting mode. | [optional]
|
23
|
+
**horizontal_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the field. | [optional]
|
24
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the field. | [optional]
|
25
|
+
**multi_select** | **BOOLEAN** | Gets or sets multiselection flag. | [optional]
|
26
|
+
**options** | [**Array<Option>**](Option.md) | Gets collection of options of the combobox. | [optional]
|
27
|
+
**active_state** | **String** | Gets or sets current annotation appearance state. | [optional]
|
28
|
+
**editable** | **BOOLEAN** | Gets or sets editable status of the field. | [optional]
|
29
|
+
**spell_check** | **BOOLEAN** | Gets or sets spellchaeck activiity status. | [optional]
|
30
|
+
**selected** | **Integer** | Gets or sets index of selected item. Numbering of items is started from 1. |
|
31
|
+
|
32
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# AsposePdfCloud::ComboBoxFieldResponse
|
2
|
+
Represents response containing single combobox field object
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | Response status code. |
|
8
|
+
**status** | **String** | Response status. | [optional]
|
9
|
+
**field** | [**ComboBoxField**](ComboBoxField.md) | Combobox field object | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# AsposePdfCloud::ComboBoxFields
|
2
|
+
Object representing a list of combobox fields.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**list** | [**Array<ComboBoxField>**](ComboBoxField.md) | List of combobox fields. | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# AsposePdfCloud::ComboBoxFieldsResponse
|
2
|
+
Represents response containing multiple combobox field objects
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | Response status code. |
|
8
|
+
**status** | **String** | Response status. | [optional]
|
9
|
+
**fields** | [**ComboBoxFields**](ComboBoxFields.md) | Combobox fields object | [optional]
|
10
|
+
|
11
|
+
|
data/docs/PdfApi.md
CHANGED
@@ -34,6 +34,7 @@ Method | HTTP request | Description
|
|
34
34
|
[**get_caret_annotation**](PdfApi.md#get_caret_annotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID.
|
35
35
|
[**get_check_box_field**](PdfApi.md#get_check_box_field) | **GET** /pdf/\{name}/fields/checkbox/\{fieldName} | Read document checkbox field by name.
|
36
36
|
[**get_circle_annotation**](PdfApi.md#get_circle_annotation) | **GET** /pdf/\{name}/annotations/circle/\{annotationId} | Read document page circle annotation by ID.
|
37
|
+
[**get_combo_box_field**](PdfApi.md#get_combo_box_field) | **GET** /pdf/\{name}/fields/combobox/\{fieldName} | Read document combobox field by name.
|
37
38
|
[**get_disc_usage**](PdfApi.md#get_disc_usage) | **GET** /pdf/storage/disc | Get disc usage
|
38
39
|
[**get_document**](PdfApi.md#get_document) | **GET** /pdf/\{name} | Read common document info.
|
39
40
|
[**get_document_annotations**](PdfApi.md#get_document_annotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
|
@@ -43,6 +44,7 @@ Method | HTTP request | Description
|
|
43
44
|
[**get_document_caret_annotations**](PdfApi.md#get_document_caret_annotations) | **GET** /pdf/\{name}/annotations/caret | Read document caret annotations.
|
44
45
|
[**get_document_check_box_fields**](PdfApi.md#get_document_check_box_fields) | **GET** /pdf/\{name}/fields/checkbox | Read document checkbox fields.
|
45
46
|
[**get_document_circle_annotations**](PdfApi.md#get_document_circle_annotations) | **GET** /pdf/\{name}/annotations/circle | Read document circle annotations.
|
47
|
+
[**get_document_combo_box_fields**](PdfApi.md#get_document_combo_box_fields) | **GET** /pdf/\{name}/fields/combobox | Read document combobox fields.
|
46
48
|
[**get_document_file_attachment_annotations**](PdfApi.md#get_document_file_attachment_annotations) | **GET** /pdf/\{name}/annotations/fileattachment | Read document FileAttachment annotations.
|
47
49
|
[**get_document_free_text_annotations**](PdfApi.md#get_document_free_text_annotations) | **GET** /pdf/\{name}/annotations/freetext | Read document free text annotations.
|
48
50
|
[**get_document_highlight_annotations**](PdfApi.md#get_document_highlight_annotations) | **GET** /pdf/\{name}/annotations/highlight | Read document highlight annotations.
|
@@ -104,6 +106,7 @@ Method | HTTP request | Description
|
|
104
106
|
[**get_page_caret_annotations**](PdfApi.md#get_page_caret_annotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/caret | Read document page caret annotations.
|
105
107
|
[**get_page_check_box_fields**](PdfApi.md#get_page_check_box_fields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/checkbox | Read document page checkbox fields.
|
106
108
|
[**get_page_circle_annotations**](PdfApi.md#get_page_circle_annotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/circle | Read document page circle annotations.
|
109
|
+
[**get_page_combo_box_fields**](PdfApi.md#get_page_combo_box_fields) | **GET** /pdf/\{name}/page/\{pageNumber}/fields/combobox | Read document page combobox fields.
|
107
110
|
[**get_page_convert_to_bmp**](PdfApi.md#get_page_convert_to_bmp) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/bmp | Convert document page to Bmp image and return resulting file in response.
|
108
111
|
[**get_page_convert_to_emf**](PdfApi.md#get_page_convert_to_emf) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/emf | Convert document page to Emf image and return resulting file in response.
|
109
112
|
[**get_page_convert_to_gif**](PdfApi.md#get_page_convert_to_gif) | **GET** /pdf/\{name}/pages/\{pageNumber}/convert/gif | Convert document page to Gif image and return resulting file in response.
|
@@ -187,6 +190,7 @@ Method | HTTP request | Description
|
|
187
190
|
[**post_bookmark**](PdfApi.md#post_bookmark) | **POST** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Add document bookmarks.
|
188
191
|
[**post_change_password_document_in_storage**](PdfApi.md#post_change_password_document_in_storage) | **POST** /pdf/\{name}/changepassword | Change document password in storage.
|
189
192
|
[**post_check_box_fields**](PdfApi.md#post_check_box_fields) | **POST** /pdf/\{name}/fields/checkbox | Add document checkbox fields.
|
193
|
+
[**post_combo_box_fields**](PdfApi.md#post_combo_box_fields) | **POST** /pdf/\{name}/fields/combobox | Add document combobox fields.
|
190
194
|
[**post_create_field**](PdfApi.md#post_create_field) | **POST** /pdf/\{name}/fields | Create field.
|
191
195
|
[**post_decrypt_document_in_storage**](PdfApi.md#post_decrypt_document_in_storage) | **POST** /pdf/\{name}/decrypt | Decrypt document in storage.
|
192
196
|
[**post_document_image_footer**](PdfApi.md#post_document_image_footer) | **POST** /pdf/\{name}/footer/image | Add document image footer.
|
@@ -243,6 +247,7 @@ Method | HTTP request | Description
|
|
243
247
|
[**put_change_password_document**](PdfApi.md#put_change_password_document) | **PUT** /pdf/changepassword | Change document password from content.
|
244
248
|
[**put_check_box_field**](PdfApi.md#put_check_box_field) | **PUT** /pdf/\{name}/fields/checkbox/\{fieldName} | Replace document checkbox field
|
245
249
|
[**put_circle_annotation**](PdfApi.md#put_circle_annotation) | **PUT** /pdf/\{name}/annotations/circle/\{annotationId} | Replace document circle annotation
|
250
|
+
[**put_combo_box_field**](PdfApi.md#put_combo_box_field) | **PUT** /pdf/\{name}/fields/combobox/\{fieldName} | Replace document combobox field
|
246
251
|
[**put_create_document**](PdfApi.md#put_create_document) | **PUT** /pdf/\{name} | Create empty document.
|
247
252
|
[**put_decrypt_document**](PdfApi.md#put_decrypt_document) | **PUT** /pdf/decrypt | Decrypt document from content.
|
248
253
|
[**put_encrypt_document**](PdfApi.md#put_encrypt_document) | **PUT** /pdf/encrypt | Encrypt document from content.
|
@@ -1086,6 +1091,31 @@ Name | Type | Description | Notes
|
|
1086
1091
|
|
1087
1092
|
|
1088
1093
|
|
1094
|
+
# **get_combo_box_field**
|
1095
|
+
> ComboBoxFieldResponse get_combo_box_field(name, field_name, opts)
|
1096
|
+
|
1097
|
+
Read document combobox field by name.
|
1098
|
+
|
1099
|
+
### Parameters
|
1100
|
+
|
1101
|
+
Name | Type | Description | Notes
|
1102
|
+
------------- | ------------- | ------------- | -------------
|
1103
|
+
**name** | **String**| The document name. |
|
1104
|
+
**field_name** | **String**| The field name. |
|
1105
|
+
**storage** | **String**| The document storage. | [optional]
|
1106
|
+
**folder** | **String**| The document folder. | [optional]
|
1107
|
+
|
1108
|
+
### Return type
|
1109
|
+
|
1110
|
+
[**ComboBoxFieldResponse**](ComboBoxFieldResponse.md)
|
1111
|
+
|
1112
|
+
### HTTP request headers
|
1113
|
+
|
1114
|
+
- **Content-Type**: application/json
|
1115
|
+
- **Accept**: application/json
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
1089
1119
|
# **get_disc_usage**
|
1090
1120
|
> DiscUsage get_disc_usage(opts)
|
1091
1121
|
|
@@ -1301,6 +1331,30 @@ Name | Type | Description | Notes
|
|
1301
1331
|
|
1302
1332
|
|
1303
1333
|
|
1334
|
+
# **get_document_combo_box_fields**
|
1335
|
+
> ComboBoxFieldsResponse get_document_combo_box_fields(name, opts)
|
1336
|
+
|
1337
|
+
Read document combobox fields.
|
1338
|
+
|
1339
|
+
### Parameters
|
1340
|
+
|
1341
|
+
Name | Type | Description | Notes
|
1342
|
+
------------- | ------------- | ------------- | -------------
|
1343
|
+
**name** | **String**| The document name. |
|
1344
|
+
**storage** | **String**| The document storage. | [optional]
|
1345
|
+
**folder** | **String**| The document folder. | [optional]
|
1346
|
+
|
1347
|
+
### Return type
|
1348
|
+
|
1349
|
+
[**ComboBoxFieldsResponse**](ComboBoxFieldsResponse.md)
|
1350
|
+
|
1351
|
+
### HTTP request headers
|
1352
|
+
|
1353
|
+
- **Content-Type**: application/json
|
1354
|
+
- **Accept**: application/json
|
1355
|
+
|
1356
|
+
|
1357
|
+
|
1304
1358
|
# **get_document_file_attachment_annotations**
|
1305
1359
|
> FileAttachmentAnnotationsResponse get_document_file_attachment_annotations(name, opts)
|
1306
1360
|
|
@@ -2800,6 +2854,31 @@ Name | Type | Description | Notes
|
|
2800
2854
|
|
2801
2855
|
|
2802
2856
|
|
2857
|
+
# **get_page_combo_box_fields**
|
2858
|
+
> ComboBoxFieldsResponse get_page_combo_box_fields(name, page_number, opts)
|
2859
|
+
|
2860
|
+
Read document page combobox fields.
|
2861
|
+
|
2862
|
+
### Parameters
|
2863
|
+
|
2864
|
+
Name | Type | Description | Notes
|
2865
|
+
------------- | ------------- | ------------- | -------------
|
2866
|
+
**name** | **String**| The document name. |
|
2867
|
+
**page_number** | **Integer**| The page number. |
|
2868
|
+
**storage** | **String**| The document storage. | [optional]
|
2869
|
+
**folder** | **String**| The document folder. | [optional]
|
2870
|
+
|
2871
|
+
### Return type
|
2872
|
+
|
2873
|
+
[**ComboBoxFieldsResponse**](ComboBoxFieldsResponse.md)
|
2874
|
+
|
2875
|
+
### HTTP request headers
|
2876
|
+
|
2877
|
+
- **Content-Type**: application/json
|
2878
|
+
- **Accept**: application/json
|
2879
|
+
|
2880
|
+
|
2881
|
+
|
2803
2882
|
# **get_page_convert_to_bmp**
|
2804
2883
|
> File get_page_convert_to_bmp(name, page_number, opts)
|
2805
2884
|
|
@@ -4957,6 +5036,31 @@ Name | Type | Description | Notes
|
|
4957
5036
|
|
4958
5037
|
|
4959
5038
|
|
5039
|
+
# **post_combo_box_fields**
|
5040
|
+
> AsposeResponse post_combo_box_fields(name, fields, opts)
|
5041
|
+
|
5042
|
+
Add document combobox fields.
|
5043
|
+
|
5044
|
+
### Parameters
|
5045
|
+
|
5046
|
+
Name | Type | Description | Notes
|
5047
|
+
------------- | ------------- | ------------- | -------------
|
5048
|
+
**name** | **String**| The document name. |
|
5049
|
+
**fields** | [**Array<ComboBoxField>**](ComboBoxField.md)| The array of field. |
|
5050
|
+
**storage** | **String**| The document storage. | [optional]
|
5051
|
+
**folder** | **String**| The document folder. | [optional]
|
5052
|
+
|
5053
|
+
### Return type
|
5054
|
+
|
5055
|
+
[**AsposeResponse**](AsposeResponse.md)
|
5056
|
+
|
5057
|
+
### HTTP request headers
|
5058
|
+
|
5059
|
+
- **Content-Type**: application/json
|
5060
|
+
- **Accept**: application/json
|
5061
|
+
|
5062
|
+
|
5063
|
+
|
4960
5064
|
# **post_create_field**
|
4961
5065
|
> AsposeResponse post_create_field(name, page, field, opts)
|
4962
5066
|
|
@@ -6420,6 +6524,32 @@ Name | Type | Description | Notes
|
|
6420
6524
|
|
6421
6525
|
|
6422
6526
|
|
6527
|
+
# **put_combo_box_field**
|
6528
|
+
> ComboBoxFieldResponse put_combo_box_field(name, field_name, field, opts)
|
6529
|
+
|
6530
|
+
Replace document combobox field
|
6531
|
+
|
6532
|
+
### Parameters
|
6533
|
+
|
6534
|
+
Name | Type | Description | Notes
|
6535
|
+
------------- | ------------- | ------------- | -------------
|
6536
|
+
**name** | **String**| The document name. |
|
6537
|
+
**field_name** | **String**| The field name. |
|
6538
|
+
**field** | [**ComboBoxField**](ComboBoxField.md)| The field. |
|
6539
|
+
**storage** | **String**| The document storage. | [optional]
|
6540
|
+
**folder** | **String**| The document folder. | [optional]
|
6541
|
+
|
6542
|
+
### Return type
|
6543
|
+
|
6544
|
+
[**ComboBoxFieldResponse**](ComboBoxFieldResponse.md)
|
6545
|
+
|
6546
|
+
### HTTP request headers
|
6547
|
+
|
6548
|
+
- **Content-Type**: application/json
|
6549
|
+
- **Accept**: application/json
|
6550
|
+
|
6551
|
+
|
6552
|
+
|
6423
6553
|
# **put_create_document**
|
6424
6554
|
> DocumentResponse put_create_document(name, opts)
|
6425
6555
|
|
data/lib/aspose_pdf_cloud.rb
CHANGED
@@ -142,6 +142,9 @@ require_relative 'aspose_pdf_cloud/models/check_box_fields_response'
|
|
142
142
|
require_relative 'aspose_pdf_cloud/models/circle_annotation_response'
|
143
143
|
require_relative 'aspose_pdf_cloud/models/circle_annotations'
|
144
144
|
require_relative 'aspose_pdf_cloud/models/circle_annotations_response'
|
145
|
+
require_relative 'aspose_pdf_cloud/models/combo_box_field_response'
|
146
|
+
require_relative 'aspose_pdf_cloud/models/combo_box_fields'
|
147
|
+
require_relative 'aspose_pdf_cloud/models/combo_box_fields_response'
|
145
148
|
require_relative 'aspose_pdf_cloud/models/document'
|
146
149
|
require_relative 'aspose_pdf_cloud/models/document_page_response'
|
147
150
|
require_relative 'aspose_pdf_cloud/models/document_pages_response'
|
@@ -264,6 +267,7 @@ require_relative 'aspose_pdf_cloud/models/text_footer'
|
|
264
267
|
require_relative 'aspose_pdf_cloud/models/text_header'
|
265
268
|
require_relative 'aspose_pdf_cloud/models/text_stamp'
|
266
269
|
require_relative 'aspose_pdf_cloud/models/caret_annotation'
|
270
|
+
require_relative 'aspose_pdf_cloud/models/combo_box_field'
|
267
271
|
require_relative 'aspose_pdf_cloud/models/common_figure_annotation'
|
268
272
|
require_relative 'aspose_pdf_cloud/models/file_attachment_annotation'
|
269
273
|
require_relative 'aspose_pdf_cloud/models/free_text_annotation'
|
@@ -2309,6 +2309,84 @@ module AsposePdfCloud
|
|
2309
2309
|
return data, status_code, headers
|
2310
2310
|
end
|
2311
2311
|
|
2312
|
+
# Read document combobox field by name.
|
2313
|
+
#
|
2314
|
+
# @param name The document name.
|
2315
|
+
# @param field_name The field name.
|
2316
|
+
# @param [Hash] opts the optional parameters
|
2317
|
+
# @option opts [String] :storage The document storage.
|
2318
|
+
# @option opts [String] :folder The document folder.
|
2319
|
+
# @return [ComboBoxFieldResponse]
|
2320
|
+
def get_combo_box_field(name, field_name, opts = {})
|
2321
|
+
@api_client.request_token_if_needed
|
2322
|
+
data, _status_code, _headers = get_combo_box_field_with_http_info(name, field_name, opts)
|
2323
|
+
rescue ApiError => error
|
2324
|
+
if error.code == 401
|
2325
|
+
@api_client.request_token_if_needed
|
2326
|
+
data, _status_code, _headers = get_combo_box_field_with_http_info(name, field_name, opts)
|
2327
|
+
else
|
2328
|
+
raise
|
2329
|
+
end
|
2330
|
+
return data
|
2331
|
+
end
|
2332
|
+
|
2333
|
+
# Read document combobox field by name.
|
2334
|
+
#
|
2335
|
+
# @param name The document name.
|
2336
|
+
# @param field_name The field name.
|
2337
|
+
# @param [Hash] opts the optional parameters
|
2338
|
+
# @option opts [String] :storage The document storage.
|
2339
|
+
# @option opts [String] :folder The document folder.
|
2340
|
+
# @return [Array<(ComboBoxFieldResponse, Fixnum, Hash)>] ComboBoxFieldResponse data, response status code and response headers
|
2341
|
+
def get_combo_box_field_with_http_info(name, field_name, opts = {})
|
2342
|
+
if @api_client.config.debugging
|
2343
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_combo_box_field ..."
|
2344
|
+
end
|
2345
|
+
# verify the required parameter 'name' is set
|
2346
|
+
if @api_client.config.client_side_validation && name.nil?
|
2347
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_combo_box_field"
|
2348
|
+
end
|
2349
|
+
# verify the required parameter 'field_name' is set
|
2350
|
+
if @api_client.config.client_side_validation && field_name.nil?
|
2351
|
+
fail ArgumentError, "Missing the required parameter 'field_name' when calling PdfApi.get_combo_box_field"
|
2352
|
+
end
|
2353
|
+
# resource path
|
2354
|
+
local_var_path = "/pdf/{name}/fields/combobox/{fieldName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'fieldName' + '}', field_name.to_s)
|
2355
|
+
|
2356
|
+
# query parameters
|
2357
|
+
query_params = {}
|
2358
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
2359
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2360
|
+
|
2361
|
+
# header parameters
|
2362
|
+
header_params = {}
|
2363
|
+
# HTTP header 'Accept' (if needed)
|
2364
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2365
|
+
# HTTP header 'Content-Type'
|
2366
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2367
|
+
|
2368
|
+
# form parameters
|
2369
|
+
form_params = {}
|
2370
|
+
# Fix header in file
|
2371
|
+
post_body = nil
|
2372
|
+
|
2373
|
+
# http body (model)
|
2374
|
+
# Fix header in file
|
2375
|
+
# post_body = nil
|
2376
|
+
auth_names = ['JWT']
|
2377
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2378
|
+
:header_params => header_params,
|
2379
|
+
:query_params => query_params,
|
2380
|
+
:form_params => form_params,
|
2381
|
+
:body => post_body,
|
2382
|
+
:auth_names => auth_names,
|
2383
|
+
:return_type => 'ComboBoxFieldResponse')
|
2384
|
+
if @api_client.config.debugging
|
2385
|
+
@api_client.config.logger.debug "API called: PdfApi#get_combo_box_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2386
|
+
end
|
2387
|
+
return data, status_code, headers
|
2388
|
+
end
|
2389
|
+
|
2312
2390
|
# Get disc usage
|
2313
2391
|
#
|
2314
2392
|
# @param [Hash] opts the optional parameters
|
@@ -2954,6 +3032,78 @@ module AsposePdfCloud
|
|
2954
3032
|
return data, status_code, headers
|
2955
3033
|
end
|
2956
3034
|
|
3035
|
+
# Read document combobox fields.
|
3036
|
+
#
|
3037
|
+
# @param name The document name.
|
3038
|
+
# @param [Hash] opts the optional parameters
|
3039
|
+
# @option opts [String] :storage The document storage.
|
3040
|
+
# @option opts [String] :folder The document folder.
|
3041
|
+
# @return [ComboBoxFieldsResponse]
|
3042
|
+
def get_document_combo_box_fields(name, opts = {})
|
3043
|
+
@api_client.request_token_if_needed
|
3044
|
+
data, _status_code, _headers = get_document_combo_box_fields_with_http_info(name, opts)
|
3045
|
+
rescue ApiError => error
|
3046
|
+
if error.code == 401
|
3047
|
+
@api_client.request_token_if_needed
|
3048
|
+
data, _status_code, _headers = get_document_combo_box_fields_with_http_info(name, opts)
|
3049
|
+
else
|
3050
|
+
raise
|
3051
|
+
end
|
3052
|
+
return data
|
3053
|
+
end
|
3054
|
+
|
3055
|
+
# Read document combobox fields.
|
3056
|
+
#
|
3057
|
+
# @param name The document name.
|
3058
|
+
# @param [Hash] opts the optional parameters
|
3059
|
+
# @option opts [String] :storage The document storage.
|
3060
|
+
# @option opts [String] :folder The document folder.
|
3061
|
+
# @return [Array<(ComboBoxFieldsResponse, Fixnum, Hash)>] ComboBoxFieldsResponse data, response status code and response headers
|
3062
|
+
def get_document_combo_box_fields_with_http_info(name, opts = {})
|
3063
|
+
if @api_client.config.debugging
|
3064
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_document_combo_box_fields ..."
|
3065
|
+
end
|
3066
|
+
# verify the required parameter 'name' is set
|
3067
|
+
if @api_client.config.client_side_validation && name.nil?
|
3068
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_combo_box_fields"
|
3069
|
+
end
|
3070
|
+
# resource path
|
3071
|
+
local_var_path = "/pdf/{name}/fields/combobox".sub('{' + 'name' + '}', name.to_s)
|
3072
|
+
|
3073
|
+
# query parameters
|
3074
|
+
query_params = {}
|
3075
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
3076
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
3077
|
+
|
3078
|
+
# header parameters
|
3079
|
+
header_params = {}
|
3080
|
+
# HTTP header 'Accept' (if needed)
|
3081
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3082
|
+
# HTTP header 'Content-Type'
|
3083
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3084
|
+
|
3085
|
+
# form parameters
|
3086
|
+
form_params = {}
|
3087
|
+
# Fix header in file
|
3088
|
+
post_body = nil
|
3089
|
+
|
3090
|
+
# http body (model)
|
3091
|
+
# Fix header in file
|
3092
|
+
# post_body = nil
|
3093
|
+
auth_names = ['JWT']
|
3094
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3095
|
+
:header_params => header_params,
|
3096
|
+
:query_params => query_params,
|
3097
|
+
:form_params => form_params,
|
3098
|
+
:body => post_body,
|
3099
|
+
:auth_names => auth_names,
|
3100
|
+
:return_type => 'ComboBoxFieldsResponse')
|
3101
|
+
if @api_client.config.debugging
|
3102
|
+
@api_client.config.logger.debug "API called: PdfApi#get_document_combo_box_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3103
|
+
end
|
3104
|
+
return data, status_code, headers
|
3105
|
+
end
|
3106
|
+
|
2957
3107
|
# Read document FileAttachment annotations.
|
2958
3108
|
#
|
2959
3109
|
# @param name The document name.
|
@@ -7537,6 +7687,84 @@ module AsposePdfCloud
|
|
7537
7687
|
return data, status_code, headers
|
7538
7688
|
end
|
7539
7689
|
|
7690
|
+
# Read document page combobox fields.
|
7691
|
+
#
|
7692
|
+
# @param name The document name.
|
7693
|
+
# @param page_number The page number.
|
7694
|
+
# @param [Hash] opts the optional parameters
|
7695
|
+
# @option opts [String] :storage The document storage.
|
7696
|
+
# @option opts [String] :folder The document folder.
|
7697
|
+
# @return [ComboBoxFieldsResponse]
|
7698
|
+
def get_page_combo_box_fields(name, page_number, opts = {})
|
7699
|
+
@api_client.request_token_if_needed
|
7700
|
+
data, _status_code, _headers = get_page_combo_box_fields_with_http_info(name, page_number, opts)
|
7701
|
+
rescue ApiError => error
|
7702
|
+
if error.code == 401
|
7703
|
+
@api_client.request_token_if_needed
|
7704
|
+
data, _status_code, _headers = get_page_combo_box_fields_with_http_info(name, page_number, opts)
|
7705
|
+
else
|
7706
|
+
raise
|
7707
|
+
end
|
7708
|
+
return data
|
7709
|
+
end
|
7710
|
+
|
7711
|
+
# Read document page combobox fields.
|
7712
|
+
#
|
7713
|
+
# @param name The document name.
|
7714
|
+
# @param page_number The page number.
|
7715
|
+
# @param [Hash] opts the optional parameters
|
7716
|
+
# @option opts [String] :storage The document storage.
|
7717
|
+
# @option opts [String] :folder The document folder.
|
7718
|
+
# @return [Array<(ComboBoxFieldsResponse, Fixnum, Hash)>] ComboBoxFieldsResponse data, response status code and response headers
|
7719
|
+
def get_page_combo_box_fields_with_http_info(name, page_number, opts = {})
|
7720
|
+
if @api_client.config.debugging
|
7721
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_page_combo_box_fields ..."
|
7722
|
+
end
|
7723
|
+
# verify the required parameter 'name' is set
|
7724
|
+
if @api_client.config.client_side_validation && name.nil?
|
7725
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_combo_box_fields"
|
7726
|
+
end
|
7727
|
+
# verify the required parameter 'page_number' is set
|
7728
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
7729
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_combo_box_fields"
|
7730
|
+
end
|
7731
|
+
# resource path
|
7732
|
+
local_var_path = "/pdf/{name}/page/{pageNumber}/fields/combobox".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
7733
|
+
|
7734
|
+
# query parameters
|
7735
|
+
query_params = {}
|
7736
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7737
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7738
|
+
|
7739
|
+
# header parameters
|
7740
|
+
header_params = {}
|
7741
|
+
# HTTP header 'Accept' (if needed)
|
7742
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7743
|
+
# HTTP header 'Content-Type'
|
7744
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7745
|
+
|
7746
|
+
# form parameters
|
7747
|
+
form_params = {}
|
7748
|
+
# Fix header in file
|
7749
|
+
post_body = nil
|
7750
|
+
|
7751
|
+
# http body (model)
|
7752
|
+
# Fix header in file
|
7753
|
+
# post_body = nil
|
7754
|
+
auth_names = ['JWT']
|
7755
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
7756
|
+
:header_params => header_params,
|
7757
|
+
:query_params => query_params,
|
7758
|
+
:form_params => form_params,
|
7759
|
+
:body => post_body,
|
7760
|
+
:auth_names => auth_names,
|
7761
|
+
:return_type => 'ComboBoxFieldsResponse')
|
7762
|
+
if @api_client.config.debugging
|
7763
|
+
@api_client.config.logger.debug "API called: PdfApi#get_page_combo_box_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7764
|
+
end
|
7765
|
+
return data, status_code, headers
|
7766
|
+
end
|
7767
|
+
|
7540
7768
|
# Convert document page to Bmp image and return resulting file in response.
|
7541
7769
|
#
|
7542
7770
|
# @param name The document name.
|
@@ -14286,6 +14514,83 @@ module AsposePdfCloud
|
|
14286
14514
|
return data, status_code, headers
|
14287
14515
|
end
|
14288
14516
|
|
14517
|
+
# Add document combobox fields.
|
14518
|
+
#
|
14519
|
+
# @param name The document name.
|
14520
|
+
# @param fields The array of field.
|
14521
|
+
# @param [Hash] opts the optional parameters
|
14522
|
+
# @option opts [String] :storage The document storage.
|
14523
|
+
# @option opts [String] :folder The document folder.
|
14524
|
+
# @return [AsposeResponse]
|
14525
|
+
def post_combo_box_fields(name, fields, opts = {})
|
14526
|
+
@api_client.request_token_if_needed
|
14527
|
+
data, _status_code, _headers = post_combo_box_fields_with_http_info(name, fields, opts)
|
14528
|
+
rescue ApiError => error
|
14529
|
+
if error.code == 401
|
14530
|
+
@api_client.request_token_if_needed
|
14531
|
+
data, _status_code, _headers = post_combo_box_fields_with_http_info(name, fields, opts)
|
14532
|
+
else
|
14533
|
+
raise
|
14534
|
+
end
|
14535
|
+
return data
|
14536
|
+
end
|
14537
|
+
|
14538
|
+
# Add document combobox fields.
|
14539
|
+
#
|
14540
|
+
# @param name The document name.
|
14541
|
+
# @param fields The array of field.
|
14542
|
+
# @param [Hash] opts the optional parameters
|
14543
|
+
# @option opts [String] :storage The document storage.
|
14544
|
+
# @option opts [String] :folder The document folder.
|
14545
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
14546
|
+
def post_combo_box_fields_with_http_info(name, fields, opts = {})
|
14547
|
+
if @api_client.config.debugging
|
14548
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_combo_box_fields ..."
|
14549
|
+
end
|
14550
|
+
# verify the required parameter 'name' is set
|
14551
|
+
if @api_client.config.client_side_validation && name.nil?
|
14552
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_combo_box_fields"
|
14553
|
+
end
|
14554
|
+
# verify the required parameter 'fields' is set
|
14555
|
+
if @api_client.config.client_side_validation && fields.nil?
|
14556
|
+
fail ArgumentError, "Missing the required parameter 'fields' when calling PdfApi.post_combo_box_fields"
|
14557
|
+
end
|
14558
|
+
# resource path
|
14559
|
+
local_var_path = "/pdf/{name}/fields/combobox".sub('{' + 'name' + '}', name.to_s)
|
14560
|
+
|
14561
|
+
# query parameters
|
14562
|
+
query_params = {}
|
14563
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
14564
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
14565
|
+
|
14566
|
+
# header parameters
|
14567
|
+
header_params = {}
|
14568
|
+
# HTTP header 'Accept' (if needed)
|
14569
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
14570
|
+
# HTTP header 'Content-Type'
|
14571
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
14572
|
+
|
14573
|
+
# form parameters
|
14574
|
+
form_params = {}
|
14575
|
+
# Fix header in file
|
14576
|
+
post_body = nil
|
14577
|
+
|
14578
|
+
# http body (model)
|
14579
|
+
post_body = @api_client.object_to_http_body(fields)
|
14580
|
+
auth_names = ['JWT']
|
14581
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
14582
|
+
:header_params => header_params,
|
14583
|
+
:query_params => query_params,
|
14584
|
+
:form_params => form_params,
|
14585
|
+
:body => post_body,
|
14586
|
+
:auth_names => auth_names,
|
14587
|
+
:return_type => 'AsposeResponse')
|
14588
|
+
if @api_client.config.debugging
|
14589
|
+
@api_client.config.logger.debug "API called: PdfApi#post_combo_box_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14590
|
+
end
|
14591
|
+
return data, status_code, headers
|
14592
|
+
end
|
14593
|
+
|
14289
14594
|
# Create field.
|
14290
14595
|
#
|
14291
14596
|
# @param name The document name.
|
@@ -18938,6 +19243,89 @@ module AsposePdfCloud
|
|
18938
19243
|
return data, status_code, headers
|
18939
19244
|
end
|
18940
19245
|
|
19246
|
+
# Replace document combobox field
|
19247
|
+
#
|
19248
|
+
# @param name The document name.
|
19249
|
+
# @param field_name The field name.
|
19250
|
+
# @param field The field.
|
19251
|
+
# @param [Hash] opts the optional parameters
|
19252
|
+
# @option opts [String] :storage The document storage.
|
19253
|
+
# @option opts [String] :folder The document folder.
|
19254
|
+
# @return [ComboBoxFieldResponse]
|
19255
|
+
def put_combo_box_field(name, field_name, field, opts = {})
|
19256
|
+
@api_client.request_token_if_needed
|
19257
|
+
data, _status_code, _headers = put_combo_box_field_with_http_info(name, field_name, field, opts)
|
19258
|
+
rescue ApiError => error
|
19259
|
+
if error.code == 401
|
19260
|
+
@api_client.request_token_if_needed
|
19261
|
+
data, _status_code, _headers = put_combo_box_field_with_http_info(name, field_name, field, opts)
|
19262
|
+
else
|
19263
|
+
raise
|
19264
|
+
end
|
19265
|
+
return data
|
19266
|
+
end
|
19267
|
+
|
19268
|
+
# Replace document combobox field
|
19269
|
+
#
|
19270
|
+
# @param name The document name.
|
19271
|
+
# @param field_name The field name.
|
19272
|
+
# @param field The field.
|
19273
|
+
# @param [Hash] opts the optional parameters
|
19274
|
+
# @option opts [String] :storage The document storage.
|
19275
|
+
# @option opts [String] :folder The document folder.
|
19276
|
+
# @return [Array<(ComboBoxFieldResponse, Fixnum, Hash)>] ComboBoxFieldResponse data, response status code and response headers
|
19277
|
+
def put_combo_box_field_with_http_info(name, field_name, field, opts = {})
|
19278
|
+
if @api_client.config.debugging
|
19279
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_combo_box_field ..."
|
19280
|
+
end
|
19281
|
+
# verify the required parameter 'name' is set
|
19282
|
+
if @api_client.config.client_side_validation && name.nil?
|
19283
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_combo_box_field"
|
19284
|
+
end
|
19285
|
+
# verify the required parameter 'field_name' is set
|
19286
|
+
if @api_client.config.client_side_validation && field_name.nil?
|
19287
|
+
fail ArgumentError, "Missing the required parameter 'field_name' when calling PdfApi.put_combo_box_field"
|
19288
|
+
end
|
19289
|
+
# verify the required parameter 'field' is set
|
19290
|
+
if @api_client.config.client_side_validation && field.nil?
|
19291
|
+
fail ArgumentError, "Missing the required parameter 'field' when calling PdfApi.put_combo_box_field"
|
19292
|
+
end
|
19293
|
+
# resource path
|
19294
|
+
local_var_path = "/pdf/{name}/fields/combobox/{fieldName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'fieldName' + '}', field_name.to_s)
|
19295
|
+
|
19296
|
+
# query parameters
|
19297
|
+
query_params = {}
|
19298
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
19299
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
19300
|
+
|
19301
|
+
# header parameters
|
19302
|
+
header_params = {}
|
19303
|
+
# HTTP header 'Accept' (if needed)
|
19304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
19305
|
+
# HTTP header 'Content-Type'
|
19306
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
19307
|
+
|
19308
|
+
# form parameters
|
19309
|
+
form_params = {}
|
19310
|
+
# Fix header in file
|
19311
|
+
post_body = nil
|
19312
|
+
|
19313
|
+
# http body (model)
|
19314
|
+
post_body = @api_client.object_to_http_body(field)
|
19315
|
+
auth_names = ['JWT']
|
19316
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
19317
|
+
:header_params => header_params,
|
19318
|
+
:query_params => query_params,
|
19319
|
+
:form_params => form_params,
|
19320
|
+
:body => post_body,
|
19321
|
+
:auth_names => auth_names,
|
19322
|
+
:return_type => 'ComboBoxFieldResponse')
|
19323
|
+
if @api_client.config.debugging
|
19324
|
+
@api_client.config.logger.debug "API called: PdfApi#put_combo_box_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
19325
|
+
end
|
19326
|
+
return data, status_code, headers
|
19327
|
+
end
|
19328
|
+
|
18941
19329
|
# Create empty document.
|
18942
19330
|
#
|
18943
19331
|
# @param name The new document name.
|