aspose_pdf_cloud 19.2.0 → 19.3.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 +35 -5
- data/docs/CellRecognized.md +10 -0
- data/docs/ImageStamp.md +25 -0
- data/docs/PdfApi.md +419 -3
- data/docs/PdfPageStamp.md +24 -0
- data/docs/Position.md +10 -0
- data/docs/RowRecognized.md +10 -0
- data/docs/StampBase.md +22 -0
- data/docs/StampInfo.md +16 -0
- data/docs/StampsInfo.md +10 -0
- data/docs/StampsInfoResponse.md +11 -0
- data/docs/TableRecognized.md +13 -0
- data/docs/TableRecognizedResponse.md +11 -0
- data/docs/TablesRecognized.md +10 -0
- data/docs/TablesRecognizedResponse.md +11 -0
- data/docs/TextRect.md +6 -1
- data/docs/TextStamp.md +25 -0
- data/lib/aspose_pdf_cloud.rb +14 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +1450 -204
- data/lib/aspose_pdf_cloud/models/cell_recognized.rb +211 -0
- data/lib/aspose_pdf_cloud/models/image_stamp.rb +363 -0
- data/lib/aspose_pdf_cloud/models/pdf_page_stamp.rb +353 -0
- data/lib/aspose_pdf_cloud/models/position.rb +221 -0
- data/lib/aspose_pdf_cloud/models/row_recognized.rb +213 -0
- data/lib/aspose_pdf_cloud/models/stamp_base.rb +333 -0
- data/lib/aspose_pdf_cloud/models/stamp_info.rb +273 -0
- data/lib/aspose_pdf_cloud/models/stamps_info.rb +215 -0
- data/lib/aspose_pdf_cloud/models/stamps_info_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/table_recognized.rb +245 -0
- data/lib/aspose_pdf_cloud/models/table_recognized_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/tables_recognized.rb +215 -0
- data/lib/aspose_pdf_cloud/models/tables_recognized_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/text_rect.rb +54 -9
- data/lib/aspose_pdf_cloud/models/text_stamp.rb +363 -0
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +260 -3
- data/test_data/PageNumberStamp.pdf +0 -0
- data/test_data/PdfWithTable.pdf +0 -0
- metadata +32 -2
@@ -0,0 +1,24 @@
|
|
1
|
+
# AsposePdfCloud::PdfPageStamp
|
2
|
+
Represents Pdf stamps.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**background** | **BOOLEAN** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional]
|
9
|
+
**bottom_margin** | **Float** | Gets or sets bottom margin of stamp. | [optional]
|
10
|
+
**horizontal_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional]
|
11
|
+
**left_margin** | **Float** | Gets or sets left margin of stamp. | [optional]
|
12
|
+
**opacity** | **Float** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional]
|
13
|
+
**right_margin** | **Float** | Gets or sets right margin of stamp. | [optional]
|
14
|
+
**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional]
|
15
|
+
**rotate_angle** | **Float** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
|
16
|
+
**top_margin** | **Float** | Gets or sets top margin of stamp. | [optional]
|
17
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
|
18
|
+
**x_indent** | **Float** | Horizontal stamp coordinate, starting from the left. | [optional]
|
19
|
+
**y_indent** | **Float** | Vertical stamp coordinate, starting from the bottom. | [optional]
|
20
|
+
**zoom** | **Float** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
|
21
|
+
**file_name** | **String** | Gets or sets the file name. | [optional]
|
22
|
+
**page_index** | **Integer** | Gets or sets the index of the page. | [optional]
|
23
|
+
|
24
|
+
|
data/docs/Position.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# AsposePdfCloud::Position
|
2
|
+
Represents a position object
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**x_indent** | **Float** | Gets the X coordinate of the object |
|
8
|
+
**y_indent** | **Float** | Gets the Y coordinate of the object |
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# AsposePdfCloud::RowRecognized
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**cell_list** | [**Array<CellRecognized>**](CellRecognized.md) | Gets readonly IList containing cells of the row | [optional]
|
8
|
+
**rectangle** | [**Rectangle**](Rectangle.md) | Gets rectangle that describes position of the row on page | [optional]
|
9
|
+
|
10
|
+
|
data/docs/StampBase.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# AsposePdfCloud::StampBase
|
2
|
+
Represents Pdf stamps.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**background** | **BOOLEAN** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional]
|
9
|
+
**bottom_margin** | **Float** | Gets or sets bottom margin of stamp. | [optional]
|
10
|
+
**horizontal_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional]
|
11
|
+
**left_margin** | **Float** | Gets or sets left margin of stamp. | [optional]
|
12
|
+
**opacity** | **Float** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional]
|
13
|
+
**right_margin** | **Float** | Gets or sets right margin of stamp. | [optional]
|
14
|
+
**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional]
|
15
|
+
**rotate_angle** | **Float** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
|
16
|
+
**top_margin** | **Float** | Gets or sets top margin of stamp. | [optional]
|
17
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
|
18
|
+
**x_indent** | **Float** | Horizontal stamp coordinate, starting from the left. | [optional]
|
19
|
+
**y_indent** | **Float** | Vertical stamp coordinate, starting from the bottom. | [optional]
|
20
|
+
**zoom** | **Float** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
|
21
|
+
|
22
|
+
|
data/docs/StampInfo.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# AsposePdfCloud::StampInfo
|
2
|
+
Provides stamp info.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**id** | **String** | Gets ID of the stamp. | [optional]
|
9
|
+
**index_on_page** | **Integer** | Gets index on page of the stamp. | [optional]
|
10
|
+
**page_index** | **Integer** | Gets PageIndex of the annotation. | [optional]
|
11
|
+
**rect** | [**Rectangle**](Rectangle.md) | Gets Rect of the annotation. | [optional]
|
12
|
+
**text** | **String** | Get the text content. | [optional]
|
13
|
+
**visible** | **BOOLEAN** | Gets the stamp is visible. | [optional]
|
14
|
+
**stamp_type** | [**StampType**](StampType.md) | Gets stamp type. | [optional]
|
15
|
+
|
16
|
+
|
data/docs/StampsInfo.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# AsposePdfCloud::StampsInfo
|
2
|
+
Object representing a list of stamps.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**list** | [**Array<StampInfo>**](StampInfo.md) | List of stamps. | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# AsposePdfCloud::StampsInfoResponse
|
2
|
+
Represents multiple stamps info reponse
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | Response status code. |
|
8
|
+
**status** | **String** | Response status. | [optional]
|
9
|
+
**stamps** | [**StampsInfo**](StampsInfo.md) | Stamps info | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# AsposePdfCloud::TableRecognized
|
2
|
+
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**row_list** | [**Array<RowRecognized>**](RowRecognized.md) | Gets readonly IList containing rows of the table | [optional]
|
9
|
+
**rectangle** | [**Rectangle**](Rectangle.md) | Gets rectangle that describes position of the table on page | [optional]
|
10
|
+
**page_num** | **Integer** | Gets number of the page containing this table | [optional]
|
11
|
+
**id** | **String** | Gets ID of the table. | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# AsposePdfCloud::TableRecognizedResponse
|
2
|
+
Represents response containing single recognized table
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | Response status code. |
|
8
|
+
**status** | **String** | Response status. | [optional]
|
9
|
+
**table** | [**TableRecognized**](TableRecognized.md) | TableRecognized object | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# AsposePdfCloud::TablesRecognized
|
2
|
+
Represents list of recognized tables.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**list** | [**Array<TableRecognized>**](TableRecognized.md) | List of tables. | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# AsposePdfCloud::TablesRecognizedResponse
|
2
|
+
Represents response containing multiple tables info
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | Response status code. |
|
8
|
+
**status** | **String** | Response status. | [optional]
|
9
|
+
**tables** | [**TablesRecognized**](TablesRecognized.md) | TablesRecognized object | [optional]
|
10
|
+
|
11
|
+
|
data/docs/TextRect.md
CHANGED
@@ -5,7 +5,12 @@ Represents text occurrence.
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**text** | **String** | Text of the occurrence. | [optional]
|
8
|
-
**page** | **Integer** | Page on which the occurrence is found. |
|
8
|
+
**page** | **Integer** | Page on which the occurrence is found. | [optional]
|
9
9
|
**rect** | [**Rectangle**](Rectangle.md) | Rectangle of the occurrence. | [optional]
|
10
|
+
**horizontal_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets a horizontal alignment of text fragment. | [optional]
|
11
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets a vertical alignment of text fragment. | [optional]
|
12
|
+
**position** | [**Position**](Position.md) | Gets or sets text position for text, represented with object. | [optional]
|
13
|
+
**baseline_position** | [**Position**](Position.md) | Gets text position for text, represented with object. The YIndent of the Position structure represents baseline coordinate of the text fragment. | [optional]
|
14
|
+
**text_state** | [**TextState**](TextState.md) | Gets or sets text state for the text that object represents. | [optional]
|
10
15
|
|
11
16
|
|
data/docs/TextStamp.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# AsposePdfCloud::TextStamp
|
2
|
+
Represents Pdf stamps.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**background** | **BOOLEAN** | Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. | [optional]
|
9
|
+
**bottom_margin** | **Float** | Gets or sets bottom margin of stamp. | [optional]
|
10
|
+
**horizontal_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional]
|
11
|
+
**left_margin** | **Float** | Gets or sets left margin of stamp. | [optional]
|
12
|
+
**opacity** | **Float** | Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. | [optional]
|
13
|
+
**right_margin** | **Float** | Gets or sets right margin of stamp. | [optional]
|
14
|
+
**rotate** | [**Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. | [optional]
|
15
|
+
**rotate_angle** | **Float** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
|
16
|
+
**top_margin** | **Float** | Gets or sets top margin of stamp. | [optional]
|
17
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
|
18
|
+
**x_indent** | **Float** | Horizontal stamp coordinate, starting from the left. | [optional]
|
19
|
+
**y_indent** | **Float** | Vertical stamp coordinate, starting from the bottom. | [optional]
|
20
|
+
**zoom** | **Float** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
|
21
|
+
**text_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
|
22
|
+
**value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional]
|
23
|
+
**text_state** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional]
|
24
|
+
|
25
|
+
|
data/lib/aspose_pdf_cloud.rb
CHANGED
@@ -35,6 +35,7 @@ require_relative 'aspose_pdf_cloud/models/aspose_response'
|
|
35
35
|
require_relative 'aspose_pdf_cloud/models/cap_style'
|
36
36
|
require_relative 'aspose_pdf_cloud/models/caption_position'
|
37
37
|
require_relative 'aspose_pdf_cloud/models/caret_symbol'
|
38
|
+
require_relative 'aspose_pdf_cloud/models/cell_recognized'
|
38
39
|
require_relative 'aspose_pdf_cloud/models/color'
|
39
40
|
require_relative 'aspose_pdf_cloud/models/color_depth'
|
40
41
|
require_relative 'aspose_pdf_cloud/models/compression_type'
|
@@ -75,9 +76,11 @@ require_relative 'aspose_pdf_cloud/models/parts_embedding_modes'
|
|
75
76
|
require_relative 'aspose_pdf_cloud/models/pdf_a_type'
|
76
77
|
require_relative 'aspose_pdf_cloud/models/point'
|
77
78
|
require_relative 'aspose_pdf_cloud/models/poly_intent'
|
79
|
+
require_relative 'aspose_pdf_cloud/models/position'
|
78
80
|
require_relative 'aspose_pdf_cloud/models/raster_images_saving_modes'
|
79
81
|
require_relative 'aspose_pdf_cloud/models/rectangle'
|
80
82
|
require_relative 'aspose_pdf_cloud/models/rotation'
|
83
|
+
require_relative 'aspose_pdf_cloud/models/row_recognized'
|
81
84
|
require_relative 'aspose_pdf_cloud/models/segment'
|
82
85
|
require_relative 'aspose_pdf_cloud/models/shape_type'
|
83
86
|
require_relative 'aspose_pdf_cloud/models/signature'
|
@@ -188,10 +191,18 @@ require_relative 'aspose_pdf_cloud/models/squiggly_annotations_response'
|
|
188
191
|
require_relative 'aspose_pdf_cloud/models/stamp_annotation_response'
|
189
192
|
require_relative 'aspose_pdf_cloud/models/stamp_annotations'
|
190
193
|
require_relative 'aspose_pdf_cloud/models/stamp_annotations_response'
|
194
|
+
require_relative 'aspose_pdf_cloud/models/stamp_base'
|
195
|
+
require_relative 'aspose_pdf_cloud/models/stamp_info'
|
196
|
+
require_relative 'aspose_pdf_cloud/models/stamps_info'
|
197
|
+
require_relative 'aspose_pdf_cloud/models/stamps_info_response'
|
191
198
|
require_relative 'aspose_pdf_cloud/models/storage_exist_response'
|
192
199
|
require_relative 'aspose_pdf_cloud/models/strike_out_annotation_response'
|
193
200
|
require_relative 'aspose_pdf_cloud/models/strike_out_annotations'
|
194
201
|
require_relative 'aspose_pdf_cloud/models/strike_out_annotations_response'
|
202
|
+
require_relative 'aspose_pdf_cloud/models/table_recognized'
|
203
|
+
require_relative 'aspose_pdf_cloud/models/table_recognized_response'
|
204
|
+
require_relative 'aspose_pdf_cloud/models/tables_recognized'
|
205
|
+
require_relative 'aspose_pdf_cloud/models/tables_recognized_response'
|
195
206
|
require_relative 'aspose_pdf_cloud/models/text_annotation_response'
|
196
207
|
require_relative 'aspose_pdf_cloud/models/text_annotations'
|
197
208
|
require_relative 'aspose_pdf_cloud/models/text_annotations_response'
|
@@ -202,11 +213,14 @@ require_relative 'aspose_pdf_cloud/models/underline_annotations'
|
|
202
213
|
require_relative 'aspose_pdf_cloud/models/underline_annotations_response'
|
203
214
|
require_relative 'aspose_pdf_cloud/models/word_count_response'
|
204
215
|
require_relative 'aspose_pdf_cloud/models/annotation_info'
|
216
|
+
require_relative 'aspose_pdf_cloud/models/image_stamp'
|
205
217
|
require_relative 'aspose_pdf_cloud/models/markup_annotation'
|
206
218
|
require_relative 'aspose_pdf_cloud/models/movie_annotation'
|
219
|
+
require_relative 'aspose_pdf_cloud/models/pdf_page_stamp'
|
207
220
|
require_relative 'aspose_pdf_cloud/models/popup_annotation'
|
208
221
|
require_relative 'aspose_pdf_cloud/models/redaction_annotation'
|
209
222
|
require_relative 'aspose_pdf_cloud/models/screen_annotation'
|
223
|
+
require_relative 'aspose_pdf_cloud/models/text_stamp'
|
210
224
|
require_relative 'aspose_pdf_cloud/models/caret_annotation'
|
211
225
|
require_relative 'aspose_pdf_cloud/models/common_figure_annotation'
|
212
226
|
require_relative 'aspose_pdf_cloud/models/file_attachment_annotation'
|
@@ -254,6 +254,150 @@ module AsposePdfCloud
|
|
254
254
|
return data, status_code, headers
|
255
255
|
end
|
256
256
|
|
257
|
+
# Delete all stamps from the document
|
258
|
+
#
|
259
|
+
# @param name The document name.
|
260
|
+
# @param [Hash] opts the optional parameters
|
261
|
+
# @option opts [String] :storage The document storage.
|
262
|
+
# @option opts [String] :folder The document folder.
|
263
|
+
# @return [AsposeResponse]
|
264
|
+
def delete_document_stamps(name, opts = {})
|
265
|
+
@api_client.request_token_if_needed
|
266
|
+
data, _status_code, _headers = delete_document_stamps_with_http_info(name, opts)
|
267
|
+
rescue ApiError => error
|
268
|
+
if error.code == 401
|
269
|
+
@api_client.refresh_token
|
270
|
+
data, _status_code, _headers = delete_document_stamps_with_http_info(name, opts)
|
271
|
+
else
|
272
|
+
raise
|
273
|
+
end
|
274
|
+
return data
|
275
|
+
end
|
276
|
+
|
277
|
+
# Delete all stamps from the document
|
278
|
+
#
|
279
|
+
# @param name The document name.
|
280
|
+
# @param [Hash] opts the optional parameters
|
281
|
+
# @option opts [String] :storage The document storage.
|
282
|
+
# @option opts [String] :folder The document folder.
|
283
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
284
|
+
def delete_document_stamps_with_http_info(name, opts = {})
|
285
|
+
if @api_client.config.debugging
|
286
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_document_stamps ..."
|
287
|
+
end
|
288
|
+
# verify the required parameter 'name' is set
|
289
|
+
if @api_client.config.client_side_validation && name.nil?
|
290
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_document_stamps"
|
291
|
+
end
|
292
|
+
# resource path
|
293
|
+
local_var_path = "/pdf/{name}/stamps".sub('{' + 'name' + '}', name.to_s)
|
294
|
+
|
295
|
+
# query parameters
|
296
|
+
query_params = {}
|
297
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
298
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
299
|
+
|
300
|
+
# header parameters
|
301
|
+
header_params = {}
|
302
|
+
# HTTP header 'Accept' (if needed)
|
303
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
304
|
+
# HTTP header 'Content-Type'
|
305
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
306
|
+
|
307
|
+
# form parameters
|
308
|
+
form_params = {}
|
309
|
+
# Fix header in file
|
310
|
+
post_body = nil
|
311
|
+
|
312
|
+
# http body (model)
|
313
|
+
# Fix header in file
|
314
|
+
# post_body = nil
|
315
|
+
auth_names = []
|
316
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
317
|
+
:header_params => header_params,
|
318
|
+
:query_params => query_params,
|
319
|
+
:form_params => form_params,
|
320
|
+
:body => post_body,
|
321
|
+
:auth_names => auth_names,
|
322
|
+
:return_type => 'AsposeResponse')
|
323
|
+
if @api_client.config.debugging
|
324
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_document_stamps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
325
|
+
end
|
326
|
+
return data, status_code, headers
|
327
|
+
end
|
328
|
+
|
329
|
+
# Delete all tables from the document
|
330
|
+
#
|
331
|
+
# @param name The document name.
|
332
|
+
# @param [Hash] opts the optional parameters
|
333
|
+
# @option opts [String] :storage The document storage.
|
334
|
+
# @option opts [String] :folder The document folder.
|
335
|
+
# @return [AsposeResponse]
|
336
|
+
def delete_document_tables(name, opts = {})
|
337
|
+
@api_client.request_token_if_needed
|
338
|
+
data, _status_code, _headers = delete_document_tables_with_http_info(name, opts)
|
339
|
+
rescue ApiError => error
|
340
|
+
if error.code == 401
|
341
|
+
@api_client.refresh_token
|
342
|
+
data, _status_code, _headers = delete_document_tables_with_http_info(name, opts)
|
343
|
+
else
|
344
|
+
raise
|
345
|
+
end
|
346
|
+
return data
|
347
|
+
end
|
348
|
+
|
349
|
+
# Delete all tables from the document
|
350
|
+
#
|
351
|
+
# @param name The document name.
|
352
|
+
# @param [Hash] opts the optional parameters
|
353
|
+
# @option opts [String] :storage The document storage.
|
354
|
+
# @option opts [String] :folder The document folder.
|
355
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
356
|
+
def delete_document_tables_with_http_info(name, opts = {})
|
357
|
+
if @api_client.config.debugging
|
358
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_document_tables ..."
|
359
|
+
end
|
360
|
+
# verify the required parameter 'name' is set
|
361
|
+
if @api_client.config.client_side_validation && name.nil?
|
362
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_document_tables"
|
363
|
+
end
|
364
|
+
# resource path
|
365
|
+
local_var_path = "/pdf/{name}/tables".sub('{' + 'name' + '}', name.to_s)
|
366
|
+
|
367
|
+
# query parameters
|
368
|
+
query_params = {}
|
369
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
370
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
371
|
+
|
372
|
+
# header parameters
|
373
|
+
header_params = {}
|
374
|
+
# HTTP header 'Accept' (if needed)
|
375
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
376
|
+
# HTTP header 'Content-Type'
|
377
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
378
|
+
|
379
|
+
# form parameters
|
380
|
+
form_params = {}
|
381
|
+
# Fix header in file
|
382
|
+
post_body = nil
|
383
|
+
|
384
|
+
# http body (model)
|
385
|
+
# Fix header in file
|
386
|
+
# post_body = nil
|
387
|
+
auth_names = []
|
388
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
389
|
+
:header_params => header_params,
|
390
|
+
:query_params => query_params,
|
391
|
+
:form_params => form_params,
|
392
|
+
:body => post_body,
|
393
|
+
:auth_names => auth_names,
|
394
|
+
:return_type => 'AsposeResponse')
|
395
|
+
if @api_client.config.debugging
|
396
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_document_tables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
397
|
+
end
|
398
|
+
return data, status_code, headers
|
399
|
+
end
|
400
|
+
|
257
401
|
# Delete document field by name.
|
258
402
|
#
|
259
403
|
# @param name The document name.
|
@@ -735,26 +879,332 @@ module AsposePdfCloud
|
|
735
879
|
|
736
880
|
# Delete all annotations from the page
|
737
881
|
#
|
738
|
-
# @param name The document name.
|
739
|
-
# @param page_number The page number.
|
882
|
+
# @param name The document name.
|
883
|
+
# @param page_number The page number.
|
884
|
+
# @param [Hash] opts the optional parameters
|
885
|
+
# @option opts [String] :storage The document storage.
|
886
|
+
# @option opts [String] :folder The document folder.
|
887
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
888
|
+
def delete_page_annotations_with_http_info(name, page_number, opts = {})
|
889
|
+
if @api_client.config.debugging
|
890
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_page_annotations ..."
|
891
|
+
end
|
892
|
+
# verify the required parameter 'name' is set
|
893
|
+
if @api_client.config.client_side_validation && name.nil?
|
894
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_page_annotations"
|
895
|
+
end
|
896
|
+
# verify the required parameter 'page_number' is set
|
897
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
898
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.delete_page_annotations"
|
899
|
+
end
|
900
|
+
# resource path
|
901
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
902
|
+
|
903
|
+
# query parameters
|
904
|
+
query_params = {}
|
905
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
906
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
907
|
+
|
908
|
+
# header parameters
|
909
|
+
header_params = {}
|
910
|
+
# HTTP header 'Accept' (if needed)
|
911
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
912
|
+
# HTTP header 'Content-Type'
|
913
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
914
|
+
|
915
|
+
# form parameters
|
916
|
+
form_params = {}
|
917
|
+
# Fix header in file
|
918
|
+
post_body = nil
|
919
|
+
|
920
|
+
# http body (model)
|
921
|
+
# Fix header in file
|
922
|
+
# post_body = nil
|
923
|
+
auth_names = []
|
924
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
925
|
+
:header_params => header_params,
|
926
|
+
:query_params => query_params,
|
927
|
+
:form_params => form_params,
|
928
|
+
:body => post_body,
|
929
|
+
:auth_names => auth_names,
|
930
|
+
:return_type => 'AsposeResponse')
|
931
|
+
if @api_client.config.debugging
|
932
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_page_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
933
|
+
end
|
934
|
+
return data, status_code, headers
|
935
|
+
end
|
936
|
+
|
937
|
+
# Delete all link annotations from the page
|
938
|
+
#
|
939
|
+
# @param name The document name.
|
940
|
+
# @param page_number The page number.
|
941
|
+
# @param [Hash] opts the optional parameters
|
942
|
+
# @option opts [String] :storage The document storage.
|
943
|
+
# @option opts [String] :folder The document folder.
|
944
|
+
# @return [AsposeResponse]
|
945
|
+
def delete_page_link_annotations(name, page_number, opts = {})
|
946
|
+
@api_client.request_token_if_needed
|
947
|
+
data, _status_code, _headers = delete_page_link_annotations_with_http_info(name, page_number, opts)
|
948
|
+
rescue ApiError => error
|
949
|
+
if error.code == 401
|
950
|
+
@api_client.refresh_token
|
951
|
+
data, _status_code, _headers = delete_page_link_annotations_with_http_info(name, page_number, opts)
|
952
|
+
else
|
953
|
+
raise
|
954
|
+
end
|
955
|
+
return data
|
956
|
+
end
|
957
|
+
|
958
|
+
# Delete all link annotations from the page
|
959
|
+
#
|
960
|
+
# @param name The document name.
|
961
|
+
# @param page_number The page number.
|
962
|
+
# @param [Hash] opts the optional parameters
|
963
|
+
# @option opts [String] :storage The document storage.
|
964
|
+
# @option opts [String] :folder The document folder.
|
965
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
966
|
+
def delete_page_link_annotations_with_http_info(name, page_number, opts = {})
|
967
|
+
if @api_client.config.debugging
|
968
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_page_link_annotations ..."
|
969
|
+
end
|
970
|
+
# verify the required parameter 'name' is set
|
971
|
+
if @api_client.config.client_side_validation && name.nil?
|
972
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_page_link_annotations"
|
973
|
+
end
|
974
|
+
# verify the required parameter 'page_number' is set
|
975
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
976
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.delete_page_link_annotations"
|
977
|
+
end
|
978
|
+
# resource path
|
979
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/links".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
980
|
+
|
981
|
+
# query parameters
|
982
|
+
query_params = {}
|
983
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
984
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
985
|
+
|
986
|
+
# header parameters
|
987
|
+
header_params = {}
|
988
|
+
# HTTP header 'Accept' (if needed)
|
989
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
990
|
+
# HTTP header 'Content-Type'
|
991
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
992
|
+
|
993
|
+
# form parameters
|
994
|
+
form_params = {}
|
995
|
+
# Fix header in file
|
996
|
+
post_body = nil
|
997
|
+
|
998
|
+
# http body (model)
|
999
|
+
# Fix header in file
|
1000
|
+
# post_body = nil
|
1001
|
+
auth_names = []
|
1002
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1003
|
+
:header_params => header_params,
|
1004
|
+
:query_params => query_params,
|
1005
|
+
:form_params => form_params,
|
1006
|
+
:body => post_body,
|
1007
|
+
:auth_names => auth_names,
|
1008
|
+
:return_type => 'AsposeResponse')
|
1009
|
+
if @api_client.config.debugging
|
1010
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_page_link_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1011
|
+
end
|
1012
|
+
return data, status_code, headers
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# Delete all stamps from the page
|
1016
|
+
#
|
1017
|
+
# @param name The document name.
|
1018
|
+
# @param page_number The page number.
|
1019
|
+
# @param [Hash] opts the optional parameters
|
1020
|
+
# @option opts [String] :storage The document storage.
|
1021
|
+
# @option opts [String] :folder The document folder.
|
1022
|
+
# @return [AsposeResponse]
|
1023
|
+
def delete_page_stamps(name, page_number, opts = {})
|
1024
|
+
@api_client.request_token_if_needed
|
1025
|
+
data, _status_code, _headers = delete_page_stamps_with_http_info(name, page_number, opts)
|
1026
|
+
rescue ApiError => error
|
1027
|
+
if error.code == 401
|
1028
|
+
@api_client.refresh_token
|
1029
|
+
data, _status_code, _headers = delete_page_stamps_with_http_info(name, page_number, opts)
|
1030
|
+
else
|
1031
|
+
raise
|
1032
|
+
end
|
1033
|
+
return data
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Delete all stamps from the page
|
1037
|
+
#
|
1038
|
+
# @param name The document name.
|
1039
|
+
# @param page_number The page number.
|
1040
|
+
# @param [Hash] opts the optional parameters
|
1041
|
+
# @option opts [String] :storage The document storage.
|
1042
|
+
# @option opts [String] :folder The document folder.
|
1043
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
1044
|
+
def delete_page_stamps_with_http_info(name, page_number, opts = {})
|
1045
|
+
if @api_client.config.debugging
|
1046
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_page_stamps ..."
|
1047
|
+
end
|
1048
|
+
# verify the required parameter 'name' is set
|
1049
|
+
if @api_client.config.client_side_validation && name.nil?
|
1050
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_page_stamps"
|
1051
|
+
end
|
1052
|
+
# verify the required parameter 'page_number' is set
|
1053
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
1054
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.delete_page_stamps"
|
1055
|
+
end
|
1056
|
+
# resource path
|
1057
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/stamps".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
1058
|
+
|
1059
|
+
# query parameters
|
1060
|
+
query_params = {}
|
1061
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
1062
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
1063
|
+
|
1064
|
+
# header parameters
|
1065
|
+
header_params = {}
|
1066
|
+
# HTTP header 'Accept' (if needed)
|
1067
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1068
|
+
# HTTP header 'Content-Type'
|
1069
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1070
|
+
|
1071
|
+
# form parameters
|
1072
|
+
form_params = {}
|
1073
|
+
# Fix header in file
|
1074
|
+
post_body = nil
|
1075
|
+
|
1076
|
+
# http body (model)
|
1077
|
+
# Fix header in file
|
1078
|
+
# post_body = nil
|
1079
|
+
auth_names = []
|
1080
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1081
|
+
:header_params => header_params,
|
1082
|
+
:query_params => query_params,
|
1083
|
+
:form_params => form_params,
|
1084
|
+
:body => post_body,
|
1085
|
+
:auth_names => auth_names,
|
1086
|
+
:return_type => 'AsposeResponse')
|
1087
|
+
if @api_client.config.debugging
|
1088
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_page_stamps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1089
|
+
end
|
1090
|
+
return data, status_code, headers
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
# Delete all tables from the page
|
1094
|
+
#
|
1095
|
+
# @param name The document name.
|
1096
|
+
# @param page_number The page number.
|
1097
|
+
# @param [Hash] opts the optional parameters
|
1098
|
+
# @option opts [String] :storage The document storage.
|
1099
|
+
# @option opts [String] :folder The document folder.
|
1100
|
+
# @return [AsposeResponse]
|
1101
|
+
def delete_page_tables(name, page_number, opts = {})
|
1102
|
+
@api_client.request_token_if_needed
|
1103
|
+
data, _status_code, _headers = delete_page_tables_with_http_info(name, page_number, opts)
|
1104
|
+
rescue ApiError => error
|
1105
|
+
if error.code == 401
|
1106
|
+
@api_client.refresh_token
|
1107
|
+
data, _status_code, _headers = delete_page_tables_with_http_info(name, page_number, opts)
|
1108
|
+
else
|
1109
|
+
raise
|
1110
|
+
end
|
1111
|
+
return data
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
# Delete all tables from the page
|
1115
|
+
#
|
1116
|
+
# @param name The document name.
|
1117
|
+
# @param page_number The page number.
|
1118
|
+
# @param [Hash] opts the optional parameters
|
1119
|
+
# @option opts [String] :storage The document storage.
|
1120
|
+
# @option opts [String] :folder The document folder.
|
1121
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
1122
|
+
def delete_page_tables_with_http_info(name, page_number, opts = {})
|
1123
|
+
if @api_client.config.debugging
|
1124
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_page_tables ..."
|
1125
|
+
end
|
1126
|
+
# verify the required parameter 'name' is set
|
1127
|
+
if @api_client.config.client_side_validation && name.nil?
|
1128
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_page_tables"
|
1129
|
+
end
|
1130
|
+
# verify the required parameter 'page_number' is set
|
1131
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
1132
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.delete_page_tables"
|
1133
|
+
end
|
1134
|
+
# resource path
|
1135
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/tables".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
1136
|
+
|
1137
|
+
# query parameters
|
1138
|
+
query_params = {}
|
1139
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
1140
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
1141
|
+
|
1142
|
+
# header parameters
|
1143
|
+
header_params = {}
|
1144
|
+
# HTTP header 'Accept' (if needed)
|
1145
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1146
|
+
# HTTP header 'Content-Type'
|
1147
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1148
|
+
|
1149
|
+
# form parameters
|
1150
|
+
form_params = {}
|
1151
|
+
# Fix header in file
|
1152
|
+
post_body = nil
|
1153
|
+
|
1154
|
+
# http body (model)
|
1155
|
+
# Fix header in file
|
1156
|
+
# post_body = nil
|
1157
|
+
auth_names = []
|
1158
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1159
|
+
:header_params => header_params,
|
1160
|
+
:query_params => query_params,
|
1161
|
+
:form_params => form_params,
|
1162
|
+
:body => post_body,
|
1163
|
+
:auth_names => auth_names,
|
1164
|
+
:return_type => 'AsposeResponse')
|
1165
|
+
if @api_client.config.debugging
|
1166
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_page_tables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1167
|
+
end
|
1168
|
+
return data, status_code, headers
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
# Delete custom document properties.
|
1172
|
+
#
|
1173
|
+
# @param name
|
1174
|
+
# @param [Hash] opts the optional parameters
|
1175
|
+
# @option opts [String] :storage
|
1176
|
+
# @option opts [String] :folder
|
1177
|
+
# @return [AsposeResponse]
|
1178
|
+
def delete_properties(name, opts = {})
|
1179
|
+
@api_client.request_token_if_needed
|
1180
|
+
data, _status_code, _headers = delete_properties_with_http_info(name, opts)
|
1181
|
+
rescue ApiError => error
|
1182
|
+
if error.code == 401
|
1183
|
+
@api_client.refresh_token
|
1184
|
+
data, _status_code, _headers = delete_properties_with_http_info(name, opts)
|
1185
|
+
else
|
1186
|
+
raise
|
1187
|
+
end
|
1188
|
+
return data
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
# Delete custom document properties.
|
1192
|
+
#
|
1193
|
+
# @param name
|
740
1194
|
# @param [Hash] opts the optional parameters
|
741
|
-
# @option opts [String] :storage
|
742
|
-
# @option opts [String] :folder
|
1195
|
+
# @option opts [String] :storage
|
1196
|
+
# @option opts [String] :folder
|
743
1197
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
744
|
-
def
|
1198
|
+
def delete_properties_with_http_info(name, opts = {})
|
745
1199
|
if @api_client.config.debugging
|
746
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
1200
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_properties ..."
|
747
1201
|
end
|
748
1202
|
# verify the required parameter 'name' is set
|
749
1203
|
if @api_client.config.client_side_validation && name.nil?
|
750
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
751
|
-
end
|
752
|
-
# verify the required parameter 'page_number' is set
|
753
|
-
if @api_client.config.client_side_validation && page_number.nil?
|
754
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.delete_page_annotations"
|
1204
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_properties"
|
755
1205
|
end
|
756
1206
|
# resource path
|
757
|
-
local_var_path = "/pdf/{name}/
|
1207
|
+
local_var_path = "/pdf/{name}/documentproperties".sub('{' + 'name' + '}', name.to_s)
|
758
1208
|
|
759
1209
|
# query parameters
|
760
1210
|
query_params = {}
|
@@ -785,54 +1235,54 @@ module AsposePdfCloud
|
|
785
1235
|
:auth_names => auth_names,
|
786
1236
|
:return_type => 'AsposeResponse')
|
787
1237
|
if @api_client.config.debugging
|
788
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
1238
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
789
1239
|
end
|
790
1240
|
return data, status_code, headers
|
791
1241
|
end
|
792
1242
|
|
793
|
-
# Delete
|
1243
|
+
# Delete document property.
|
794
1244
|
#
|
795
|
-
# @param name
|
796
|
-
# @param
|
1245
|
+
# @param name
|
1246
|
+
# @param property_name
|
797
1247
|
# @param [Hash] opts the optional parameters
|
798
|
-
# @option opts [String] :storage
|
799
|
-
# @option opts [String] :folder
|
1248
|
+
# @option opts [String] :storage
|
1249
|
+
# @option opts [String] :folder
|
800
1250
|
# @return [AsposeResponse]
|
801
|
-
def
|
1251
|
+
def delete_property(name, property_name, opts = {})
|
802
1252
|
@api_client.request_token_if_needed
|
803
|
-
data, _status_code, _headers =
|
1253
|
+
data, _status_code, _headers = delete_property_with_http_info(name, property_name, opts)
|
804
1254
|
rescue ApiError => error
|
805
1255
|
if error.code == 401
|
806
1256
|
@api_client.refresh_token
|
807
|
-
data, _status_code, _headers =
|
1257
|
+
data, _status_code, _headers = delete_property_with_http_info(name, property_name, opts)
|
808
1258
|
else
|
809
1259
|
raise
|
810
1260
|
end
|
811
1261
|
return data
|
812
1262
|
end
|
813
1263
|
|
814
|
-
# Delete
|
1264
|
+
# Delete document property.
|
815
1265
|
#
|
816
|
-
# @param name
|
817
|
-
# @param
|
1266
|
+
# @param name
|
1267
|
+
# @param property_name
|
818
1268
|
# @param [Hash] opts the optional parameters
|
819
|
-
# @option opts [String] :storage
|
820
|
-
# @option opts [String] :folder
|
1269
|
+
# @option opts [String] :storage
|
1270
|
+
# @option opts [String] :folder
|
821
1271
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
822
|
-
def
|
1272
|
+
def delete_property_with_http_info(name, property_name, opts = {})
|
823
1273
|
if @api_client.config.debugging
|
824
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
1274
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_property ..."
|
825
1275
|
end
|
826
1276
|
# verify the required parameter 'name' is set
|
827
1277
|
if @api_client.config.client_side_validation && name.nil?
|
828
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
1278
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_property"
|
829
1279
|
end
|
830
|
-
# verify the required parameter '
|
831
|
-
if @api_client.config.client_side_validation &&
|
832
|
-
fail ArgumentError, "Missing the required parameter '
|
1280
|
+
# verify the required parameter 'property_name' is set
|
1281
|
+
if @api_client.config.client_side_validation && property_name.nil?
|
1282
|
+
fail ArgumentError, "Missing the required parameter 'property_name' when calling PdfApi.delete_property"
|
833
1283
|
end
|
834
1284
|
# resource path
|
835
|
-
local_var_path = "/pdf/{name}/
|
1285
|
+
local_var_path = "/pdf/{name}/documentproperties/{propertyName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
|
836
1286
|
|
837
1287
|
# query parameters
|
838
1288
|
query_params = {}
|
@@ -863,48 +1313,54 @@ module AsposePdfCloud
|
|
863
1313
|
:auth_names => auth_names,
|
864
1314
|
:return_type => 'AsposeResponse')
|
865
1315
|
if @api_client.config.debugging
|
866
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
1316
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
867
1317
|
end
|
868
1318
|
return data, status_code, headers
|
869
1319
|
end
|
870
1320
|
|
871
|
-
# Delete
|
1321
|
+
# Delete document stamp by ID
|
872
1322
|
#
|
873
|
-
# @param name
|
1323
|
+
# @param name The document name.
|
1324
|
+
# @param stamp_id The stamp ID.
|
874
1325
|
# @param [Hash] opts the optional parameters
|
875
|
-
# @option opts [String] :storage
|
876
|
-
# @option opts [String] :folder
|
1326
|
+
# @option opts [String] :storage The document storage.
|
1327
|
+
# @option opts [String] :folder The document folder.
|
877
1328
|
# @return [AsposeResponse]
|
878
|
-
def
|
1329
|
+
def delete_stamp(name, stamp_id, opts = {})
|
879
1330
|
@api_client.request_token_if_needed
|
880
|
-
data, _status_code, _headers =
|
1331
|
+
data, _status_code, _headers = delete_stamp_with_http_info(name, stamp_id, opts)
|
881
1332
|
rescue ApiError => error
|
882
1333
|
if error.code == 401
|
883
1334
|
@api_client.refresh_token
|
884
|
-
data, _status_code, _headers =
|
1335
|
+
data, _status_code, _headers = delete_stamp_with_http_info(name, stamp_id, opts)
|
885
1336
|
else
|
886
1337
|
raise
|
887
1338
|
end
|
888
1339
|
return data
|
889
1340
|
end
|
890
1341
|
|
891
|
-
# Delete
|
1342
|
+
# Delete document stamp by ID
|
892
1343
|
#
|
893
|
-
# @param name
|
1344
|
+
# @param name The document name.
|
1345
|
+
# @param stamp_id The stamp ID.
|
894
1346
|
# @param [Hash] opts the optional parameters
|
895
|
-
# @option opts [String] :storage
|
896
|
-
# @option opts [String] :folder
|
1347
|
+
# @option opts [String] :storage The document storage.
|
1348
|
+
# @option opts [String] :folder The document folder.
|
897
1349
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
898
|
-
def
|
1350
|
+
def delete_stamp_with_http_info(name, stamp_id, opts = {})
|
899
1351
|
if @api_client.config.debugging
|
900
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
1352
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_stamp ..."
|
901
1353
|
end
|
902
1354
|
# verify the required parameter 'name' is set
|
903
1355
|
if @api_client.config.client_side_validation && name.nil?
|
904
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
1356
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_stamp"
|
1357
|
+
end
|
1358
|
+
# verify the required parameter 'stamp_id' is set
|
1359
|
+
if @api_client.config.client_side_validation && stamp_id.nil?
|
1360
|
+
fail ArgumentError, "Missing the required parameter 'stamp_id' when calling PdfApi.delete_stamp"
|
905
1361
|
end
|
906
1362
|
# resource path
|
907
|
-
local_var_path = "/pdf/{name}/
|
1363
|
+
local_var_path = "/pdf/{name}/stamps/{stampId}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'stampId' + '}', stamp_id.to_s)
|
908
1364
|
|
909
1365
|
# query parameters
|
910
1366
|
query_params = {}
|
@@ -935,54 +1391,54 @@ module AsposePdfCloud
|
|
935
1391
|
:auth_names => auth_names,
|
936
1392
|
:return_type => 'AsposeResponse')
|
937
1393
|
if @api_client.config.debugging
|
938
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
1394
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_stamp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
939
1395
|
end
|
940
1396
|
return data, status_code, headers
|
941
1397
|
end
|
942
1398
|
|
943
|
-
# Delete document
|
1399
|
+
# Delete document table by ID
|
944
1400
|
#
|
945
|
-
# @param name
|
946
|
-
# @param
|
1401
|
+
# @param name The document name.
|
1402
|
+
# @param table_id The table ID.
|
947
1403
|
# @param [Hash] opts the optional parameters
|
948
|
-
# @option opts [String] :storage
|
949
|
-
# @option opts [String] :folder
|
1404
|
+
# @option opts [String] :storage The document storage.
|
1405
|
+
# @option opts [String] :folder The document folder.
|
950
1406
|
# @return [AsposeResponse]
|
951
|
-
def
|
1407
|
+
def delete_table(name, table_id, opts = {})
|
952
1408
|
@api_client.request_token_if_needed
|
953
|
-
data, _status_code, _headers =
|
1409
|
+
data, _status_code, _headers = delete_table_with_http_info(name, table_id, opts)
|
954
1410
|
rescue ApiError => error
|
955
1411
|
if error.code == 401
|
956
1412
|
@api_client.refresh_token
|
957
|
-
data, _status_code, _headers =
|
1413
|
+
data, _status_code, _headers = delete_table_with_http_info(name, table_id, opts)
|
958
1414
|
else
|
959
1415
|
raise
|
960
1416
|
end
|
961
1417
|
return data
|
962
1418
|
end
|
963
1419
|
|
964
|
-
# Delete document
|
1420
|
+
# Delete document table by ID
|
965
1421
|
#
|
966
|
-
# @param name
|
967
|
-
# @param
|
1422
|
+
# @param name The document name.
|
1423
|
+
# @param table_id The table ID.
|
968
1424
|
# @param [Hash] opts the optional parameters
|
969
|
-
# @option opts [String] :storage
|
970
|
-
# @option opts [String] :folder
|
1425
|
+
# @option opts [String] :storage The document storage.
|
1426
|
+
# @option opts [String] :folder The document folder.
|
971
1427
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
972
|
-
def
|
1428
|
+
def delete_table_with_http_info(name, table_id, opts = {})
|
973
1429
|
if @api_client.config.debugging
|
974
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
1430
|
+
@api_client.config.logger.debug "Calling API: PdfApi.delete_table ..."
|
975
1431
|
end
|
976
1432
|
# verify the required parameter 'name' is set
|
977
1433
|
if @api_client.config.client_side_validation && name.nil?
|
978
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
1434
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_table"
|
979
1435
|
end
|
980
|
-
# verify the required parameter '
|
981
|
-
if @api_client.config.client_side_validation &&
|
982
|
-
fail ArgumentError, "Missing the required parameter '
|
1436
|
+
# verify the required parameter 'table_id' is set
|
1437
|
+
if @api_client.config.client_side_validation && table_id.nil?
|
1438
|
+
fail ArgumentError, "Missing the required parameter 'table_id' when calling PdfApi.delete_table"
|
983
1439
|
end
|
984
1440
|
# resource path
|
985
|
-
local_var_path = "/pdf/{name}/
|
1441
|
+
local_var_path = "/pdf/{name}/tables/{tableId}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'tableId' + '}', table_id.to_s)
|
986
1442
|
|
987
1443
|
# query parameters
|
988
1444
|
query_params = {}
|
@@ -1013,7 +1469,7 @@ module AsposePdfCloud
|
|
1013
1469
|
:auth_names => auth_names,
|
1014
1470
|
:return_type => 'AsposeResponse')
|
1015
1471
|
if @api_client.config.debugging
|
1016
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
1472
|
+
@api_client.config.logger.debug "API called: PdfApi#delete_table\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1017
1473
|
end
|
1018
1474
|
return data, status_code, headers
|
1019
1475
|
end
|
@@ -2779,34 +3235,178 @@ module AsposePdfCloud
|
|
2779
3235
|
# @return [SoundAnnotationsResponse]
|
2780
3236
|
def get_document_sound_annotations(name, opts = {})
|
2781
3237
|
@api_client.request_token_if_needed
|
2782
|
-
data, _status_code, _headers = get_document_sound_annotations_with_http_info(name, opts)
|
3238
|
+
data, _status_code, _headers = get_document_sound_annotations_with_http_info(name, opts)
|
3239
|
+
rescue ApiError => error
|
3240
|
+
if error.code == 401
|
3241
|
+
@api_client.refresh_token
|
3242
|
+
data, _status_code, _headers = get_document_sound_annotations_with_http_info(name, opts)
|
3243
|
+
else
|
3244
|
+
raise
|
3245
|
+
end
|
3246
|
+
return data
|
3247
|
+
end
|
3248
|
+
|
3249
|
+
# Read document sound annotations.
|
3250
|
+
#
|
3251
|
+
# @param name The document name.
|
3252
|
+
# @param [Hash] opts the optional parameters
|
3253
|
+
# @option opts [String] :storage The document storage.
|
3254
|
+
# @option opts [String] :folder The document folder.
|
3255
|
+
# @return [Array<(SoundAnnotationsResponse, Fixnum, Hash)>] SoundAnnotationsResponse data, response status code and response headers
|
3256
|
+
def get_document_sound_annotations_with_http_info(name, opts = {})
|
3257
|
+
if @api_client.config.debugging
|
3258
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_document_sound_annotations ..."
|
3259
|
+
end
|
3260
|
+
# verify the required parameter 'name' is set
|
3261
|
+
if @api_client.config.client_side_validation && name.nil?
|
3262
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_sound_annotations"
|
3263
|
+
end
|
3264
|
+
# resource path
|
3265
|
+
local_var_path = "/pdf/{name}/annotations/sound".sub('{' + 'name' + '}', name.to_s)
|
3266
|
+
|
3267
|
+
# query parameters
|
3268
|
+
query_params = {}
|
3269
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
3270
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
3271
|
+
|
3272
|
+
# header parameters
|
3273
|
+
header_params = {}
|
3274
|
+
# HTTP header 'Accept' (if needed)
|
3275
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3276
|
+
# HTTP header 'Content-Type'
|
3277
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3278
|
+
|
3279
|
+
# form parameters
|
3280
|
+
form_params = {}
|
3281
|
+
# Fix header in file
|
3282
|
+
post_body = nil
|
3283
|
+
|
3284
|
+
# http body (model)
|
3285
|
+
# Fix header in file
|
3286
|
+
# post_body = nil
|
3287
|
+
auth_names = []
|
3288
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3289
|
+
:header_params => header_params,
|
3290
|
+
:query_params => query_params,
|
3291
|
+
:form_params => form_params,
|
3292
|
+
:body => post_body,
|
3293
|
+
:auth_names => auth_names,
|
3294
|
+
:return_type => 'SoundAnnotationsResponse')
|
3295
|
+
if @api_client.config.debugging
|
3296
|
+
@api_client.config.logger.debug "API called: PdfApi#get_document_sound_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3297
|
+
end
|
3298
|
+
return data, status_code, headers
|
3299
|
+
end
|
3300
|
+
|
3301
|
+
# Read document square annotations.
|
3302
|
+
#
|
3303
|
+
# @param name The document name.
|
3304
|
+
# @param [Hash] opts the optional parameters
|
3305
|
+
# @option opts [String] :storage The document storage.
|
3306
|
+
# @option opts [String] :folder The document folder.
|
3307
|
+
# @return [SquareAnnotationsResponse]
|
3308
|
+
def get_document_square_annotations(name, opts = {})
|
3309
|
+
@api_client.request_token_if_needed
|
3310
|
+
data, _status_code, _headers = get_document_square_annotations_with_http_info(name, opts)
|
3311
|
+
rescue ApiError => error
|
3312
|
+
if error.code == 401
|
3313
|
+
@api_client.refresh_token
|
3314
|
+
data, _status_code, _headers = get_document_square_annotations_with_http_info(name, opts)
|
3315
|
+
else
|
3316
|
+
raise
|
3317
|
+
end
|
3318
|
+
return data
|
3319
|
+
end
|
3320
|
+
|
3321
|
+
# Read document square annotations.
|
3322
|
+
#
|
3323
|
+
# @param name The document name.
|
3324
|
+
# @param [Hash] opts the optional parameters
|
3325
|
+
# @option opts [String] :storage The document storage.
|
3326
|
+
# @option opts [String] :folder The document folder.
|
3327
|
+
# @return [Array<(SquareAnnotationsResponse, Fixnum, Hash)>] SquareAnnotationsResponse data, response status code and response headers
|
3328
|
+
def get_document_square_annotations_with_http_info(name, opts = {})
|
3329
|
+
if @api_client.config.debugging
|
3330
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_document_square_annotations ..."
|
3331
|
+
end
|
3332
|
+
# verify the required parameter 'name' is set
|
3333
|
+
if @api_client.config.client_side_validation && name.nil?
|
3334
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_square_annotations"
|
3335
|
+
end
|
3336
|
+
# resource path
|
3337
|
+
local_var_path = "/pdf/{name}/annotations/square".sub('{' + 'name' + '}', name.to_s)
|
3338
|
+
|
3339
|
+
# query parameters
|
3340
|
+
query_params = {}
|
3341
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
3342
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
3343
|
+
|
3344
|
+
# header parameters
|
3345
|
+
header_params = {}
|
3346
|
+
# HTTP header 'Accept' (if needed)
|
3347
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3348
|
+
# HTTP header 'Content-Type'
|
3349
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3350
|
+
|
3351
|
+
# form parameters
|
3352
|
+
form_params = {}
|
3353
|
+
# Fix header in file
|
3354
|
+
post_body = nil
|
3355
|
+
|
3356
|
+
# http body (model)
|
3357
|
+
# Fix header in file
|
3358
|
+
# post_body = nil
|
3359
|
+
auth_names = []
|
3360
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3361
|
+
:header_params => header_params,
|
3362
|
+
:query_params => query_params,
|
3363
|
+
:form_params => form_params,
|
3364
|
+
:body => post_body,
|
3365
|
+
:auth_names => auth_names,
|
3366
|
+
:return_type => 'SquareAnnotationsResponse')
|
3367
|
+
if @api_client.config.debugging
|
3368
|
+
@api_client.config.logger.debug "API called: PdfApi#get_document_square_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3369
|
+
end
|
3370
|
+
return data, status_code, headers
|
3371
|
+
end
|
3372
|
+
|
3373
|
+
# Read document squiggly annotations.
|
3374
|
+
#
|
3375
|
+
# @param name The document name.
|
3376
|
+
# @param [Hash] opts the optional parameters
|
3377
|
+
# @option opts [String] :storage The document storage.
|
3378
|
+
# @option opts [String] :folder The document folder.
|
3379
|
+
# @return [SquigglyAnnotationsResponse]
|
3380
|
+
def get_document_squiggly_annotations(name, opts = {})
|
3381
|
+
@api_client.request_token_if_needed
|
3382
|
+
data, _status_code, _headers = get_document_squiggly_annotations_with_http_info(name, opts)
|
2783
3383
|
rescue ApiError => error
|
2784
3384
|
if error.code == 401
|
2785
3385
|
@api_client.refresh_token
|
2786
|
-
data, _status_code, _headers =
|
3386
|
+
data, _status_code, _headers = get_document_squiggly_annotations_with_http_info(name, opts)
|
2787
3387
|
else
|
2788
3388
|
raise
|
2789
3389
|
end
|
2790
3390
|
return data
|
2791
3391
|
end
|
2792
3392
|
|
2793
|
-
# Read document
|
3393
|
+
# Read document squiggly annotations.
|
2794
3394
|
#
|
2795
3395
|
# @param name The document name.
|
2796
3396
|
# @param [Hash] opts the optional parameters
|
2797
3397
|
# @option opts [String] :storage The document storage.
|
2798
3398
|
# @option opts [String] :folder The document folder.
|
2799
|
-
# @return [Array<(
|
2800
|
-
def
|
3399
|
+
# @return [Array<(SquigglyAnnotationsResponse, Fixnum, Hash)>] SquigglyAnnotationsResponse data, response status code and response headers
|
3400
|
+
def get_document_squiggly_annotations_with_http_info(name, opts = {})
|
2801
3401
|
if @api_client.config.debugging
|
2802
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
3402
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_document_squiggly_annotations ..."
|
2803
3403
|
end
|
2804
3404
|
# verify the required parameter 'name' is set
|
2805
3405
|
if @api_client.config.client_side_validation && name.nil?
|
2806
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
3406
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_squiggly_annotations"
|
2807
3407
|
end
|
2808
3408
|
# resource path
|
2809
|
-
local_var_path = "/pdf/{name}/annotations/
|
3409
|
+
local_var_path = "/pdf/{name}/annotations/squiggly".sub('{' + 'name' + '}', name.to_s)
|
2810
3410
|
|
2811
3411
|
# query parameters
|
2812
3412
|
query_params = {}
|
@@ -2835,50 +3435,50 @@ module AsposePdfCloud
|
|
2835
3435
|
:form_params => form_params,
|
2836
3436
|
:body => post_body,
|
2837
3437
|
:auth_names => auth_names,
|
2838
|
-
:return_type => '
|
3438
|
+
:return_type => 'SquigglyAnnotationsResponse')
|
2839
3439
|
if @api_client.config.debugging
|
2840
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
3440
|
+
@api_client.config.logger.debug "API called: PdfApi#get_document_squiggly_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2841
3441
|
end
|
2842
3442
|
return data, status_code, headers
|
2843
3443
|
end
|
2844
3444
|
|
2845
|
-
# Read document
|
3445
|
+
# Read document stamp annotations.
|
2846
3446
|
#
|
2847
3447
|
# @param name The document name.
|
2848
3448
|
# @param [Hash] opts the optional parameters
|
2849
3449
|
# @option opts [String] :storage The document storage.
|
2850
3450
|
# @option opts [String] :folder The document folder.
|
2851
|
-
# @return [
|
2852
|
-
def
|
3451
|
+
# @return [StampAnnotationsResponse]
|
3452
|
+
def get_document_stamp_annotations(name, opts = {})
|
2853
3453
|
@api_client.request_token_if_needed
|
2854
|
-
data, _status_code, _headers =
|
3454
|
+
data, _status_code, _headers = get_document_stamp_annotations_with_http_info(name, opts)
|
2855
3455
|
rescue ApiError => error
|
2856
3456
|
if error.code == 401
|
2857
3457
|
@api_client.refresh_token
|
2858
|
-
data, _status_code, _headers =
|
3458
|
+
data, _status_code, _headers = get_document_stamp_annotations_with_http_info(name, opts)
|
2859
3459
|
else
|
2860
3460
|
raise
|
2861
3461
|
end
|
2862
3462
|
return data
|
2863
3463
|
end
|
2864
3464
|
|
2865
|
-
# Read document
|
3465
|
+
# Read document stamp annotations.
|
2866
3466
|
#
|
2867
3467
|
# @param name The document name.
|
2868
3468
|
# @param [Hash] opts the optional parameters
|
2869
3469
|
# @option opts [String] :storage The document storage.
|
2870
3470
|
# @option opts [String] :folder The document folder.
|
2871
|
-
# @return [Array<(
|
2872
|
-
def
|
3471
|
+
# @return [Array<(StampAnnotationsResponse, Fixnum, Hash)>] StampAnnotationsResponse data, response status code and response headers
|
3472
|
+
def get_document_stamp_annotations_with_http_info(name, opts = {})
|
2873
3473
|
if @api_client.config.debugging
|
2874
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
3474
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_document_stamp_annotations ..."
|
2875
3475
|
end
|
2876
3476
|
# verify the required parameter 'name' is set
|
2877
3477
|
if @api_client.config.client_side_validation && name.nil?
|
2878
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
3478
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_stamp_annotations"
|
2879
3479
|
end
|
2880
3480
|
# resource path
|
2881
|
-
local_var_path = "/pdf/{name}/annotations/
|
3481
|
+
local_var_path = "/pdf/{name}/annotations/stamp".sub('{' + 'name' + '}', name.to_s)
|
2882
3482
|
|
2883
3483
|
# query parameters
|
2884
3484
|
query_params = {}
|
@@ -2907,50 +3507,50 @@ module AsposePdfCloud
|
|
2907
3507
|
:form_params => form_params,
|
2908
3508
|
:body => post_body,
|
2909
3509
|
:auth_names => auth_names,
|
2910
|
-
:return_type => '
|
3510
|
+
:return_type => 'StampAnnotationsResponse')
|
2911
3511
|
if @api_client.config.debugging
|
2912
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
3512
|
+
@api_client.config.logger.debug "API called: PdfApi#get_document_stamp_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2913
3513
|
end
|
2914
3514
|
return data, status_code, headers
|
2915
3515
|
end
|
2916
3516
|
|
2917
|
-
# Read document
|
3517
|
+
# Read document stamps.
|
2918
3518
|
#
|
2919
3519
|
# @param name The document name.
|
2920
3520
|
# @param [Hash] opts the optional parameters
|
2921
3521
|
# @option opts [String] :storage The document storage.
|
2922
3522
|
# @option opts [String] :folder The document folder.
|
2923
|
-
# @return [
|
2924
|
-
def
|
3523
|
+
# @return [StampsInfoResponse]
|
3524
|
+
def get_document_stamps(name, opts = {})
|
2925
3525
|
@api_client.request_token_if_needed
|
2926
|
-
data, _status_code, _headers =
|
3526
|
+
data, _status_code, _headers = get_document_stamps_with_http_info(name, opts)
|
2927
3527
|
rescue ApiError => error
|
2928
3528
|
if error.code == 401
|
2929
3529
|
@api_client.refresh_token
|
2930
|
-
data, _status_code, _headers =
|
3530
|
+
data, _status_code, _headers = get_document_stamps_with_http_info(name, opts)
|
2931
3531
|
else
|
2932
3532
|
raise
|
2933
3533
|
end
|
2934
3534
|
return data
|
2935
3535
|
end
|
2936
3536
|
|
2937
|
-
# Read document
|
3537
|
+
# Read document stamps.
|
2938
3538
|
#
|
2939
3539
|
# @param name The document name.
|
2940
3540
|
# @param [Hash] opts the optional parameters
|
2941
3541
|
# @option opts [String] :storage The document storage.
|
2942
3542
|
# @option opts [String] :folder The document folder.
|
2943
|
-
# @return [Array<(
|
2944
|
-
def
|
3543
|
+
# @return [Array<(StampsInfoResponse, Fixnum, Hash)>] StampsInfoResponse data, response status code and response headers
|
3544
|
+
def get_document_stamps_with_http_info(name, opts = {})
|
2945
3545
|
if @api_client.config.debugging
|
2946
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
3546
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_document_stamps ..."
|
2947
3547
|
end
|
2948
3548
|
# verify the required parameter 'name' is set
|
2949
3549
|
if @api_client.config.client_side_validation && name.nil?
|
2950
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
3550
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_stamps"
|
2951
3551
|
end
|
2952
3552
|
# resource path
|
2953
|
-
local_var_path = "/pdf/{name}/
|
3553
|
+
local_var_path = "/pdf/{name}/stamps".sub('{' + 'name' + '}', name.to_s)
|
2954
3554
|
|
2955
3555
|
# query parameters
|
2956
3556
|
query_params = {}
|
@@ -2979,50 +3579,50 @@ module AsposePdfCloud
|
|
2979
3579
|
:form_params => form_params,
|
2980
3580
|
:body => post_body,
|
2981
3581
|
:auth_names => auth_names,
|
2982
|
-
:return_type => '
|
3582
|
+
:return_type => 'StampsInfoResponse')
|
2983
3583
|
if @api_client.config.debugging
|
2984
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
3584
|
+
@api_client.config.logger.debug "API called: PdfApi#get_document_stamps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2985
3585
|
end
|
2986
3586
|
return data, status_code, headers
|
2987
3587
|
end
|
2988
3588
|
|
2989
|
-
# Read document
|
3589
|
+
# Read document StrikeOut annotations.
|
2990
3590
|
#
|
2991
3591
|
# @param name The document name.
|
2992
3592
|
# @param [Hash] opts the optional parameters
|
2993
3593
|
# @option opts [String] :storage The document storage.
|
2994
3594
|
# @option opts [String] :folder The document folder.
|
2995
|
-
# @return [
|
2996
|
-
def
|
3595
|
+
# @return [StrikeOutAnnotationsResponse]
|
3596
|
+
def get_document_strike_out_annotations(name, opts = {})
|
2997
3597
|
@api_client.request_token_if_needed
|
2998
|
-
data, _status_code, _headers =
|
3598
|
+
data, _status_code, _headers = get_document_strike_out_annotations_with_http_info(name, opts)
|
2999
3599
|
rescue ApiError => error
|
3000
3600
|
if error.code == 401
|
3001
3601
|
@api_client.refresh_token
|
3002
|
-
data, _status_code, _headers =
|
3602
|
+
data, _status_code, _headers = get_document_strike_out_annotations_with_http_info(name, opts)
|
3003
3603
|
else
|
3004
3604
|
raise
|
3005
3605
|
end
|
3006
3606
|
return data
|
3007
3607
|
end
|
3008
3608
|
|
3009
|
-
# Read document
|
3609
|
+
# Read document StrikeOut annotations.
|
3010
3610
|
#
|
3011
3611
|
# @param name The document name.
|
3012
3612
|
# @param [Hash] opts the optional parameters
|
3013
3613
|
# @option opts [String] :storage The document storage.
|
3014
3614
|
# @option opts [String] :folder The document folder.
|
3015
|
-
# @return [Array<(
|
3016
|
-
def
|
3615
|
+
# @return [Array<(StrikeOutAnnotationsResponse, Fixnum, Hash)>] StrikeOutAnnotationsResponse data, response status code and response headers
|
3616
|
+
def get_document_strike_out_annotations_with_http_info(name, opts = {})
|
3017
3617
|
if @api_client.config.debugging
|
3018
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
3618
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_document_strike_out_annotations ..."
|
3019
3619
|
end
|
3020
3620
|
# verify the required parameter 'name' is set
|
3021
3621
|
if @api_client.config.client_side_validation && name.nil?
|
3022
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
3622
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_strike_out_annotations"
|
3023
3623
|
end
|
3024
3624
|
# resource path
|
3025
|
-
local_var_path = "/pdf/{name}/annotations/
|
3625
|
+
local_var_path = "/pdf/{name}/annotations/strikeout".sub('{' + 'name' + '}', name.to_s)
|
3026
3626
|
|
3027
3627
|
# query parameters
|
3028
3628
|
query_params = {}
|
@@ -3051,50 +3651,50 @@ module AsposePdfCloud
|
|
3051
3651
|
:form_params => form_params,
|
3052
3652
|
:body => post_body,
|
3053
3653
|
:auth_names => auth_names,
|
3054
|
-
:return_type => '
|
3654
|
+
:return_type => 'StrikeOutAnnotationsResponse')
|
3055
3655
|
if @api_client.config.debugging
|
3056
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
3656
|
+
@api_client.config.logger.debug "API called: PdfApi#get_document_strike_out_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3057
3657
|
end
|
3058
3658
|
return data, status_code, headers
|
3059
3659
|
end
|
3060
3660
|
|
3061
|
-
# Read document
|
3661
|
+
# Read document tables.
|
3062
3662
|
#
|
3063
|
-
# @param name
|
3663
|
+
# @param name
|
3064
3664
|
# @param [Hash] opts the optional parameters
|
3065
|
-
# @option opts [String] :storage
|
3066
|
-
# @option opts [String] :folder
|
3067
|
-
# @return [
|
3068
|
-
def
|
3665
|
+
# @option opts [String] :storage
|
3666
|
+
# @option opts [String] :folder
|
3667
|
+
# @return [TablesRecognizedResponse]
|
3668
|
+
def get_document_tables(name, opts = {})
|
3069
3669
|
@api_client.request_token_if_needed
|
3070
|
-
data, _status_code, _headers =
|
3670
|
+
data, _status_code, _headers = get_document_tables_with_http_info(name, opts)
|
3071
3671
|
rescue ApiError => error
|
3072
3672
|
if error.code == 401
|
3073
3673
|
@api_client.refresh_token
|
3074
|
-
data, _status_code, _headers =
|
3674
|
+
data, _status_code, _headers = get_document_tables_with_http_info(name, opts)
|
3075
3675
|
else
|
3076
3676
|
raise
|
3077
3677
|
end
|
3078
3678
|
return data
|
3079
3679
|
end
|
3080
3680
|
|
3081
|
-
# Read document
|
3681
|
+
# Read document tables.
|
3082
3682
|
#
|
3083
|
-
# @param name
|
3683
|
+
# @param name
|
3084
3684
|
# @param [Hash] opts the optional parameters
|
3085
|
-
# @option opts [String] :storage
|
3086
|
-
# @option opts [String] :folder
|
3087
|
-
# @return [Array<(
|
3088
|
-
def
|
3685
|
+
# @option opts [String] :storage
|
3686
|
+
# @option opts [String] :folder
|
3687
|
+
# @return [Array<(TablesRecognizedResponse, Fixnum, Hash)>] TablesRecognizedResponse data, response status code and response headers
|
3688
|
+
def get_document_tables_with_http_info(name, opts = {})
|
3089
3689
|
if @api_client.config.debugging
|
3090
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
3690
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_document_tables ..."
|
3091
3691
|
end
|
3092
3692
|
# verify the required parameter 'name' is set
|
3093
3693
|
if @api_client.config.client_side_validation && name.nil?
|
3094
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
3694
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_tables"
|
3095
3695
|
end
|
3096
3696
|
# resource path
|
3097
|
-
local_var_path = "/pdf/{name}/
|
3697
|
+
local_var_path = "/pdf/{name}/tables".sub('{' + 'name' + '}', name.to_s)
|
3098
3698
|
|
3099
3699
|
# query parameters
|
3100
3700
|
query_params = {}
|
@@ -3123,9 +3723,9 @@ module AsposePdfCloud
|
|
3123
3723
|
:form_params => form_params,
|
3124
3724
|
:body => post_body,
|
3125
3725
|
:auth_names => auth_names,
|
3126
|
-
:return_type => '
|
3726
|
+
:return_type => 'TablesRecognizedResponse')
|
3127
3727
|
if @api_client.config.debugging
|
3128
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
3728
|
+
@api_client.config.logger.debug "API called: PdfApi#get_document_tables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3129
3729
|
end
|
3130
3730
|
return data, status_code, headers
|
3131
3731
|
end
|
@@ -5348,7 +5948,7 @@ module AsposePdfCloud
|
|
5348
5948
|
return data, status_code, headers
|
5349
5949
|
end
|
5350
5950
|
|
5351
|
-
# Read
|
5951
|
+
# Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
|
5352
5952
|
#
|
5353
5953
|
# @param name The document name.
|
5354
5954
|
# @param page_number The page number.
|
@@ -5369,7 +5969,7 @@ module AsposePdfCloud
|
|
5369
5969
|
return data
|
5370
5970
|
end
|
5371
5971
|
|
5372
|
-
# Read
|
5972
|
+
# Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
|
5373
5973
|
#
|
5374
5974
|
# @param name The document name.
|
5375
5975
|
# @param page_number The page number.
|
@@ -7371,18 +7971,174 @@ module AsposePdfCloud
|
|
7371
7971
|
# @return [Array<(StampAnnotationsResponse, Fixnum, Hash)>] StampAnnotationsResponse data, response status code and response headers
|
7372
7972
|
def get_page_stamp_annotations_with_http_info(name, page_number, opts = {})
|
7373
7973
|
if @api_client.config.debugging
|
7374
|
-
@api_client.config.logger.debug "Calling API: PdfApi.get_page_stamp_annotations ..."
|
7974
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_page_stamp_annotations ..."
|
7975
|
+
end
|
7976
|
+
# verify the required parameter 'name' is set
|
7977
|
+
if @api_client.config.client_side_validation && name.nil?
|
7978
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_stamp_annotations"
|
7979
|
+
end
|
7980
|
+
# verify the required parameter 'page_number' is set
|
7981
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
7982
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_stamp_annotations"
|
7983
|
+
end
|
7984
|
+
# resource path
|
7985
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/stamp".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
7986
|
+
|
7987
|
+
# query parameters
|
7988
|
+
query_params = {}
|
7989
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7990
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7991
|
+
|
7992
|
+
# header parameters
|
7993
|
+
header_params = {}
|
7994
|
+
# HTTP header 'Accept' (if needed)
|
7995
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7996
|
+
# HTTP header 'Content-Type'
|
7997
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7998
|
+
|
7999
|
+
# form parameters
|
8000
|
+
form_params = {}
|
8001
|
+
# Fix header in file
|
8002
|
+
post_body = nil
|
8003
|
+
|
8004
|
+
# http body (model)
|
8005
|
+
# Fix header in file
|
8006
|
+
# post_body = nil
|
8007
|
+
auth_names = []
|
8008
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
8009
|
+
:header_params => header_params,
|
8010
|
+
:query_params => query_params,
|
8011
|
+
:form_params => form_params,
|
8012
|
+
:body => post_body,
|
8013
|
+
:auth_names => auth_names,
|
8014
|
+
:return_type => 'StampAnnotationsResponse')
|
8015
|
+
if @api_client.config.debugging
|
8016
|
+
@api_client.config.logger.debug "API called: PdfApi#get_page_stamp_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
8017
|
+
end
|
8018
|
+
return data, status_code, headers
|
8019
|
+
end
|
8020
|
+
|
8021
|
+
# Read page document stamps.
|
8022
|
+
#
|
8023
|
+
# @param name The document name.
|
8024
|
+
# @param page_number The page number.
|
8025
|
+
# @param [Hash] opts the optional parameters
|
8026
|
+
# @option opts [String] :storage The document storage.
|
8027
|
+
# @option opts [String] :folder The document folder.
|
8028
|
+
# @return [StampsInfoResponse]
|
8029
|
+
def get_page_stamps(name, page_number, opts = {})
|
8030
|
+
@api_client.request_token_if_needed
|
8031
|
+
data, _status_code, _headers = get_page_stamps_with_http_info(name, page_number, opts)
|
8032
|
+
rescue ApiError => error
|
8033
|
+
if error.code == 401
|
8034
|
+
@api_client.refresh_token
|
8035
|
+
data, _status_code, _headers = get_page_stamps_with_http_info(name, page_number, opts)
|
8036
|
+
else
|
8037
|
+
raise
|
8038
|
+
end
|
8039
|
+
return data
|
8040
|
+
end
|
8041
|
+
|
8042
|
+
# Read page document stamps.
|
8043
|
+
#
|
8044
|
+
# @param name The document name.
|
8045
|
+
# @param page_number The page number.
|
8046
|
+
# @param [Hash] opts the optional parameters
|
8047
|
+
# @option opts [String] :storage The document storage.
|
8048
|
+
# @option opts [String] :folder The document folder.
|
8049
|
+
# @return [Array<(StampsInfoResponse, Fixnum, Hash)>] StampsInfoResponse data, response status code and response headers
|
8050
|
+
def get_page_stamps_with_http_info(name, page_number, opts = {})
|
8051
|
+
if @api_client.config.debugging
|
8052
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_page_stamps ..."
|
8053
|
+
end
|
8054
|
+
# verify the required parameter 'name' is set
|
8055
|
+
if @api_client.config.client_side_validation && name.nil?
|
8056
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_stamps"
|
8057
|
+
end
|
8058
|
+
# verify the required parameter 'page_number' is set
|
8059
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
8060
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_stamps"
|
8061
|
+
end
|
8062
|
+
# resource path
|
8063
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/stamps".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
8064
|
+
|
8065
|
+
# query parameters
|
8066
|
+
query_params = {}
|
8067
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8068
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8069
|
+
|
8070
|
+
# header parameters
|
8071
|
+
header_params = {}
|
8072
|
+
# HTTP header 'Accept' (if needed)
|
8073
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
8074
|
+
# HTTP header 'Content-Type'
|
8075
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
8076
|
+
|
8077
|
+
# form parameters
|
8078
|
+
form_params = {}
|
8079
|
+
# Fix header in file
|
8080
|
+
post_body = nil
|
8081
|
+
|
8082
|
+
# http body (model)
|
8083
|
+
# Fix header in file
|
8084
|
+
# post_body = nil
|
8085
|
+
auth_names = []
|
8086
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
8087
|
+
:header_params => header_params,
|
8088
|
+
:query_params => query_params,
|
8089
|
+
:form_params => form_params,
|
8090
|
+
:body => post_body,
|
8091
|
+
:auth_names => auth_names,
|
8092
|
+
:return_type => 'StampsInfoResponse')
|
8093
|
+
if @api_client.config.debugging
|
8094
|
+
@api_client.config.logger.debug "API called: PdfApi#get_page_stamps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
8095
|
+
end
|
8096
|
+
return data, status_code, headers
|
8097
|
+
end
|
8098
|
+
|
8099
|
+
# Read document page StrikeOut annotations.
|
8100
|
+
#
|
8101
|
+
# @param name The document name.
|
8102
|
+
# @param page_number The page number.
|
8103
|
+
# @param [Hash] opts the optional parameters
|
8104
|
+
# @option opts [String] :storage The document storage.
|
8105
|
+
# @option opts [String] :folder The document folder.
|
8106
|
+
# @return [StrikeOutAnnotationsResponse]
|
8107
|
+
def get_page_strike_out_annotations(name, page_number, opts = {})
|
8108
|
+
@api_client.request_token_if_needed
|
8109
|
+
data, _status_code, _headers = get_page_strike_out_annotations_with_http_info(name, page_number, opts)
|
8110
|
+
rescue ApiError => error
|
8111
|
+
if error.code == 401
|
8112
|
+
@api_client.refresh_token
|
8113
|
+
data, _status_code, _headers = get_page_strike_out_annotations_with_http_info(name, page_number, opts)
|
8114
|
+
else
|
8115
|
+
raise
|
8116
|
+
end
|
8117
|
+
return data
|
8118
|
+
end
|
8119
|
+
|
8120
|
+
# Read document page StrikeOut annotations.
|
8121
|
+
#
|
8122
|
+
# @param name The document name.
|
8123
|
+
# @param page_number The page number.
|
8124
|
+
# @param [Hash] opts the optional parameters
|
8125
|
+
# @option opts [String] :storage The document storage.
|
8126
|
+
# @option opts [String] :folder The document folder.
|
8127
|
+
# @return [Array<(StrikeOutAnnotationsResponse, Fixnum, Hash)>] StrikeOutAnnotationsResponse data, response status code and response headers
|
8128
|
+
def get_page_strike_out_annotations_with_http_info(name, page_number, opts = {})
|
8129
|
+
if @api_client.config.debugging
|
8130
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_page_strike_out_annotations ..."
|
7375
8131
|
end
|
7376
8132
|
# verify the required parameter 'name' is set
|
7377
8133
|
if @api_client.config.client_side_validation && name.nil?
|
7378
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8134
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_strike_out_annotations"
|
7379
8135
|
end
|
7380
8136
|
# verify the required parameter 'page_number' is set
|
7381
8137
|
if @api_client.config.client_side_validation && page_number.nil?
|
7382
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.
|
8138
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_strike_out_annotations"
|
7383
8139
|
end
|
7384
8140
|
# resource path
|
7385
|
-
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/
|
8141
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/strikeout".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
7386
8142
|
|
7387
8143
|
# query parameters
|
7388
8144
|
query_params = {}
|
@@ -7411,56 +8167,56 @@ module AsposePdfCloud
|
|
7411
8167
|
:form_params => form_params,
|
7412
8168
|
:body => post_body,
|
7413
8169
|
:auth_names => auth_names,
|
7414
|
-
:return_type => '
|
8170
|
+
:return_type => 'StrikeOutAnnotationsResponse')
|
7415
8171
|
if @api_client.config.debugging
|
7416
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8172
|
+
@api_client.config.logger.debug "API called: PdfApi#get_page_strike_out_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7417
8173
|
end
|
7418
8174
|
return data, status_code, headers
|
7419
8175
|
end
|
7420
8176
|
|
7421
|
-
# Read document page
|
8177
|
+
# Read document page tables.
|
7422
8178
|
#
|
7423
|
-
# @param name
|
7424
|
-
# @param page_number
|
8179
|
+
# @param name
|
8180
|
+
# @param page_number
|
7425
8181
|
# @param [Hash] opts the optional parameters
|
7426
|
-
# @option opts [String] :storage
|
7427
|
-
# @option opts [String] :folder
|
7428
|
-
# @return [
|
7429
|
-
def
|
8182
|
+
# @option opts [String] :storage
|
8183
|
+
# @option opts [String] :folder
|
8184
|
+
# @return [TablesRecognizedResponse]
|
8185
|
+
def get_page_tables(name, page_number, opts = {})
|
7430
8186
|
@api_client.request_token_if_needed
|
7431
|
-
data, _status_code, _headers =
|
8187
|
+
data, _status_code, _headers = get_page_tables_with_http_info(name, page_number, opts)
|
7432
8188
|
rescue ApiError => error
|
7433
8189
|
if error.code == 401
|
7434
8190
|
@api_client.refresh_token
|
7435
|
-
data, _status_code, _headers =
|
8191
|
+
data, _status_code, _headers = get_page_tables_with_http_info(name, page_number, opts)
|
7436
8192
|
else
|
7437
8193
|
raise
|
7438
8194
|
end
|
7439
8195
|
return data
|
7440
8196
|
end
|
7441
8197
|
|
7442
|
-
# Read document page
|
8198
|
+
# Read document page tables.
|
7443
8199
|
#
|
7444
|
-
# @param name
|
7445
|
-
# @param page_number
|
8200
|
+
# @param name
|
8201
|
+
# @param page_number
|
7446
8202
|
# @param [Hash] opts the optional parameters
|
7447
|
-
# @option opts [String] :storage
|
7448
|
-
# @option opts [String] :folder
|
7449
|
-
# @return [Array<(
|
7450
|
-
def
|
8203
|
+
# @option opts [String] :storage
|
8204
|
+
# @option opts [String] :folder
|
8205
|
+
# @return [Array<(TablesRecognizedResponse, Fixnum, Hash)>] TablesRecognizedResponse data, response status code and response headers
|
8206
|
+
def get_page_tables_with_http_info(name, page_number, opts = {})
|
7451
8207
|
if @api_client.config.debugging
|
7452
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8208
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_page_tables ..."
|
7453
8209
|
end
|
7454
8210
|
# verify the required parameter 'name' is set
|
7455
8211
|
if @api_client.config.client_side_validation && name.nil?
|
7456
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8212
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_tables"
|
7457
8213
|
end
|
7458
8214
|
# verify the required parameter 'page_number' is set
|
7459
8215
|
if @api_client.config.client_side_validation && page_number.nil?
|
7460
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.
|
8216
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_tables"
|
7461
8217
|
end
|
7462
8218
|
# resource path
|
7463
|
-
local_var_path = "/pdf/{name}/pages/{pageNumber}/
|
8219
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/tables".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
7464
8220
|
|
7465
8221
|
# query parameters
|
7466
8222
|
query_params = {}
|
@@ -7489,9 +8245,9 @@ module AsposePdfCloud
|
|
7489
8245
|
:form_params => form_params,
|
7490
8246
|
:body => post_body,
|
7491
8247
|
:auth_names => auth_names,
|
7492
|
-
:return_type => '
|
8248
|
+
:return_type => 'TablesRecognizedResponse')
|
7493
8249
|
if @api_client.config.debugging
|
7494
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8250
|
+
@api_client.config.logger.debug "API called: PdfApi#get_page_tables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7495
8251
|
end
|
7496
8252
|
return data, status_code, headers
|
7497
8253
|
end
|
@@ -9394,7 +10150,7 @@ module AsposePdfCloud
|
|
9394
10150
|
# header parameters
|
9395
10151
|
header_params = {}
|
9396
10152
|
# HTTP header 'Accept' (if needed)
|
9397
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
10153
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
9398
10154
|
# HTTP header 'Content-Type'
|
9399
10155
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
9400
10156
|
|
@@ -9420,6 +10176,84 @@ module AsposePdfCloud
|
|
9420
10176
|
return data, status_code, headers
|
9421
10177
|
end
|
9422
10178
|
|
10179
|
+
# Read document page screen annotation by ID.
|
10180
|
+
#
|
10181
|
+
# @param name The document name.
|
10182
|
+
# @param annotation_id The annotation ID.
|
10183
|
+
# @param [Hash] opts the optional parameters
|
10184
|
+
# @option opts [String] :storage The document storage.
|
10185
|
+
# @option opts [String] :folder The document folder.
|
10186
|
+
# @return [File]
|
10187
|
+
def get_screen_annotation_data(name, annotation_id, opts = {})
|
10188
|
+
@api_client.request_token_if_needed
|
10189
|
+
data, _status_code, _headers = get_screen_annotation_data_with_http_info(name, annotation_id, opts)
|
10190
|
+
rescue ApiError => error
|
10191
|
+
if error.code == 401
|
10192
|
+
@api_client.refresh_token
|
10193
|
+
data, _status_code, _headers = get_screen_annotation_data_with_http_info(name, annotation_id, opts)
|
10194
|
+
else
|
10195
|
+
raise
|
10196
|
+
end
|
10197
|
+
return data
|
10198
|
+
end
|
10199
|
+
|
10200
|
+
# Read document page screen annotation by ID.
|
10201
|
+
#
|
10202
|
+
# @param name The document name.
|
10203
|
+
# @param annotation_id The annotation ID.
|
10204
|
+
# @param [Hash] opts the optional parameters
|
10205
|
+
# @option opts [String] :storage The document storage.
|
10206
|
+
# @option opts [String] :folder The document folder.
|
10207
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
10208
|
+
def get_screen_annotation_data_with_http_info(name, annotation_id, opts = {})
|
10209
|
+
if @api_client.config.debugging
|
10210
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_screen_annotation_data ..."
|
10211
|
+
end
|
10212
|
+
# verify the required parameter 'name' is set
|
10213
|
+
if @api_client.config.client_side_validation && name.nil?
|
10214
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_screen_annotation_data"
|
10215
|
+
end
|
10216
|
+
# verify the required parameter 'annotation_id' is set
|
10217
|
+
if @api_client.config.client_side_validation && annotation_id.nil?
|
10218
|
+
fail ArgumentError, "Missing the required parameter 'annotation_id' when calling PdfApi.get_screen_annotation_data"
|
10219
|
+
end
|
10220
|
+
# resource path
|
10221
|
+
local_var_path = "/pdf/{name}/annotations/screen/{annotationId}/data".sub('{' + 'name' + '}', name.to_s).sub('{' + 'annotationId' + '}', annotation_id.to_s)
|
10222
|
+
|
10223
|
+
# query parameters
|
10224
|
+
query_params = {}
|
10225
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
10226
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
10227
|
+
|
10228
|
+
# header parameters
|
10229
|
+
header_params = {}
|
10230
|
+
# HTTP header 'Accept' (if needed)
|
10231
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
10232
|
+
# HTTP header 'Content-Type'
|
10233
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
10234
|
+
|
10235
|
+
# form parameters
|
10236
|
+
form_params = {}
|
10237
|
+
# Fix header in file
|
10238
|
+
post_body = nil
|
10239
|
+
|
10240
|
+
# http body (model)
|
10241
|
+
# Fix header in file
|
10242
|
+
# post_body = nil
|
10243
|
+
auth_names = []
|
10244
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
10245
|
+
:header_params => header_params,
|
10246
|
+
:query_params => query_params,
|
10247
|
+
:form_params => form_params,
|
10248
|
+
:body => post_body,
|
10249
|
+
:auth_names => auth_names,
|
10250
|
+
:return_type => 'File')
|
10251
|
+
if @api_client.config.debugging
|
10252
|
+
@api_client.config.logger.debug "API called: PdfApi#get_screen_annotation_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10253
|
+
end
|
10254
|
+
return data, status_code, headers
|
10255
|
+
end
|
10256
|
+
|
9423
10257
|
# Read document page sound annotation by ID.
|
9424
10258
|
#
|
9425
10259
|
# @param name The document name.
|
@@ -10060,6 +10894,84 @@ module AsposePdfCloud
|
|
10060
10894
|
return data, status_code, headers
|
10061
10895
|
end
|
10062
10896
|
|
10897
|
+
# Read document page table by ID.
|
10898
|
+
#
|
10899
|
+
# @param name The document name.
|
10900
|
+
# @param table_id The table ID.
|
10901
|
+
# @param [Hash] opts the optional parameters
|
10902
|
+
# @option opts [String] :storage The document storage.
|
10903
|
+
# @option opts [String] :folder The document folder.
|
10904
|
+
# @return [TableRecognizedResponse]
|
10905
|
+
def get_table(name, table_id, opts = {})
|
10906
|
+
@api_client.request_token_if_needed
|
10907
|
+
data, _status_code, _headers = get_table_with_http_info(name, table_id, opts)
|
10908
|
+
rescue ApiError => error
|
10909
|
+
if error.code == 401
|
10910
|
+
@api_client.refresh_token
|
10911
|
+
data, _status_code, _headers = get_table_with_http_info(name, table_id, opts)
|
10912
|
+
else
|
10913
|
+
raise
|
10914
|
+
end
|
10915
|
+
return data
|
10916
|
+
end
|
10917
|
+
|
10918
|
+
# Read document page table by ID.
|
10919
|
+
#
|
10920
|
+
# @param name The document name.
|
10921
|
+
# @param table_id The table ID.
|
10922
|
+
# @param [Hash] opts the optional parameters
|
10923
|
+
# @option opts [String] :storage The document storage.
|
10924
|
+
# @option opts [String] :folder The document folder.
|
10925
|
+
# @return [Array<(TableRecognizedResponse, Fixnum, Hash)>] TableRecognizedResponse data, response status code and response headers
|
10926
|
+
def get_table_with_http_info(name, table_id, opts = {})
|
10927
|
+
if @api_client.config.debugging
|
10928
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_table ..."
|
10929
|
+
end
|
10930
|
+
# verify the required parameter 'name' is set
|
10931
|
+
if @api_client.config.client_side_validation && name.nil?
|
10932
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_table"
|
10933
|
+
end
|
10934
|
+
# verify the required parameter 'table_id' is set
|
10935
|
+
if @api_client.config.client_side_validation && table_id.nil?
|
10936
|
+
fail ArgumentError, "Missing the required parameter 'table_id' when calling PdfApi.get_table"
|
10937
|
+
end
|
10938
|
+
# resource path
|
10939
|
+
local_var_path = "/pdf/{name}/tables/{tableId}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'tableId' + '}', table_id.to_s)
|
10940
|
+
|
10941
|
+
# query parameters
|
10942
|
+
query_params = {}
|
10943
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
10944
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
10945
|
+
|
10946
|
+
# header parameters
|
10947
|
+
header_params = {}
|
10948
|
+
# HTTP header 'Accept' (if needed)
|
10949
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
10950
|
+
# HTTP header 'Content-Type'
|
10951
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
10952
|
+
|
10953
|
+
# form parameters
|
10954
|
+
form_params = {}
|
10955
|
+
# Fix header in file
|
10956
|
+
post_body = nil
|
10957
|
+
|
10958
|
+
# http body (model)
|
10959
|
+
# Fix header in file
|
10960
|
+
# post_body = nil
|
10961
|
+
auth_names = []
|
10962
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
10963
|
+
:header_params => header_params,
|
10964
|
+
:query_params => query_params,
|
10965
|
+
:form_params => form_params,
|
10966
|
+
:body => post_body,
|
10967
|
+
:auth_names => auth_names,
|
10968
|
+
:return_type => 'TableRecognizedResponse')
|
10969
|
+
if @api_client.config.debugging
|
10970
|
+
@api_client.config.logger.debug "API called: PdfApi#get_table\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10971
|
+
end
|
10972
|
+
return data, status_code, headers
|
10973
|
+
end
|
10974
|
+
|
10063
10975
|
# Read document text.
|
10064
10976
|
#
|
10065
10977
|
# @param name The document name.
|
@@ -11809,18 +12721,101 @@ module AsposePdfCloud
|
|
11809
12721
|
end
|
11810
12722
|
# verify the required parameter 'name' is set
|
11811
12723
|
if @api_client.config.client_side_validation && name.nil?
|
11812
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_file_attachment_annotations"
|
12724
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_file_attachment_annotations"
|
12725
|
+
end
|
12726
|
+
# verify the required parameter 'page_number' is set
|
12727
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
12728
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_file_attachment_annotations"
|
12729
|
+
end
|
12730
|
+
# verify the required parameter 'annotations' is set
|
12731
|
+
if @api_client.config.client_side_validation && annotations.nil?
|
12732
|
+
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.post_page_file_attachment_annotations"
|
12733
|
+
end
|
12734
|
+
# resource path
|
12735
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/fileattachment".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
12736
|
+
|
12737
|
+
# query parameters
|
12738
|
+
query_params = {}
|
12739
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12740
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12741
|
+
|
12742
|
+
# header parameters
|
12743
|
+
header_params = {}
|
12744
|
+
# HTTP header 'Accept' (if needed)
|
12745
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12746
|
+
# HTTP header 'Content-Type'
|
12747
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12748
|
+
|
12749
|
+
# form parameters
|
12750
|
+
form_params = {}
|
12751
|
+
# Fix header in file
|
12752
|
+
post_body = nil
|
12753
|
+
|
12754
|
+
# http body (model)
|
12755
|
+
post_body = @api_client.object_to_http_body(annotations)
|
12756
|
+
auth_names = []
|
12757
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12758
|
+
:header_params => header_params,
|
12759
|
+
:query_params => query_params,
|
12760
|
+
:form_params => form_params,
|
12761
|
+
:body => post_body,
|
12762
|
+
:auth_names => auth_names,
|
12763
|
+
:return_type => 'AsposeResponse')
|
12764
|
+
if @api_client.config.debugging
|
12765
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_file_attachment_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12766
|
+
end
|
12767
|
+
return data, status_code, headers
|
12768
|
+
end
|
12769
|
+
|
12770
|
+
# Add document page free text annotations.
|
12771
|
+
#
|
12772
|
+
# @param name The document name.
|
12773
|
+
# @param page_number The page number.
|
12774
|
+
# @param annotations The array of annotation.
|
12775
|
+
# @param [Hash] opts the optional parameters
|
12776
|
+
# @option opts [String] :storage The document storage.
|
12777
|
+
# @option opts [String] :folder The document folder.
|
12778
|
+
# @return [AsposeResponse]
|
12779
|
+
def post_page_free_text_annotations(name, page_number, annotations, opts = {})
|
12780
|
+
@api_client.request_token_if_needed
|
12781
|
+
data, _status_code, _headers = post_page_free_text_annotations_with_http_info(name, page_number, annotations, opts)
|
12782
|
+
rescue ApiError => error
|
12783
|
+
if error.code == 401
|
12784
|
+
@api_client.refresh_token
|
12785
|
+
data, _status_code, _headers = post_page_free_text_annotations_with_http_info(name, page_number, annotations, opts)
|
12786
|
+
else
|
12787
|
+
raise
|
12788
|
+
end
|
12789
|
+
return data
|
12790
|
+
end
|
12791
|
+
|
12792
|
+
# Add document page free text annotations.
|
12793
|
+
#
|
12794
|
+
# @param name The document name.
|
12795
|
+
# @param page_number The page number.
|
12796
|
+
# @param annotations The array of annotation.
|
12797
|
+
# @param [Hash] opts the optional parameters
|
12798
|
+
# @option opts [String] :storage The document storage.
|
12799
|
+
# @option opts [String] :folder The document folder.
|
12800
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12801
|
+
def post_page_free_text_annotations_with_http_info(name, page_number, annotations, opts = {})
|
12802
|
+
if @api_client.config.debugging
|
12803
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_free_text_annotations ..."
|
12804
|
+
end
|
12805
|
+
# verify the required parameter 'name' is set
|
12806
|
+
if @api_client.config.client_side_validation && name.nil?
|
12807
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_free_text_annotations"
|
11813
12808
|
end
|
11814
12809
|
# verify the required parameter 'page_number' is set
|
11815
12810
|
if @api_client.config.client_side_validation && page_number.nil?
|
11816
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.
|
12811
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_free_text_annotations"
|
11817
12812
|
end
|
11818
12813
|
# verify the required parameter 'annotations' is set
|
11819
12814
|
if @api_client.config.client_side_validation && annotations.nil?
|
11820
|
-
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.
|
12815
|
+
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.post_page_free_text_annotations"
|
11821
12816
|
end
|
11822
12817
|
# resource path
|
11823
|
-
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/
|
12818
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/freetext".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
11824
12819
|
|
11825
12820
|
# query parameters
|
11826
12821
|
query_params = {}
|
@@ -11850,12 +12845,12 @@ module AsposePdfCloud
|
|
11850
12845
|
:auth_names => auth_names,
|
11851
12846
|
:return_type => 'AsposeResponse')
|
11852
12847
|
if @api_client.config.debugging
|
11853
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
12848
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_free_text_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11854
12849
|
end
|
11855
12850
|
return data, status_code, headers
|
11856
12851
|
end
|
11857
12852
|
|
11858
|
-
# Add document page
|
12853
|
+
# Add document page highlight annotations.
|
11859
12854
|
#
|
11860
12855
|
# @param name The document name.
|
11861
12856
|
# @param page_number The page number.
|
@@ -11864,20 +12859,20 @@ module AsposePdfCloud
|
|
11864
12859
|
# @option opts [String] :storage The document storage.
|
11865
12860
|
# @option opts [String] :folder The document folder.
|
11866
12861
|
# @return [AsposeResponse]
|
11867
|
-
def
|
12862
|
+
def post_page_highlight_annotations(name, page_number, annotations, opts = {})
|
11868
12863
|
@api_client.request_token_if_needed
|
11869
|
-
data, _status_code, _headers =
|
12864
|
+
data, _status_code, _headers = post_page_highlight_annotations_with_http_info(name, page_number, annotations, opts)
|
11870
12865
|
rescue ApiError => error
|
11871
12866
|
if error.code == 401
|
11872
12867
|
@api_client.refresh_token
|
11873
|
-
data, _status_code, _headers =
|
12868
|
+
data, _status_code, _headers = post_page_highlight_annotations_with_http_info(name, page_number, annotations, opts)
|
11874
12869
|
else
|
11875
12870
|
raise
|
11876
12871
|
end
|
11877
12872
|
return data
|
11878
12873
|
end
|
11879
12874
|
|
11880
|
-
# Add document page
|
12875
|
+
# Add document page highlight annotations.
|
11881
12876
|
#
|
11882
12877
|
# @param name The document name.
|
11883
12878
|
# @param page_number The page number.
|
@@ -11886,24 +12881,24 @@ module AsposePdfCloud
|
|
11886
12881
|
# @option opts [String] :storage The document storage.
|
11887
12882
|
# @option opts [String] :folder The document folder.
|
11888
12883
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
11889
|
-
def
|
12884
|
+
def post_page_highlight_annotations_with_http_info(name, page_number, annotations, opts = {})
|
11890
12885
|
if @api_client.config.debugging
|
11891
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
12886
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_highlight_annotations ..."
|
11892
12887
|
end
|
11893
12888
|
# verify the required parameter 'name' is set
|
11894
12889
|
if @api_client.config.client_side_validation && name.nil?
|
11895
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
12890
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_highlight_annotations"
|
11896
12891
|
end
|
11897
12892
|
# verify the required parameter 'page_number' is set
|
11898
12893
|
if @api_client.config.client_side_validation && page_number.nil?
|
11899
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.
|
12894
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_highlight_annotations"
|
11900
12895
|
end
|
11901
12896
|
# verify the required parameter 'annotations' is set
|
11902
12897
|
if @api_client.config.client_side_validation && annotations.nil?
|
11903
|
-
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.
|
12898
|
+
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.post_page_highlight_annotations"
|
11904
12899
|
end
|
11905
12900
|
# resource path
|
11906
|
-
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/
|
12901
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/highlight".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
11907
12902
|
|
11908
12903
|
# query parameters
|
11909
12904
|
query_params = {}
|
@@ -11933,60 +12928,60 @@ module AsposePdfCloud
|
|
11933
12928
|
:auth_names => auth_names,
|
11934
12929
|
:return_type => 'AsposeResponse')
|
11935
12930
|
if @api_client.config.debugging
|
11936
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
12931
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_highlight_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11937
12932
|
end
|
11938
12933
|
return data, status_code, headers
|
11939
12934
|
end
|
11940
12935
|
|
11941
|
-
# Add document page
|
12936
|
+
# Add document page image stamps.
|
11942
12937
|
#
|
11943
12938
|
# @param name The document name.
|
11944
12939
|
# @param page_number The page number.
|
11945
|
-
# @param
|
12940
|
+
# @param stamps The array of stamp.
|
11946
12941
|
# @param [Hash] opts the optional parameters
|
11947
12942
|
# @option opts [String] :storage The document storage.
|
11948
12943
|
# @option opts [String] :folder The document folder.
|
11949
12944
|
# @return [AsposeResponse]
|
11950
|
-
def
|
12945
|
+
def post_page_image_stamps(name, page_number, stamps, opts = {})
|
11951
12946
|
@api_client.request_token_if_needed
|
11952
|
-
data, _status_code, _headers =
|
12947
|
+
data, _status_code, _headers = post_page_image_stamps_with_http_info(name, page_number, stamps, opts)
|
11953
12948
|
rescue ApiError => error
|
11954
12949
|
if error.code == 401
|
11955
12950
|
@api_client.refresh_token
|
11956
|
-
data, _status_code, _headers =
|
12951
|
+
data, _status_code, _headers = post_page_image_stamps_with_http_info(name, page_number, stamps, opts)
|
11957
12952
|
else
|
11958
12953
|
raise
|
11959
12954
|
end
|
11960
12955
|
return data
|
11961
12956
|
end
|
11962
12957
|
|
11963
|
-
# Add document page
|
12958
|
+
# Add document page image stamps.
|
11964
12959
|
#
|
11965
12960
|
# @param name The document name.
|
11966
12961
|
# @param page_number The page number.
|
11967
|
-
# @param
|
12962
|
+
# @param stamps The array of stamp.
|
11968
12963
|
# @param [Hash] opts the optional parameters
|
11969
12964
|
# @option opts [String] :storage The document storage.
|
11970
12965
|
# @option opts [String] :folder The document folder.
|
11971
12966
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
11972
|
-
def
|
12967
|
+
def post_page_image_stamps_with_http_info(name, page_number, stamps, opts = {})
|
11973
12968
|
if @api_client.config.debugging
|
11974
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
12969
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_image_stamps ..."
|
11975
12970
|
end
|
11976
12971
|
# verify the required parameter 'name' is set
|
11977
12972
|
if @api_client.config.client_side_validation && name.nil?
|
11978
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
12973
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_image_stamps"
|
11979
12974
|
end
|
11980
12975
|
# verify the required parameter 'page_number' is set
|
11981
12976
|
if @api_client.config.client_side_validation && page_number.nil?
|
11982
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.
|
12977
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_image_stamps"
|
11983
12978
|
end
|
11984
|
-
# verify the required parameter '
|
11985
|
-
if @api_client.config.client_side_validation &&
|
11986
|
-
fail ArgumentError, "Missing the required parameter '
|
12979
|
+
# verify the required parameter 'stamps' is set
|
12980
|
+
if @api_client.config.client_side_validation && stamps.nil?
|
12981
|
+
fail ArgumentError, "Missing the required parameter 'stamps' when calling PdfApi.post_page_image_stamps"
|
11987
12982
|
end
|
11988
12983
|
# resource path
|
11989
|
-
local_var_path = "/pdf/{name}/pages/{pageNumber}/
|
12984
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/stamps/image".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
11990
12985
|
|
11991
12986
|
# query parameters
|
11992
12987
|
query_params = {}
|
@@ -12006,7 +13001,7 @@ module AsposePdfCloud
|
|
12006
13001
|
post_body = nil
|
12007
13002
|
|
12008
13003
|
# http body (model)
|
12009
|
-
post_body = @api_client.object_to_http_body(
|
13004
|
+
post_body = @api_client.object_to_http_body(stamps)
|
12010
13005
|
auth_names = []
|
12011
13006
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12012
13007
|
:header_params => header_params,
|
@@ -12016,7 +13011,7 @@ module AsposePdfCloud
|
|
12016
13011
|
:auth_names => auth_names,
|
12017
13012
|
:return_type => 'AsposeResponse')
|
12018
13013
|
if @api_client.config.debugging
|
12019
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
13014
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_image_stamps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12020
13015
|
end
|
12021
13016
|
return data, status_code, headers
|
12022
13017
|
end
|
@@ -12353,6 +13348,89 @@ module AsposePdfCloud
|
|
12353
13348
|
return data, status_code, headers
|
12354
13349
|
end
|
12355
13350
|
|
13351
|
+
# Add document pdf page stamps.
|
13352
|
+
#
|
13353
|
+
# @param name The document name.
|
13354
|
+
# @param page_number The page number.
|
13355
|
+
# @param stamps The array of stamp.
|
13356
|
+
# @param [Hash] opts the optional parameters
|
13357
|
+
# @option opts [String] :storage The document storage.
|
13358
|
+
# @option opts [String] :folder The document folder.
|
13359
|
+
# @return [AsposeResponse]
|
13360
|
+
def post_page_pdf_page_stamps(name, page_number, stamps, opts = {})
|
13361
|
+
@api_client.request_token_if_needed
|
13362
|
+
data, _status_code, _headers = post_page_pdf_page_stamps_with_http_info(name, page_number, stamps, opts)
|
13363
|
+
rescue ApiError => error
|
13364
|
+
if error.code == 401
|
13365
|
+
@api_client.refresh_token
|
13366
|
+
data, _status_code, _headers = post_page_pdf_page_stamps_with_http_info(name, page_number, stamps, opts)
|
13367
|
+
else
|
13368
|
+
raise
|
13369
|
+
end
|
13370
|
+
return data
|
13371
|
+
end
|
13372
|
+
|
13373
|
+
# Add document pdf page stamps.
|
13374
|
+
#
|
13375
|
+
# @param name The document name.
|
13376
|
+
# @param page_number The page number.
|
13377
|
+
# @param stamps The array of stamp.
|
13378
|
+
# @param [Hash] opts the optional parameters
|
13379
|
+
# @option opts [String] :storage The document storage.
|
13380
|
+
# @option opts [String] :folder The document folder.
|
13381
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
13382
|
+
def post_page_pdf_page_stamps_with_http_info(name, page_number, stamps, opts = {})
|
13383
|
+
if @api_client.config.debugging
|
13384
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_pdf_page_stamps ..."
|
13385
|
+
end
|
13386
|
+
# verify the required parameter 'name' is set
|
13387
|
+
if @api_client.config.client_side_validation && name.nil?
|
13388
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_pdf_page_stamps"
|
13389
|
+
end
|
13390
|
+
# verify the required parameter 'page_number' is set
|
13391
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
13392
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_pdf_page_stamps"
|
13393
|
+
end
|
13394
|
+
# verify the required parameter 'stamps' is set
|
13395
|
+
if @api_client.config.client_side_validation && stamps.nil?
|
13396
|
+
fail ArgumentError, "Missing the required parameter 'stamps' when calling PdfApi.post_page_pdf_page_stamps"
|
13397
|
+
end
|
13398
|
+
# resource path
|
13399
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/stamps/pdfpage".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
13400
|
+
|
13401
|
+
# query parameters
|
13402
|
+
query_params = {}
|
13403
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
13404
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
13405
|
+
|
13406
|
+
# header parameters
|
13407
|
+
header_params = {}
|
13408
|
+
# HTTP header 'Accept' (if needed)
|
13409
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
13410
|
+
# HTTP header 'Content-Type'
|
13411
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
13412
|
+
|
13413
|
+
# form parameters
|
13414
|
+
form_params = {}
|
13415
|
+
# Fix header in file
|
13416
|
+
post_body = nil
|
13417
|
+
|
13418
|
+
# http body (model)
|
13419
|
+
post_body = @api_client.object_to_http_body(stamps)
|
13420
|
+
auth_names = []
|
13421
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
13422
|
+
:header_params => header_params,
|
13423
|
+
:query_params => query_params,
|
13424
|
+
:form_params => form_params,
|
13425
|
+
:body => post_body,
|
13426
|
+
:auth_names => auth_names,
|
13427
|
+
:return_type => 'AsposeResponse')
|
13428
|
+
if @api_client.config.debugging
|
13429
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_pdf_page_stamps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
13430
|
+
end
|
13431
|
+
return data, status_code, headers
|
13432
|
+
end
|
13433
|
+
|
12356
13434
|
# Add document page polyline annotations.
|
12357
13435
|
#
|
12358
13436
|
# @param name The document name.
|
@@ -13266,6 +14344,89 @@ module AsposePdfCloud
|
|
13266
14344
|
return data, status_code, headers
|
13267
14345
|
end
|
13268
14346
|
|
14347
|
+
# Add document page text stamps.
|
14348
|
+
#
|
14349
|
+
# @param name The document name.
|
14350
|
+
# @param page_number The page number.
|
14351
|
+
# @param stamps The array of stamp.
|
14352
|
+
# @param [Hash] opts the optional parameters
|
14353
|
+
# @option opts [String] :storage The document storage.
|
14354
|
+
# @option opts [String] :folder The document folder.
|
14355
|
+
# @return [AsposeResponse]
|
14356
|
+
def post_page_text_stamps(name, page_number, stamps, opts = {})
|
14357
|
+
@api_client.request_token_if_needed
|
14358
|
+
data, _status_code, _headers = post_page_text_stamps_with_http_info(name, page_number, stamps, opts)
|
14359
|
+
rescue ApiError => error
|
14360
|
+
if error.code == 401
|
14361
|
+
@api_client.refresh_token
|
14362
|
+
data, _status_code, _headers = post_page_text_stamps_with_http_info(name, page_number, stamps, opts)
|
14363
|
+
else
|
14364
|
+
raise
|
14365
|
+
end
|
14366
|
+
return data
|
14367
|
+
end
|
14368
|
+
|
14369
|
+
# Add document page text stamps.
|
14370
|
+
#
|
14371
|
+
# @param name The document name.
|
14372
|
+
# @param page_number The page number.
|
14373
|
+
# @param stamps The array of stamp.
|
14374
|
+
# @param [Hash] opts the optional parameters
|
14375
|
+
# @option opts [String] :storage The document storage.
|
14376
|
+
# @option opts [String] :folder The document folder.
|
14377
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
14378
|
+
def post_page_text_stamps_with_http_info(name, page_number, stamps, opts = {})
|
14379
|
+
if @api_client.config.debugging
|
14380
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_text_stamps ..."
|
14381
|
+
end
|
14382
|
+
# verify the required parameter 'name' is set
|
14383
|
+
if @api_client.config.client_side_validation && name.nil?
|
14384
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_text_stamps"
|
14385
|
+
end
|
14386
|
+
# verify the required parameter 'page_number' is set
|
14387
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
14388
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_text_stamps"
|
14389
|
+
end
|
14390
|
+
# verify the required parameter 'stamps' is set
|
14391
|
+
if @api_client.config.client_side_validation && stamps.nil?
|
14392
|
+
fail ArgumentError, "Missing the required parameter 'stamps' when calling PdfApi.post_page_text_stamps"
|
14393
|
+
end
|
14394
|
+
# resource path
|
14395
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/stamps/text".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
14396
|
+
|
14397
|
+
# query parameters
|
14398
|
+
query_params = {}
|
14399
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
14400
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
14401
|
+
|
14402
|
+
# header parameters
|
14403
|
+
header_params = {}
|
14404
|
+
# HTTP header 'Accept' (if needed)
|
14405
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
14406
|
+
# HTTP header 'Content-Type'
|
14407
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
14408
|
+
|
14409
|
+
# form parameters
|
14410
|
+
form_params = {}
|
14411
|
+
# Fix header in file
|
14412
|
+
post_body = nil
|
14413
|
+
|
14414
|
+
# http body (model)
|
14415
|
+
post_body = @api_client.object_to_http_body(stamps)
|
14416
|
+
auth_names = []
|
14417
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
14418
|
+
:header_params => header_params,
|
14419
|
+
:query_params => query_params,
|
14420
|
+
:form_params => form_params,
|
14421
|
+
:body => post_body,
|
14422
|
+
:auth_names => auth_names,
|
14423
|
+
:return_type => 'AsposeResponse')
|
14424
|
+
if @api_client.config.debugging
|
14425
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_text_stamps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14426
|
+
end
|
14427
|
+
return data, status_code, headers
|
14428
|
+
end
|
14429
|
+
|
13269
14430
|
# Add document page underline annotations.
|
13270
14431
|
#
|
13271
14432
|
# @param name The document name.
|
@@ -19774,6 +20935,91 @@ module AsposePdfCloud
|
|
19774
20935
|
return data, status_code, headers
|
19775
20936
|
end
|
19776
20937
|
|
20938
|
+
# Extract document screen annotation content to storage
|
20939
|
+
#
|
20940
|
+
# @param name The document name.
|
20941
|
+
# @param annotation_id The annotation ID.
|
20942
|
+
# @param out_file_path The output file path.
|
20943
|
+
# @param [Hash] opts the optional parameters
|
20944
|
+
# @option opts [String] :storage The document storage.
|
20945
|
+
# @option opts [String] :folder The document folder.
|
20946
|
+
# @return [AsposeResponse]
|
20947
|
+
def put_screen_annotation_data_extract(name, annotation_id, out_file_path, opts = {})
|
20948
|
+
@api_client.request_token_if_needed
|
20949
|
+
data, _status_code, _headers = put_screen_annotation_data_extract_with_http_info(name, annotation_id, out_file_path, opts)
|
20950
|
+
rescue ApiError => error
|
20951
|
+
if error.code == 401
|
20952
|
+
@api_client.refresh_token
|
20953
|
+
data, _status_code, _headers = put_screen_annotation_data_extract_with_http_info(name, annotation_id, out_file_path, opts)
|
20954
|
+
else
|
20955
|
+
raise
|
20956
|
+
end
|
20957
|
+
return data
|
20958
|
+
end
|
20959
|
+
|
20960
|
+
# Extract document screen annotation content to storage
|
20961
|
+
#
|
20962
|
+
# @param name The document name.
|
20963
|
+
# @param annotation_id The annotation ID.
|
20964
|
+
# @param out_file_path The output file path.
|
20965
|
+
# @param [Hash] opts the optional parameters
|
20966
|
+
# @option opts [String] :storage The document storage.
|
20967
|
+
# @option opts [String] :folder The document folder.
|
20968
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
20969
|
+
def put_screen_annotation_data_extract_with_http_info(name, annotation_id, out_file_path, opts = {})
|
20970
|
+
if @api_client.config.debugging
|
20971
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_screen_annotation_data_extract ..."
|
20972
|
+
end
|
20973
|
+
# verify the required parameter 'name' is set
|
20974
|
+
if @api_client.config.client_side_validation && name.nil?
|
20975
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_screen_annotation_data_extract"
|
20976
|
+
end
|
20977
|
+
# verify the required parameter 'annotation_id' is set
|
20978
|
+
if @api_client.config.client_side_validation && annotation_id.nil?
|
20979
|
+
fail ArgumentError, "Missing the required parameter 'annotation_id' when calling PdfApi.put_screen_annotation_data_extract"
|
20980
|
+
end
|
20981
|
+
# verify the required parameter 'out_file_path' is set
|
20982
|
+
if @api_client.config.client_side_validation && out_file_path.nil?
|
20983
|
+
fail ArgumentError, "Missing the required parameter 'out_file_path' when calling PdfApi.put_screen_annotation_data_extract"
|
20984
|
+
end
|
20985
|
+
# resource path
|
20986
|
+
local_var_path = "/pdf/{name}/annotations/screen/{annotationId}/data/extract".sub('{' + 'name' + '}', name.to_s).sub('{' + 'annotationId' + '}', annotation_id.to_s)
|
20987
|
+
|
20988
|
+
# query parameters
|
20989
|
+
query_params = {}
|
20990
|
+
query_params[:'outFilePath'] = out_file_path
|
20991
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
20992
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
20993
|
+
|
20994
|
+
# header parameters
|
20995
|
+
header_params = {}
|
20996
|
+
# HTTP header 'Accept' (if needed)
|
20997
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20998
|
+
# HTTP header 'Content-Type'
|
20999
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
21000
|
+
|
21001
|
+
# form parameters
|
21002
|
+
form_params = {}
|
21003
|
+
# Fix header in file
|
21004
|
+
post_body = nil
|
21005
|
+
|
21006
|
+
# http body (model)
|
21007
|
+
# Fix header in file
|
21008
|
+
# post_body = nil
|
21009
|
+
auth_names = []
|
21010
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
21011
|
+
:header_params => header_params,
|
21012
|
+
:query_params => query_params,
|
21013
|
+
:form_params => form_params,
|
21014
|
+
:body => post_body,
|
21015
|
+
:auth_names => auth_names,
|
21016
|
+
:return_type => 'AsposeResponse')
|
21017
|
+
if @api_client.config.debugging
|
21018
|
+
@api_client.config.logger.debug "API called: PdfApi#put_screen_annotation_data_extract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21019
|
+
end
|
21020
|
+
return data, status_code, headers
|
21021
|
+
end
|
21022
|
+
|
19777
21023
|
# Create searchable PDF document. Generate OCR layer for images in input PDF document.
|
19778
21024
|
#
|
19779
21025
|
# @param name The document name.
|