aspose_pdf_cloud 19.3.0 → 19.4.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/BorderCornerStyle.md +11 -0
- data/docs/BorderInfo.md +13 -0
- data/docs/Cell.md +21 -0
- data/docs/ColumnAdjustment.md +12 -0
- data/docs/CryptoAlgorithm.md +14 -0
- data/docs/GraphInfo.md +19 -0
- data/docs/ImageFooter.md +23 -0
- data/docs/ImageHeader.md +23 -0
- data/docs/ImageStamp.md +5 -5
- data/docs/MarginInfo.md +5 -5
- data/docs/PageNumberStamp.md +24 -0
- data/docs/PdfApi.md +451 -27
- data/docs/PdfPageStamp.md +5 -5
- data/docs/PermissionsFlags.md +17 -0
- data/docs/Row.md +19 -0
- data/docs/StampBase.md +0 -5
- data/docs/Table.md +31 -0
- data/docs/TableBroken.md +12 -0
- data/docs/TextFooter.md +23 -0
- data/docs/TextHeader.md +23 -0
- data/docs/TextStamp.md +5 -5
- data/lib/aspose_pdf_cloud.rb +15 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +1530 -215
- data/lib/aspose_pdf_cloud/models/border_corner_style.rb +44 -0
- data/lib/aspose_pdf_cloud/models/border_info.rb +241 -0
- data/lib/aspose_pdf_cloud/models/cell.rb +323 -0
- data/lib/aspose_pdf_cloud/models/column_adjustment.rb +45 -0
- data/lib/aspose_pdf_cloud/models/crypto_algorithm.rb +46 -0
- data/lib/aspose_pdf_cloud/models/graph_info.rb +303 -0
- data/lib/aspose_pdf_cloud/models/image_footer.rb +343 -0
- data/lib/aspose_pdf_cloud/models/image_header.rb +343 -0
- data/lib/aspose_pdf_cloud/models/image_stamp.rb +54 -54
- data/lib/aspose_pdf_cloud/models/margin_info.rb +5 -21
- data/lib/aspose_pdf_cloud/models/page_number_stamp.rb +353 -0
- data/lib/aspose_pdf_cloud/models/pdf_page_stamp.rb +54 -54
- data/lib/aspose_pdf_cloud/models/permissions_flags.rb +50 -0
- data/lib/aspose_pdf_cloud/models/row.rb +308 -0
- data/lib/aspose_pdf_cloud/models/stamp_base.rb +1 -51
- data/lib/aspose_pdf_cloud/models/table.rb +425 -0
- data/lib/aspose_pdf_cloud/models/table_broken.rb +45 -0
- data/lib/aspose_pdf_cloud/models/text_footer.rb +343 -0
- data/lib/aspose_pdf_cloud/models/text_header.rb +343 -0
- data/lib/aspose_pdf_cloud/models/text_stamp.rb +54 -54
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +407 -5
- data/test_data/4pagesEncrypted.pdf +0 -0
- metadata +33 -2
data/docs/PdfPageStamp.md
CHANGED
@@ -6,19 +6,19 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
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
9
|
**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
10
|
**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
11
|
**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
12
|
**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
13
|
**x_indent** | **Float** | Horizontal stamp coordinate, starting from the left. | [optional]
|
19
14
|
**y_indent** | **Float** | Vertical stamp coordinate, starting from the bottom. | [optional]
|
20
15
|
**zoom** | **Float** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
|
21
16
|
**file_name** | **String** | Gets or sets the file name. | [optional]
|
22
17
|
**page_index** | **Integer** | Gets or sets the index of the page. | [optional]
|
18
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
|
19
|
+
**bottom_margin** | **Float** | Gets or sets bottom margin of stamp. | [optional]
|
20
|
+
**left_margin** | **Float** | Gets or sets left margin of stamp. | [optional]
|
21
|
+
**top_margin** | **Float** | Gets or sets top margin of stamp. | [optional]
|
22
|
+
**right_margin** | **Float** | Gets or sets right margin of stamp. | [optional]
|
23
23
|
|
24
24
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# AsposePdfCloud::PermissionsFlags
|
2
|
+
This enum represents user's permissions for a pdf.
|
3
|
+
|
4
|
+
## Enum
|
5
|
+
Name | Type | Value | Description
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**PRINT_DOCUMENT** | **String** | 'PrintDocument' | (Security handlers of revision 2) Print the document. (Security handlers of revision 3 or greater) Print the document (possibly not at the highest quality level, depending on whether Aspose.Pdf.Permissions.PrintingQuality is also set).
|
8
|
+
**MODIFY_CONTENT** | **String** | 'ModifyContent' | Modify the contents of the document by operations other than those controlled by Aspose.Pdf.Permissions.ModifyTextAnnotations, Aspose.Pdf.Permissions.FillForm, and 11.
|
9
|
+
**EXTRACT_CONTENT** | **String** | 'ExtractContent' | (Security handlers of revision 2) Copy or otherwise extract text and graphics from the document, including extracting text and graphics (in support of accessibility to users with disabilities or for other purposes). (Security handlers of revision 3 or greater) Copy or otherwise extract text and graphics from the document by operations other than that controlled by Aspose.Pdf.Permissions.ExtractContentWithDisabilities.
|
10
|
+
**MODIFY_TEXT_ANNOTATIONS** | **String** | 'ModifyTextAnnotations' | Add or modify text annotations, fill in interactive form fields, and, if Aspose.Pdf.Permissions.ModifyContent is also set, create or modify interactive form fields (including signature fields).
|
11
|
+
**FILL_FORM** | **String** | 'FillForm' | (Security handlers of revision 3 or greater) Fill in existing interactive form fields (including signature fields), even if Aspose.Pdf.Permissions.ModifyTextAnnotations is clear.
|
12
|
+
**EXTRACT_CONTENT_WITH_DISABILITIES** | **String** | 'ExtractContentWithDisabilities' | (Security handlers of revision 3 or greater) Extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
|
13
|
+
**ASSEMBLE_DOCUMENT** | **String** | 'AssembleDocument' | (Security handlers of revision 3 or greater) Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if Aspose.Pdf.Permissions.ModifyContent is clear.
|
14
|
+
**PRINTING_QUALITY** | **String** | 'PrintingQuality' | (Security handlers of revision 3 or greater) Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this bit is clear (and bit 3 is set), printing is limited to a low-level representation of the appearance, possibly of degraded quality.
|
15
|
+
|
16
|
+
|
17
|
+
|
data/docs/Row.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# AsposePdfCloud::Row
|
2
|
+
Represents a row of the table.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**background_color** | [**Color**](Color.md) | Gets or sets the background color. | [optional]
|
8
|
+
**border** | [**BorderInfo**](BorderInfo.md) | Gets or sets the border. | [optional]
|
9
|
+
**cells** | [**Array<Cell>**](Cell.md) | Sets the cells of the row. |
|
10
|
+
**default_cell_border** | [**BorderInfo**](BorderInfo.md) | Gets default cell border; | [optional]
|
11
|
+
**min_row_height** | **Float** | Gets height for row; | [optional]
|
12
|
+
**fixed_row_height** | **Float** | Gets fixed row height - row may have fixed height; | [optional]
|
13
|
+
**is_in_new_page** | **BOOLEAN** | Gets fixed row is in new page - page with this property should be printed to next page Default false; | [optional]
|
14
|
+
**is_row_broken** | **BOOLEAN** | Gets is row can be broken between two pages | [optional]
|
15
|
+
**default_cell_text_state** | [**TextState**](TextState.md) | Gets or sets default text state for row cells | [optional]
|
16
|
+
**default_cell_padding** | [**MarginInfo**](MarginInfo.md) | Gets or sets default margin for row cells | [optional]
|
17
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets the vertical alignment. | [optional]
|
18
|
+
|
19
|
+
|
data/docs/StampBase.md
CHANGED
@@ -6,15 +6,10 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
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
9
|
**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
10
|
**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
11
|
**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
12
|
**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
13
|
**x_indent** | **Float** | Horizontal stamp coordinate, starting from the left. | [optional]
|
19
14
|
**y_indent** | **Float** | Vertical stamp coordinate, starting from the bottom. | [optional]
|
20
15
|
**zoom** | **Float** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
|
data/docs/Table.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# AsposePdfCloud::Table
|
2
|
+
Represents a table that can be added to the page.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
|
+
**alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the table alignment. | [optional]
|
9
|
+
**horizontal_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the table alignment. | [optional]
|
10
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the annotation. | [optional]
|
11
|
+
**top** | **Float** | Gets or sets the table top coordinate. | [optional]
|
12
|
+
**left** | **Float** | Gets or sets the table left coordinate. | [optional]
|
13
|
+
**default_cell_text_state** | [**TextState**](TextState.md) | Gets or sets the default cell text state. | [optional]
|
14
|
+
**default_cell_padding** | [**MarginInfo**](MarginInfo.md) | Gets or sets the default cell padding. | [optional]
|
15
|
+
**border** | [**BorderInfo**](BorderInfo.md) | Gets or sets the border. | [optional]
|
16
|
+
**rows** | [**Array<Row>**](Row.md) | Sets the rows of the table. | [optional]
|
17
|
+
**default_column_width** | **String** | Gets default cell border; | [optional]
|
18
|
+
**default_cell_border** | [**BorderInfo**](BorderInfo.md) | Gets default cell border; | [optional]
|
19
|
+
**broken** | [**TableBroken**](TableBroken.md) | Gets or sets table vertial broken; | [optional]
|
20
|
+
**column_widths** | **String** | Gets the column widths of the table. | [optional]
|
21
|
+
**repeating_rows_count** | **Integer** | Gets the first rows count repeated for several pages | [optional]
|
22
|
+
**repeating_columns_count** | **Integer** | Gets or sets the maximum columns count for table | [optional]
|
23
|
+
**repeating_rows_style** | [**TextState**](TextState.md) | Gets the style for repeating rows | [optional]
|
24
|
+
**corner_style** | [**BorderCornerStyle**](BorderCornerStyle.md) | Gets or sets the styles of the border corners | [optional]
|
25
|
+
**break_text** | [**TextRect**](TextRect.md) | Gets or sets break text for table | [optional]
|
26
|
+
**background_color** | [**Color**](Color.md) | Gets or sets table background color | [optional]
|
27
|
+
**is_borders_included** | **BOOLEAN** | Gets or sets border included in column widhts. | [optional]
|
28
|
+
**column_adjustment** | [**ColumnAdjustment**](ColumnAdjustment.md) | Gets or sets the table column adjustment. | [optional]
|
29
|
+
**z_index** | **Integer** | Gets ZIndex of the annotation. | [optional]
|
30
|
+
|
31
|
+
|
data/docs/TableBroken.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# AsposePdfCloud::TableBroken
|
2
|
+
Enumerates the table broken.
|
3
|
+
|
4
|
+
## Enum
|
5
|
+
Name | Type | Value | Description
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**NONE** | **String** | 'None' | No broken.
|
8
|
+
**VERTICAL** | **String** | 'Vertical' | Vertical broken.
|
9
|
+
**VERTICAL_IN_SAME_PAGE** | **String** | 'VerticalInSamePage' | Vertical broken in same page.
|
10
|
+
|
11
|
+
|
12
|
+
|
data/docs/TextFooter.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# AsposePdfCloud::TextFooter
|
2
|
+
Represents Pdf text header.
|
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
|
+
**horizontal_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional]
|
10
|
+
**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]
|
11
|
+
**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]
|
12
|
+
**rotate_angle** | **Float** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
|
13
|
+
**x_indent** | **Float** | Horizontal stamp coordinate, starting from the left. | [optional]
|
14
|
+
**y_indent** | **Float** | Vertical stamp coordinate, starting from the bottom. | [optional]
|
15
|
+
**zoom** | **Float** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
|
16
|
+
**text_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
|
17
|
+
**value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional]
|
18
|
+
**text_state** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional]
|
19
|
+
**bottom_margin** | **Float** | Gets or sets bottom margin of stamp. | [optional]
|
20
|
+
**left_margin** | **Float** | Gets or sets left margin of stamp. | [optional]
|
21
|
+
**right_margin** | **Float** | Gets or sets right margin of stamp. | [optional]
|
22
|
+
|
23
|
+
|
data/docs/TextHeader.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# AsposePdfCloud::TextHeader
|
2
|
+
Represents Pdf text header.
|
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
|
+
**horizontal_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional]
|
10
|
+
**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]
|
11
|
+
**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]
|
12
|
+
**rotate_angle** | **Float** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
|
13
|
+
**x_indent** | **Float** | Horizontal stamp coordinate, starting from the left. | [optional]
|
14
|
+
**y_indent** | **Float** | Vertical stamp coordinate, starting from the bottom. | [optional]
|
15
|
+
**zoom** | **Float** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
|
16
|
+
**text_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
|
17
|
+
**value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional]
|
18
|
+
**text_state** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional]
|
19
|
+
**left_margin** | **Float** | Gets or sets left margin of stamp. | [optional]
|
20
|
+
**top_margin** | **Float** | Gets or sets top margin of stamp. | [optional]
|
21
|
+
**right_margin** | **Float** | Gets or sets right margin of stamp. | [optional]
|
22
|
+
|
23
|
+
|
data/docs/TextStamp.md
CHANGED
@@ -6,20 +6,20 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**links** | [**Array<Link>**](Link.md) | Link to the document. | [optional]
|
8
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
9
|
**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
10
|
**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
11
|
**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
12
|
**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
13
|
**x_indent** | **Float** | Horizontal stamp coordinate, starting from the left. | [optional]
|
19
14
|
**y_indent** | **Float** | Vertical stamp coordinate, starting from the bottom. | [optional]
|
20
15
|
**zoom** | **Float** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
|
21
16
|
**text_alignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
|
22
17
|
**value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional]
|
23
18
|
**text_state** | [**TextState**](TextState.md) | Gets text properties of the stamp. See for details. | [optional]
|
19
|
+
**vertical_alignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
|
20
|
+
**bottom_margin** | **Float** | Gets or sets bottom margin of stamp. | [optional]
|
21
|
+
**left_margin** | **Float** | Gets or sets left margin of stamp. | [optional]
|
22
|
+
**top_margin** | **Float** | Gets or sets top margin of stamp. | [optional]
|
23
|
+
**right_margin** | **Float** | Gets or sets right margin of stamp. | [optional]
|
24
24
|
|
25
25
|
|
data/lib/aspose_pdf_cloud.rb
CHANGED
@@ -32,13 +32,18 @@ require_relative 'aspose_pdf_cloud/models/annotation_type'
|
|
32
32
|
require_relative 'aspose_pdf_cloud/models/antialiasing_processing_type'
|
33
33
|
require_relative 'aspose_pdf_cloud/models/append_document'
|
34
34
|
require_relative 'aspose_pdf_cloud/models/aspose_response'
|
35
|
+
require_relative 'aspose_pdf_cloud/models/border_corner_style'
|
36
|
+
require_relative 'aspose_pdf_cloud/models/border_info'
|
35
37
|
require_relative 'aspose_pdf_cloud/models/cap_style'
|
36
38
|
require_relative 'aspose_pdf_cloud/models/caption_position'
|
37
39
|
require_relative 'aspose_pdf_cloud/models/caret_symbol'
|
40
|
+
require_relative 'aspose_pdf_cloud/models/cell'
|
38
41
|
require_relative 'aspose_pdf_cloud/models/cell_recognized'
|
39
42
|
require_relative 'aspose_pdf_cloud/models/color'
|
40
43
|
require_relative 'aspose_pdf_cloud/models/color_depth'
|
44
|
+
require_relative 'aspose_pdf_cloud/models/column_adjustment'
|
41
45
|
require_relative 'aspose_pdf_cloud/models/compression_type'
|
46
|
+
require_relative 'aspose_pdf_cloud/models/crypto_algorithm'
|
42
47
|
require_relative 'aspose_pdf_cloud/models/disc_usage'
|
43
48
|
require_relative 'aspose_pdf_cloud/models/doc_format'
|
44
49
|
require_relative 'aspose_pdf_cloud/models/doc_recognition_mode'
|
@@ -52,6 +57,7 @@ require_relative 'aspose_pdf_cloud/models/font_encoding_rules'
|
|
52
57
|
require_relative 'aspose_pdf_cloud/models/font_saving_modes'
|
53
58
|
require_relative 'aspose_pdf_cloud/models/font_styles'
|
54
59
|
require_relative 'aspose_pdf_cloud/models/free_text_intent'
|
60
|
+
require_relative 'aspose_pdf_cloud/models/graph_info'
|
55
61
|
require_relative 'aspose_pdf_cloud/models/horizontal_alignment'
|
56
62
|
require_relative 'aspose_pdf_cloud/models/html_document_type'
|
57
63
|
require_relative 'aspose_pdf_cloud/models/html_markup_generation_modes'
|
@@ -74,12 +80,14 @@ require_relative 'aspose_pdf_cloud/models/page_word_count'
|
|
74
80
|
require_relative 'aspose_pdf_cloud/models/paragraph'
|
75
81
|
require_relative 'aspose_pdf_cloud/models/parts_embedding_modes'
|
76
82
|
require_relative 'aspose_pdf_cloud/models/pdf_a_type'
|
83
|
+
require_relative 'aspose_pdf_cloud/models/permissions_flags'
|
77
84
|
require_relative 'aspose_pdf_cloud/models/point'
|
78
85
|
require_relative 'aspose_pdf_cloud/models/poly_intent'
|
79
86
|
require_relative 'aspose_pdf_cloud/models/position'
|
80
87
|
require_relative 'aspose_pdf_cloud/models/raster_images_saving_modes'
|
81
88
|
require_relative 'aspose_pdf_cloud/models/rectangle'
|
82
89
|
require_relative 'aspose_pdf_cloud/models/rotation'
|
90
|
+
require_relative 'aspose_pdf_cloud/models/row'
|
83
91
|
require_relative 'aspose_pdf_cloud/models/row_recognized'
|
84
92
|
require_relative 'aspose_pdf_cloud/models/segment'
|
85
93
|
require_relative 'aspose_pdf_cloud/models/shape_type'
|
@@ -91,6 +99,7 @@ require_relative 'aspose_pdf_cloud/models/split_result'
|
|
91
99
|
require_relative 'aspose_pdf_cloud/models/stamp'
|
92
100
|
require_relative 'aspose_pdf_cloud/models/stamp_icon'
|
93
101
|
require_relative 'aspose_pdf_cloud/models/stamp_type'
|
102
|
+
require_relative 'aspose_pdf_cloud/models/table_broken'
|
94
103
|
require_relative 'aspose_pdf_cloud/models/text_horizontal_alignment'
|
95
104
|
require_relative 'aspose_pdf_cloud/models/text_icon'
|
96
105
|
require_relative 'aspose_pdf_cloud/models/text_line'
|
@@ -199,6 +208,7 @@ require_relative 'aspose_pdf_cloud/models/storage_exist_response'
|
|
199
208
|
require_relative 'aspose_pdf_cloud/models/strike_out_annotation_response'
|
200
209
|
require_relative 'aspose_pdf_cloud/models/strike_out_annotations'
|
201
210
|
require_relative 'aspose_pdf_cloud/models/strike_out_annotations_response'
|
211
|
+
require_relative 'aspose_pdf_cloud/models/table'
|
202
212
|
require_relative 'aspose_pdf_cloud/models/table_recognized'
|
203
213
|
require_relative 'aspose_pdf_cloud/models/table_recognized_response'
|
204
214
|
require_relative 'aspose_pdf_cloud/models/tables_recognized'
|
@@ -213,13 +223,18 @@ require_relative 'aspose_pdf_cloud/models/underline_annotations'
|
|
213
223
|
require_relative 'aspose_pdf_cloud/models/underline_annotations_response'
|
214
224
|
require_relative 'aspose_pdf_cloud/models/word_count_response'
|
215
225
|
require_relative 'aspose_pdf_cloud/models/annotation_info'
|
226
|
+
require_relative 'aspose_pdf_cloud/models/image_footer'
|
227
|
+
require_relative 'aspose_pdf_cloud/models/image_header'
|
216
228
|
require_relative 'aspose_pdf_cloud/models/image_stamp'
|
217
229
|
require_relative 'aspose_pdf_cloud/models/markup_annotation'
|
218
230
|
require_relative 'aspose_pdf_cloud/models/movie_annotation'
|
231
|
+
require_relative 'aspose_pdf_cloud/models/page_number_stamp'
|
219
232
|
require_relative 'aspose_pdf_cloud/models/pdf_page_stamp'
|
220
233
|
require_relative 'aspose_pdf_cloud/models/popup_annotation'
|
221
234
|
require_relative 'aspose_pdf_cloud/models/redaction_annotation'
|
222
235
|
require_relative 'aspose_pdf_cloud/models/screen_annotation'
|
236
|
+
require_relative 'aspose_pdf_cloud/models/text_footer'
|
237
|
+
require_relative 'aspose_pdf_cloud/models/text_header'
|
223
238
|
require_relative 'aspose_pdf_cloud/models/text_stamp'
|
224
239
|
require_relative 'aspose_pdf_cloud/models/caret_annotation'
|
225
240
|
require_relative 'aspose_pdf_cloud/models/common_figure_annotation'
|
@@ -1739,7 +1739,7 @@ module AsposePdfCloud
|
|
1739
1739
|
# header parameters
|
1740
1740
|
header_params = {}
|
1741
1741
|
# HTTP header 'Accept' (if needed)
|
1742
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
1742
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1743
1743
|
# HTTP header 'Content-Type'
|
1744
1744
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1745
1745
|
|
@@ -1987,81 +1987,6 @@ module AsposePdfCloud
|
|
1987
1987
|
return data, status_code, headers
|
1988
1988
|
end
|
1989
1989
|
|
1990
|
-
# Read document bookmark/bookmarks (including children).
|
1991
|
-
#
|
1992
|
-
# @param name The document name.
|
1993
|
-
# @param [Hash] opts the optional parameters
|
1994
|
-
# @option opts [String] :bookmark_path The bookmark path. Leave it empty if you want to get all the bookmarks in the document.
|
1995
|
-
# @option opts [String] :storage The document storage.
|
1996
|
-
# @option opts [String] :folder The document folder.
|
1997
|
-
# @return [File]
|
1998
|
-
def get_document_bookmarks(name, opts = {})
|
1999
|
-
@api_client.request_token_if_needed
|
2000
|
-
data, _status_code, _headers = get_document_bookmarks_with_http_info(name, opts)
|
2001
|
-
rescue ApiError => error
|
2002
|
-
if error.code == 401
|
2003
|
-
@api_client.refresh_token
|
2004
|
-
data, _status_code, _headers = get_document_bookmarks_with_http_info(name, opts)
|
2005
|
-
else
|
2006
|
-
raise
|
2007
|
-
end
|
2008
|
-
return data
|
2009
|
-
end
|
2010
|
-
|
2011
|
-
# Read document bookmark/bookmarks (including children).
|
2012
|
-
#
|
2013
|
-
# @param name The document name.
|
2014
|
-
# @param [Hash] opts the optional parameters
|
2015
|
-
# @option opts [String] :bookmark_path The bookmark path. Leave it empty if you want to get all the bookmarks in the document.
|
2016
|
-
# @option opts [String] :storage The document storage.
|
2017
|
-
# @option opts [String] :folder The document folder.
|
2018
|
-
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
2019
|
-
def get_document_bookmarks_with_http_info(name, opts = {})
|
2020
|
-
if @api_client.config.debugging
|
2021
|
-
@api_client.config.logger.debug "Calling API: PdfApi.get_document_bookmarks ..."
|
2022
|
-
end
|
2023
|
-
# verify the required parameter 'name' is set
|
2024
|
-
if @api_client.config.client_side_validation && name.nil?
|
2025
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_bookmarks"
|
2026
|
-
end
|
2027
|
-
# resource path
|
2028
|
-
local_var_path = "/pdf/{name}/bookmarks".sub('{' + 'name' + '}', name.to_s)
|
2029
|
-
|
2030
|
-
# query parameters
|
2031
|
-
query_params = {}
|
2032
|
-
query_params[:'bookmarkPath'] = opts[:'bookmark_path'] if !opts[:'bookmark_path'].nil?
|
2033
|
-
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
2034
|
-
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2035
|
-
|
2036
|
-
# header parameters
|
2037
|
-
header_params = {}
|
2038
|
-
# HTTP header 'Accept' (if needed)
|
2039
|
-
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
2040
|
-
# HTTP header 'Content-Type'
|
2041
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2042
|
-
|
2043
|
-
# form parameters
|
2044
|
-
form_params = {}
|
2045
|
-
# Fix header in file
|
2046
|
-
post_body = nil
|
2047
|
-
|
2048
|
-
# http body (model)
|
2049
|
-
# Fix header in file
|
2050
|
-
# post_body = nil
|
2051
|
-
auth_names = []
|
2052
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2053
|
-
:header_params => header_params,
|
2054
|
-
:query_params => query_params,
|
2055
|
-
:form_params => form_params,
|
2056
|
-
:body => post_body,
|
2057
|
-
:auth_names => auth_names,
|
2058
|
-
:return_type => 'File')
|
2059
|
-
if @api_client.config.debugging
|
2060
|
-
@api_client.config.logger.debug "API called: PdfApi#get_document_bookmarks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2061
|
-
end
|
2062
|
-
return data, status_code, headers
|
2063
|
-
end
|
2064
|
-
|
2065
1990
|
# Read document caret annotations.
|
2066
1991
|
#
|
2067
1992
|
# @param name The document name.
|
@@ -9572,6 +9497,90 @@ module AsposePdfCloud
|
|
9572
9497
|
return data, status_code, headers
|
9573
9498
|
end
|
9574
9499
|
|
9500
|
+
# Converts PDF document (located on storage) to XLSX format and returns resulting file in response content
|
9501
|
+
#
|
9502
|
+
# @param name The document name.
|
9503
|
+
# @param [Hash] opts the optional parameters
|
9504
|
+
# @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
|
9505
|
+
# @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
|
9506
|
+
# @option opts [Float] :scale_factor Scale factor
|
9507
|
+
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
9508
|
+
# @option opts [String] :folder The document folder.
|
9509
|
+
# @option opts [String] :storage The document storage.
|
9510
|
+
# @return [File]
|
9511
|
+
def get_pdf_in_storage_to_xlsx(name, opts = {})
|
9512
|
+
@api_client.request_token_if_needed
|
9513
|
+
data, _status_code, _headers = get_pdf_in_storage_to_xlsx_with_http_info(name, opts)
|
9514
|
+
rescue ApiError => error
|
9515
|
+
if error.code == 401
|
9516
|
+
@api_client.refresh_token
|
9517
|
+
data, _status_code, _headers = get_pdf_in_storage_to_xlsx_with_http_info(name, opts)
|
9518
|
+
else
|
9519
|
+
raise
|
9520
|
+
end
|
9521
|
+
return data
|
9522
|
+
end
|
9523
|
+
|
9524
|
+
# Converts PDF document (located on storage) to XLSX format and returns resulting file in response content
|
9525
|
+
#
|
9526
|
+
# @param name The document name.
|
9527
|
+
# @param [Hash] opts the optional parameters
|
9528
|
+
# @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
|
9529
|
+
# @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
|
9530
|
+
# @option opts [Float] :scale_factor Scale factor
|
9531
|
+
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
9532
|
+
# @option opts [String] :folder The document folder.
|
9533
|
+
# @option opts [String] :storage The document storage.
|
9534
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
9535
|
+
def get_pdf_in_storage_to_xlsx_with_http_info(name, opts = {})
|
9536
|
+
if @api_client.config.debugging
|
9537
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_xlsx ..."
|
9538
|
+
end
|
9539
|
+
# verify the required parameter 'name' is set
|
9540
|
+
if @api_client.config.client_side_validation && name.nil?
|
9541
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_xlsx"
|
9542
|
+
end
|
9543
|
+
# resource path
|
9544
|
+
local_var_path = "/pdf/{name}/convert/xlsx".sub('{' + 'name' + '}', name.to_s)
|
9545
|
+
|
9546
|
+
# query parameters
|
9547
|
+
query_params = {}
|
9548
|
+
query_params[:'insertBlankColumnAtFirst'] = opts[:'insert_blank_column_at_first'] if !opts[:'insert_blank_column_at_first'].nil?
|
9549
|
+
query_params[:'minimizeTheNumberOfWorksheets'] = opts[:'minimize_the_number_of_worksheets'] if !opts[:'minimize_the_number_of_worksheets'].nil?
|
9550
|
+
query_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
|
9551
|
+
query_params[:'uniformWorksheets'] = opts[:'uniform_worksheets'] if !opts[:'uniform_worksheets'].nil?
|
9552
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
9553
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
9554
|
+
|
9555
|
+
# header parameters
|
9556
|
+
header_params = {}
|
9557
|
+
# HTTP header 'Accept' (if needed)
|
9558
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
9559
|
+
# HTTP header 'Content-Type'
|
9560
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
9561
|
+
|
9562
|
+
# form parameters
|
9563
|
+
form_params = {}
|
9564
|
+
# Fix header in file
|
9565
|
+
post_body = nil
|
9566
|
+
|
9567
|
+
# http body (model)
|
9568
|
+
# Fix header in file
|
9569
|
+
# post_body = nil
|
9570
|
+
auth_names = []
|
9571
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
9572
|
+
:header_params => header_params,
|
9573
|
+
:query_params => query_params,
|
9574
|
+
:form_params => form_params,
|
9575
|
+
:body => post_body,
|
9576
|
+
:auth_names => auth_names,
|
9577
|
+
:return_type => 'File')
|
9578
|
+
if @api_client.config.debugging
|
9579
|
+
@api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9580
|
+
end
|
9581
|
+
return data, status_code, headers
|
9582
|
+
end
|
9583
|
+
|
9575
9584
|
# Converts PDF document (located on storage) to XML format and returns resulting file in response content
|
9576
9585
|
#
|
9577
9586
|
# @param name The document name.
|
@@ -11846,55 +11855,67 @@ module AsposePdfCloud
|
|
11846
11855
|
return data, status_code, headers
|
11847
11856
|
end
|
11848
11857
|
|
11849
|
-
#
|
11858
|
+
# Change document password in storage.
|
11850
11859
|
#
|
11851
|
-
# @param name
|
11852
|
-
# @param
|
11860
|
+
# @param name Document name.
|
11861
|
+
# @param owner_password Owner password (encrypted Base64).
|
11862
|
+
# @param new_user_password New user password (encrypted Base64).
|
11863
|
+
# @param new_owner_password New owner password (encrypted Base64).
|
11853
11864
|
# @param [Hash] opts the optional parameters
|
11854
|
-
# @option opts [Field] :field with the field data.
|
11855
11865
|
# @option opts [String] :storage The document storage.
|
11856
11866
|
# @option opts [String] :folder The document folder.
|
11857
11867
|
# @return [AsposeResponse]
|
11858
|
-
def
|
11868
|
+
def post_change_password_document_in_storage(name, owner_password, new_user_password, new_owner_password, opts = {})
|
11859
11869
|
@api_client.request_token_if_needed
|
11860
|
-
data, _status_code, _headers =
|
11870
|
+
data, _status_code, _headers = post_change_password_document_in_storage_with_http_info(name, owner_password, new_user_password, new_owner_password, opts)
|
11861
11871
|
rescue ApiError => error
|
11862
11872
|
if error.code == 401
|
11863
11873
|
@api_client.refresh_token
|
11864
|
-
data, _status_code, _headers =
|
11874
|
+
data, _status_code, _headers = post_change_password_document_in_storage_with_http_info(name, owner_password, new_user_password, new_owner_password, opts)
|
11865
11875
|
else
|
11866
11876
|
raise
|
11867
11877
|
end
|
11868
11878
|
return data
|
11869
11879
|
end
|
11870
11880
|
|
11871
|
-
#
|
11881
|
+
# Change document password in storage.
|
11872
11882
|
#
|
11873
|
-
# @param name
|
11874
|
-
# @param
|
11883
|
+
# @param name Document name.
|
11884
|
+
# @param owner_password Owner password (encrypted Base64).
|
11885
|
+
# @param new_user_password New user password (encrypted Base64).
|
11886
|
+
# @param new_owner_password New owner password (encrypted Base64).
|
11875
11887
|
# @param [Hash] opts the optional parameters
|
11876
|
-
# @option opts [Field] :field with the field data.
|
11877
11888
|
# @option opts [String] :storage The document storage.
|
11878
11889
|
# @option opts [String] :folder The document folder.
|
11879
11890
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
11880
|
-
def
|
11891
|
+
def post_change_password_document_in_storage_with_http_info(name, owner_password, new_user_password, new_owner_password, opts = {})
|
11881
11892
|
if @api_client.config.debugging
|
11882
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
11893
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_change_password_document_in_storage ..."
|
11883
11894
|
end
|
11884
11895
|
# verify the required parameter 'name' is set
|
11885
11896
|
if @api_client.config.client_side_validation && name.nil?
|
11886
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
11897
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_change_password_document_in_storage"
|
11887
11898
|
end
|
11888
|
-
# verify the required parameter '
|
11889
|
-
if @api_client.config.client_side_validation &&
|
11890
|
-
fail ArgumentError, "Missing the required parameter '
|
11899
|
+
# verify the required parameter 'owner_password' is set
|
11900
|
+
if @api_client.config.client_side_validation && owner_password.nil?
|
11901
|
+
fail ArgumentError, "Missing the required parameter 'owner_password' when calling PdfApi.post_change_password_document_in_storage"
|
11902
|
+
end
|
11903
|
+
# verify the required parameter 'new_user_password' is set
|
11904
|
+
if @api_client.config.client_side_validation && new_user_password.nil?
|
11905
|
+
fail ArgumentError, "Missing the required parameter 'new_user_password' when calling PdfApi.post_change_password_document_in_storage"
|
11906
|
+
end
|
11907
|
+
# verify the required parameter 'new_owner_password' is set
|
11908
|
+
if @api_client.config.client_side_validation && new_owner_password.nil?
|
11909
|
+
fail ArgumentError, "Missing the required parameter 'new_owner_password' when calling PdfApi.post_change_password_document_in_storage"
|
11891
11910
|
end
|
11892
11911
|
# resource path
|
11893
|
-
local_var_path = "/pdf/{name}/
|
11912
|
+
local_var_path = "/pdf/{name}/changepassword".sub('{' + 'name' + '}', name.to_s)
|
11894
11913
|
|
11895
11914
|
# query parameters
|
11896
11915
|
query_params = {}
|
11897
|
-
query_params[:'
|
11916
|
+
query_params[:'ownerPassword'] = owner_password
|
11917
|
+
query_params[:'newUserPassword'] = new_user_password
|
11918
|
+
query_params[:'newOwnerPassword'] = new_owner_password
|
11898
11919
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
11899
11920
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
11900
11921
|
|
@@ -11911,7 +11932,8 @@ module AsposePdfCloud
|
|
11911
11932
|
post_body = nil
|
11912
11933
|
|
11913
11934
|
# http body (model)
|
11914
|
-
|
11935
|
+
# Fix header in file
|
11936
|
+
# post_body = nil
|
11915
11937
|
auth_names = []
|
11916
11938
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
11917
11939
|
:header_params => header_params,
|
@@ -11921,57 +11943,60 @@ module AsposePdfCloud
|
|
11921
11943
|
:auth_names => auth_names,
|
11922
11944
|
:return_type => 'AsposeResponse')
|
11923
11945
|
if @api_client.config.debugging
|
11924
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
11946
|
+
@api_client.config.logger.debug "API called: PdfApi#post_change_password_document_in_storage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11925
11947
|
end
|
11926
11948
|
return data, status_code, headers
|
11927
11949
|
end
|
11928
11950
|
|
11929
|
-
#
|
11951
|
+
# Create field.
|
11930
11952
|
#
|
11931
|
-
# @param name
|
11932
|
-
# @param
|
11953
|
+
# @param name The document name.
|
11954
|
+
# @param page Document page number.
|
11933
11955
|
# @param [Hash] opts the optional parameters
|
11934
|
-
# @option opts [
|
11935
|
-
# @option opts [String] :
|
11936
|
-
# @
|
11937
|
-
|
11956
|
+
# @option opts [Field] :field with the field data.
|
11957
|
+
# @option opts [String] :storage The document storage.
|
11958
|
+
# @option opts [String] :folder The document folder.
|
11959
|
+
# @return [AsposeResponse]
|
11960
|
+
def post_create_field(name, page, opts = {})
|
11938
11961
|
@api_client.request_token_if_needed
|
11939
|
-
data, _status_code, _headers =
|
11962
|
+
data, _status_code, _headers = post_create_field_with_http_info(name, page, opts)
|
11940
11963
|
rescue ApiError => error
|
11941
11964
|
if error.code == 401
|
11942
11965
|
@api_client.refresh_token
|
11943
|
-
data, _status_code, _headers =
|
11966
|
+
data, _status_code, _headers = post_create_field_with_http_info(name, page, opts)
|
11944
11967
|
else
|
11945
11968
|
raise
|
11946
11969
|
end
|
11947
11970
|
return data
|
11948
11971
|
end
|
11949
11972
|
|
11950
|
-
#
|
11973
|
+
# Create field.
|
11951
11974
|
#
|
11952
|
-
# @param name
|
11953
|
-
# @param
|
11975
|
+
# @param name The document name.
|
11976
|
+
# @param page Document page number.
|
11954
11977
|
# @param [Hash] opts the optional parameters
|
11955
|
-
# @option opts [
|
11956
|
-
# @option opts [String] :
|
11957
|
-
# @
|
11958
|
-
|
11978
|
+
# @option opts [Field] :field with the field data.
|
11979
|
+
# @option opts [String] :storage The document storage.
|
11980
|
+
# @option opts [String] :folder The document folder.
|
11981
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
11982
|
+
def post_create_field_with_http_info(name, page, opts = {})
|
11959
11983
|
if @api_client.config.debugging
|
11960
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
11984
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_create_field ..."
|
11961
11985
|
end
|
11962
11986
|
# verify the required parameter 'name' is set
|
11963
11987
|
if @api_client.config.client_side_validation && name.nil?
|
11964
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
11988
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_create_field"
|
11965
11989
|
end
|
11966
|
-
# verify the required parameter '
|
11967
|
-
if @api_client.config.client_side_validation &&
|
11968
|
-
fail ArgumentError, "Missing the required parameter '
|
11990
|
+
# verify the required parameter 'page' is set
|
11991
|
+
if @api_client.config.client_side_validation && page.nil?
|
11992
|
+
fail ArgumentError, "Missing the required parameter 'page' when calling PdfApi.post_create_field"
|
11969
11993
|
end
|
11970
11994
|
# resource path
|
11971
|
-
local_var_path = "/pdf/{name}/
|
11995
|
+
local_var_path = "/pdf/{name}/fields".sub('{' + 'name' + '}', name.to_s)
|
11972
11996
|
|
11973
11997
|
# query parameters
|
11974
11998
|
query_params = {}
|
11999
|
+
query_params[:'page'] = page
|
11975
12000
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
11976
12001
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
11977
12002
|
|
@@ -11988,7 +12013,7 @@ module AsposePdfCloud
|
|
11988
12013
|
post_body = nil
|
11989
12014
|
|
11990
12015
|
# http body (model)
|
11991
|
-
post_body = @api_client.object_to_http_body(
|
12016
|
+
post_body = @api_client.object_to_http_body(opts[:'field'])
|
11992
12017
|
auth_names = []
|
11993
12018
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
11994
12019
|
:header_params => header_params,
|
@@ -11996,62 +12021,60 @@ module AsposePdfCloud
|
|
11996
12021
|
:form_params => form_params,
|
11997
12022
|
:body => post_body,
|
11998
12023
|
:auth_names => auth_names,
|
11999
|
-
:return_type => '
|
12024
|
+
:return_type => 'AsposeResponse')
|
12000
12025
|
if @api_client.config.debugging
|
12001
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
12026
|
+
@api_client.config.logger.debug "API called: PdfApi#post_create_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12002
12027
|
end
|
12003
12028
|
return data, status_code, headers
|
12004
12029
|
end
|
12005
12030
|
|
12006
|
-
#
|
12031
|
+
# Decrypt document in storage.
|
12007
12032
|
#
|
12008
|
-
# @param name
|
12033
|
+
# @param name Document name.
|
12034
|
+
# @param password The password (encrypted Base64).
|
12009
12035
|
# @param [Hash] opts the optional parameters
|
12010
|
-
# @option opts [BOOLEAN] :update_appearances If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance..
|
12011
|
-
# @option opts [BOOLEAN] :call_events If set, formatting and other JavaScript events will be called.
|
12012
|
-
# @option opts [BOOLEAN] :hide_buttons If set, buttons will be removed from flattened document.
|
12013
12036
|
# @option opts [String] :storage The document storage.
|
12014
12037
|
# @option opts [String] :folder The document folder.
|
12015
12038
|
# @return [AsposeResponse]
|
12016
|
-
def
|
12039
|
+
def post_decrypt_document_in_storage(name, password, opts = {})
|
12017
12040
|
@api_client.request_token_if_needed
|
12018
|
-
data, _status_code, _headers =
|
12041
|
+
data, _status_code, _headers = post_decrypt_document_in_storage_with_http_info(name, password, opts)
|
12019
12042
|
rescue ApiError => error
|
12020
12043
|
if error.code == 401
|
12021
12044
|
@api_client.refresh_token
|
12022
|
-
data, _status_code, _headers =
|
12045
|
+
data, _status_code, _headers = post_decrypt_document_in_storage_with_http_info(name, password, opts)
|
12023
12046
|
else
|
12024
12047
|
raise
|
12025
12048
|
end
|
12026
12049
|
return data
|
12027
12050
|
end
|
12028
12051
|
|
12029
|
-
#
|
12052
|
+
# Decrypt document in storage.
|
12030
12053
|
#
|
12031
|
-
# @param name
|
12054
|
+
# @param name Document name.
|
12055
|
+
# @param password The password (encrypted Base64).
|
12032
12056
|
# @param [Hash] opts the optional parameters
|
12033
|
-
# @option opts [BOOLEAN] :update_appearances If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance..
|
12034
|
-
# @option opts [BOOLEAN] :call_events If set, formatting and other JavaScript events will be called.
|
12035
|
-
# @option opts [BOOLEAN] :hide_buttons If set, buttons will be removed from flattened document.
|
12036
12057
|
# @option opts [String] :storage The document storage.
|
12037
12058
|
# @option opts [String] :folder The document folder.
|
12038
12059
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12039
|
-
def
|
12060
|
+
def post_decrypt_document_in_storage_with_http_info(name, password, opts = {})
|
12040
12061
|
if @api_client.config.debugging
|
12041
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
12062
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_decrypt_document_in_storage ..."
|
12042
12063
|
end
|
12043
12064
|
# verify the required parameter 'name' is set
|
12044
12065
|
if @api_client.config.client_side_validation && name.nil?
|
12045
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
12066
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_decrypt_document_in_storage"
|
12067
|
+
end
|
12068
|
+
# verify the required parameter 'password' is set
|
12069
|
+
if @api_client.config.client_side_validation && password.nil?
|
12070
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling PdfApi.post_decrypt_document_in_storage"
|
12046
12071
|
end
|
12047
12072
|
# resource path
|
12048
|
-
local_var_path = "/pdf/{name}/
|
12073
|
+
local_var_path = "/pdf/{name}/decrypt".sub('{' + 'name' + '}', name.to_s)
|
12049
12074
|
|
12050
12075
|
# query parameters
|
12051
12076
|
query_params = {}
|
12052
|
-
query_params[:'
|
12053
|
-
query_params[:'callEvents'] = opts[:'call_events'] if !opts[:'call_events'].nil?
|
12054
|
-
query_params[:'hideButtons'] = opts[:'hide_buttons'] if !opts[:'hide_buttons'].nil?
|
12077
|
+
query_params[:'password'] = password
|
12055
12078
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12056
12079
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12057
12080
|
|
@@ -12079,43 +12102,715 @@ module AsposePdfCloud
|
|
12079
12102
|
:auth_names => auth_names,
|
12080
12103
|
:return_type => 'AsposeResponse')
|
12081
12104
|
if @api_client.config.debugging
|
12082
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
12105
|
+
@api_client.config.logger.debug "API called: PdfApi#post_decrypt_document_in_storage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12083
12106
|
end
|
12084
12107
|
return data, status_code, headers
|
12085
12108
|
end
|
12086
12109
|
|
12087
|
-
#
|
12110
|
+
# Add document image footer.
|
12088
12111
|
#
|
12089
12112
|
# @param name The document name.
|
12090
|
-
# @param
|
12091
|
-
# @param llx Coordinate lower left X.
|
12092
|
-
# @param lly Coordinate lower left Y.
|
12093
|
-
# @param urx Coordinate upper right X.
|
12094
|
-
# @param ury Coordinate upper right Y.
|
12113
|
+
# @param image_footer The image footer.
|
12095
12114
|
# @param [Hash] opts the optional parameters
|
12096
|
-
# @option opts [
|
12115
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12116
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12097
12117
|
# @option opts [String] :storage The document storage.
|
12098
12118
|
# @option opts [String] :folder The document folder.
|
12099
|
-
# @option opts [File] :image Image file.
|
12100
12119
|
# @return [AsposeResponse]
|
12101
|
-
def
|
12120
|
+
def post_document_image_footer(name, image_footer, opts = {})
|
12102
12121
|
@api_client.request_token_if_needed
|
12103
|
-
data, _status_code, _headers =
|
12122
|
+
data, _status_code, _headers = post_document_image_footer_with_http_info(name, image_footer, opts)
|
12104
12123
|
rescue ApiError => error
|
12105
12124
|
if error.code == 401
|
12106
12125
|
@api_client.refresh_token
|
12107
|
-
data, _status_code, _headers =
|
12126
|
+
data, _status_code, _headers = post_document_image_footer_with_http_info(name, image_footer, opts)
|
12108
12127
|
else
|
12109
12128
|
raise
|
12110
12129
|
end
|
12111
12130
|
return data
|
12112
12131
|
end
|
12113
12132
|
|
12114
|
-
#
|
12133
|
+
# Add document image footer.
|
12115
12134
|
#
|
12116
12135
|
# @param name The document name.
|
12117
|
-
# @param
|
12118
|
-
# @param
|
12136
|
+
# @param image_footer The image footer.
|
12137
|
+
# @param [Hash] opts the optional parameters
|
12138
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12139
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12140
|
+
# @option opts [String] :storage The document storage.
|
12141
|
+
# @option opts [String] :folder The document folder.
|
12142
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12143
|
+
def post_document_image_footer_with_http_info(name, image_footer, opts = {})
|
12144
|
+
if @api_client.config.debugging
|
12145
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_document_image_footer ..."
|
12146
|
+
end
|
12147
|
+
# verify the required parameter 'name' is set
|
12148
|
+
if @api_client.config.client_side_validation && name.nil?
|
12149
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_image_footer"
|
12150
|
+
end
|
12151
|
+
# verify the required parameter 'image_footer' is set
|
12152
|
+
if @api_client.config.client_side_validation && image_footer.nil?
|
12153
|
+
fail ArgumentError, "Missing the required parameter 'image_footer' when calling PdfApi.post_document_image_footer"
|
12154
|
+
end
|
12155
|
+
# resource path
|
12156
|
+
local_var_path = "/pdf/{name}/footer/image".sub('{' + 'name' + '}', name.to_s)
|
12157
|
+
|
12158
|
+
# query parameters
|
12159
|
+
query_params = {}
|
12160
|
+
query_params[:'startPageNumber'] = opts[:'start_page_number'] if !opts[:'start_page_number'].nil?
|
12161
|
+
query_params[:'endPageNumber'] = opts[:'end_page_number'] if !opts[:'end_page_number'].nil?
|
12162
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12163
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12164
|
+
|
12165
|
+
# header parameters
|
12166
|
+
header_params = {}
|
12167
|
+
# HTTP header 'Accept' (if needed)
|
12168
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12169
|
+
# HTTP header 'Content-Type'
|
12170
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12171
|
+
|
12172
|
+
# form parameters
|
12173
|
+
form_params = {}
|
12174
|
+
# Fix header in file
|
12175
|
+
post_body = nil
|
12176
|
+
|
12177
|
+
# http body (model)
|
12178
|
+
post_body = @api_client.object_to_http_body(image_footer)
|
12179
|
+
auth_names = []
|
12180
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12181
|
+
:header_params => header_params,
|
12182
|
+
:query_params => query_params,
|
12183
|
+
:form_params => form_params,
|
12184
|
+
:body => post_body,
|
12185
|
+
:auth_names => auth_names,
|
12186
|
+
:return_type => 'AsposeResponse')
|
12187
|
+
if @api_client.config.debugging
|
12188
|
+
@api_client.config.logger.debug "API called: PdfApi#post_document_image_footer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12189
|
+
end
|
12190
|
+
return data, status_code, headers
|
12191
|
+
end
|
12192
|
+
|
12193
|
+
# Add document image header.
|
12194
|
+
#
|
12195
|
+
# @param name The document name.
|
12196
|
+
# @param image_header The image header.
|
12197
|
+
# @param [Hash] opts the optional parameters
|
12198
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12199
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12200
|
+
# @option opts [String] :storage The document storage.
|
12201
|
+
# @option opts [String] :folder The document folder.
|
12202
|
+
# @return [AsposeResponse]
|
12203
|
+
def post_document_image_header(name, image_header, opts = {})
|
12204
|
+
@api_client.request_token_if_needed
|
12205
|
+
data, _status_code, _headers = post_document_image_header_with_http_info(name, image_header, opts)
|
12206
|
+
rescue ApiError => error
|
12207
|
+
if error.code == 401
|
12208
|
+
@api_client.refresh_token
|
12209
|
+
data, _status_code, _headers = post_document_image_header_with_http_info(name, image_header, opts)
|
12210
|
+
else
|
12211
|
+
raise
|
12212
|
+
end
|
12213
|
+
return data
|
12214
|
+
end
|
12215
|
+
|
12216
|
+
# Add document image header.
|
12217
|
+
#
|
12218
|
+
# @param name The document name.
|
12219
|
+
# @param image_header The image header.
|
12220
|
+
# @param [Hash] opts the optional parameters
|
12221
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12222
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12223
|
+
# @option opts [String] :storage The document storage.
|
12224
|
+
# @option opts [String] :folder The document folder.
|
12225
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12226
|
+
def post_document_image_header_with_http_info(name, image_header, opts = {})
|
12227
|
+
if @api_client.config.debugging
|
12228
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_document_image_header ..."
|
12229
|
+
end
|
12230
|
+
# verify the required parameter 'name' is set
|
12231
|
+
if @api_client.config.client_side_validation && name.nil?
|
12232
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_image_header"
|
12233
|
+
end
|
12234
|
+
# verify the required parameter 'image_header' is set
|
12235
|
+
if @api_client.config.client_side_validation && image_header.nil?
|
12236
|
+
fail ArgumentError, "Missing the required parameter 'image_header' when calling PdfApi.post_document_image_header"
|
12237
|
+
end
|
12238
|
+
# resource path
|
12239
|
+
local_var_path = "/pdf/{name}/header/image".sub('{' + 'name' + '}', name.to_s)
|
12240
|
+
|
12241
|
+
# query parameters
|
12242
|
+
query_params = {}
|
12243
|
+
query_params[:'startPageNumber'] = opts[:'start_page_number'] if !opts[:'start_page_number'].nil?
|
12244
|
+
query_params[:'endPageNumber'] = opts[:'end_page_number'] if !opts[:'end_page_number'].nil?
|
12245
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12246
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12247
|
+
|
12248
|
+
# header parameters
|
12249
|
+
header_params = {}
|
12250
|
+
# HTTP header 'Accept' (if needed)
|
12251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12252
|
+
# HTTP header 'Content-Type'
|
12253
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12254
|
+
|
12255
|
+
# form parameters
|
12256
|
+
form_params = {}
|
12257
|
+
# Fix header in file
|
12258
|
+
post_body = nil
|
12259
|
+
|
12260
|
+
# http body (model)
|
12261
|
+
post_body = @api_client.object_to_http_body(image_header)
|
12262
|
+
auth_names = []
|
12263
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12264
|
+
:header_params => header_params,
|
12265
|
+
:query_params => query_params,
|
12266
|
+
:form_params => form_params,
|
12267
|
+
:body => post_body,
|
12268
|
+
:auth_names => auth_names,
|
12269
|
+
:return_type => 'AsposeResponse')
|
12270
|
+
if @api_client.config.debugging
|
12271
|
+
@api_client.config.logger.debug "API called: PdfApi#post_document_image_header\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12272
|
+
end
|
12273
|
+
return data, status_code, headers
|
12274
|
+
end
|
12275
|
+
|
12276
|
+
# Add document page number stamps.
|
12277
|
+
#
|
12278
|
+
# @param name The document name.
|
12279
|
+
# @param stamp The stamp.
|
12280
|
+
# @param [Hash] opts the optional parameters
|
12281
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12282
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12283
|
+
# @option opts [String] :storage The document storage.
|
12284
|
+
# @option opts [String] :folder The document folder.
|
12285
|
+
# @return [AsposeResponse]
|
12286
|
+
def post_document_page_number_stamps(name, stamp, opts = {})
|
12287
|
+
@api_client.request_token_if_needed
|
12288
|
+
data, _status_code, _headers = post_document_page_number_stamps_with_http_info(name, stamp, opts)
|
12289
|
+
rescue ApiError => error
|
12290
|
+
if error.code == 401
|
12291
|
+
@api_client.refresh_token
|
12292
|
+
data, _status_code, _headers = post_document_page_number_stamps_with_http_info(name, stamp, opts)
|
12293
|
+
else
|
12294
|
+
raise
|
12295
|
+
end
|
12296
|
+
return data
|
12297
|
+
end
|
12298
|
+
|
12299
|
+
# Add document page number stamps.
|
12300
|
+
#
|
12301
|
+
# @param name The document name.
|
12302
|
+
# @param stamp The stamp.
|
12303
|
+
# @param [Hash] opts the optional parameters
|
12304
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12305
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12306
|
+
# @option opts [String] :storage The document storage.
|
12307
|
+
# @option opts [String] :folder The document folder.
|
12308
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12309
|
+
def post_document_page_number_stamps_with_http_info(name, stamp, opts = {})
|
12310
|
+
if @api_client.config.debugging
|
12311
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_document_page_number_stamps ..."
|
12312
|
+
end
|
12313
|
+
# verify the required parameter 'name' is set
|
12314
|
+
if @api_client.config.client_side_validation && name.nil?
|
12315
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_page_number_stamps"
|
12316
|
+
end
|
12317
|
+
# verify the required parameter 'stamp' is set
|
12318
|
+
if @api_client.config.client_side_validation && stamp.nil?
|
12319
|
+
fail ArgumentError, "Missing the required parameter 'stamp' when calling PdfApi.post_document_page_number_stamps"
|
12320
|
+
end
|
12321
|
+
# resource path
|
12322
|
+
local_var_path = "/pdf/{name}/stamps/pagenumber".sub('{' + 'name' + '}', name.to_s)
|
12323
|
+
|
12324
|
+
# query parameters
|
12325
|
+
query_params = {}
|
12326
|
+
query_params[:'startPageNumber'] = opts[:'start_page_number'] if !opts[:'start_page_number'].nil?
|
12327
|
+
query_params[:'endPageNumber'] = opts[:'end_page_number'] if !opts[:'end_page_number'].nil?
|
12328
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12329
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12330
|
+
|
12331
|
+
# header parameters
|
12332
|
+
header_params = {}
|
12333
|
+
# HTTP header 'Accept' (if needed)
|
12334
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12335
|
+
# HTTP header 'Content-Type'
|
12336
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12337
|
+
|
12338
|
+
# form parameters
|
12339
|
+
form_params = {}
|
12340
|
+
# Fix header in file
|
12341
|
+
post_body = nil
|
12342
|
+
|
12343
|
+
# http body (model)
|
12344
|
+
post_body = @api_client.object_to_http_body(stamp)
|
12345
|
+
auth_names = []
|
12346
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12347
|
+
:header_params => header_params,
|
12348
|
+
:query_params => query_params,
|
12349
|
+
:form_params => form_params,
|
12350
|
+
:body => post_body,
|
12351
|
+
:auth_names => auth_names,
|
12352
|
+
:return_type => 'AsposeResponse')
|
12353
|
+
if @api_client.config.debugging
|
12354
|
+
@api_client.config.logger.debug "API called: PdfApi#post_document_page_number_stamps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12355
|
+
end
|
12356
|
+
return data, status_code, headers
|
12357
|
+
end
|
12358
|
+
|
12359
|
+
# Add document text footer.
|
12360
|
+
#
|
12361
|
+
# @param name The document name.
|
12362
|
+
# @param text_footer The text footer.
|
12363
|
+
# @param [Hash] opts the optional parameters
|
12364
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12365
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12366
|
+
# @option opts [String] :storage The document storage.
|
12367
|
+
# @option opts [String] :folder The document folder.
|
12368
|
+
# @return [AsposeResponse]
|
12369
|
+
def post_document_text_footer(name, text_footer, opts = {})
|
12370
|
+
@api_client.request_token_if_needed
|
12371
|
+
data, _status_code, _headers = post_document_text_footer_with_http_info(name, text_footer, opts)
|
12372
|
+
rescue ApiError => error
|
12373
|
+
if error.code == 401
|
12374
|
+
@api_client.refresh_token
|
12375
|
+
data, _status_code, _headers = post_document_text_footer_with_http_info(name, text_footer, opts)
|
12376
|
+
else
|
12377
|
+
raise
|
12378
|
+
end
|
12379
|
+
return data
|
12380
|
+
end
|
12381
|
+
|
12382
|
+
# Add document text footer.
|
12383
|
+
#
|
12384
|
+
# @param name The document name.
|
12385
|
+
# @param text_footer The text footer.
|
12386
|
+
# @param [Hash] opts the optional parameters
|
12387
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12388
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12389
|
+
# @option opts [String] :storage The document storage.
|
12390
|
+
# @option opts [String] :folder The document folder.
|
12391
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12392
|
+
def post_document_text_footer_with_http_info(name, text_footer, opts = {})
|
12393
|
+
if @api_client.config.debugging
|
12394
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_document_text_footer ..."
|
12395
|
+
end
|
12396
|
+
# verify the required parameter 'name' is set
|
12397
|
+
if @api_client.config.client_side_validation && name.nil?
|
12398
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_text_footer"
|
12399
|
+
end
|
12400
|
+
# verify the required parameter 'text_footer' is set
|
12401
|
+
if @api_client.config.client_side_validation && text_footer.nil?
|
12402
|
+
fail ArgumentError, "Missing the required parameter 'text_footer' when calling PdfApi.post_document_text_footer"
|
12403
|
+
end
|
12404
|
+
# resource path
|
12405
|
+
local_var_path = "/pdf/{name}/footer/text".sub('{' + 'name' + '}', name.to_s)
|
12406
|
+
|
12407
|
+
# query parameters
|
12408
|
+
query_params = {}
|
12409
|
+
query_params[:'startPageNumber'] = opts[:'start_page_number'] if !opts[:'start_page_number'].nil?
|
12410
|
+
query_params[:'endPageNumber'] = opts[:'end_page_number'] if !opts[:'end_page_number'].nil?
|
12411
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12412
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12413
|
+
|
12414
|
+
# header parameters
|
12415
|
+
header_params = {}
|
12416
|
+
# HTTP header 'Accept' (if needed)
|
12417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12418
|
+
# HTTP header 'Content-Type'
|
12419
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12420
|
+
|
12421
|
+
# form parameters
|
12422
|
+
form_params = {}
|
12423
|
+
# Fix header in file
|
12424
|
+
post_body = nil
|
12425
|
+
|
12426
|
+
# http body (model)
|
12427
|
+
post_body = @api_client.object_to_http_body(text_footer)
|
12428
|
+
auth_names = []
|
12429
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12430
|
+
:header_params => header_params,
|
12431
|
+
:query_params => query_params,
|
12432
|
+
:form_params => form_params,
|
12433
|
+
:body => post_body,
|
12434
|
+
:auth_names => auth_names,
|
12435
|
+
:return_type => 'AsposeResponse')
|
12436
|
+
if @api_client.config.debugging
|
12437
|
+
@api_client.config.logger.debug "API called: PdfApi#post_document_text_footer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12438
|
+
end
|
12439
|
+
return data, status_code, headers
|
12440
|
+
end
|
12441
|
+
|
12442
|
+
# Add document text header.
|
12443
|
+
#
|
12444
|
+
# @param name The document name.
|
12445
|
+
# @param text_header The text header.
|
12446
|
+
# @param [Hash] opts the optional parameters
|
12447
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12448
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12449
|
+
# @option opts [String] :storage The document storage.
|
12450
|
+
# @option opts [String] :folder The document folder.
|
12451
|
+
# @return [AsposeResponse]
|
12452
|
+
def post_document_text_header(name, text_header, opts = {})
|
12453
|
+
@api_client.request_token_if_needed
|
12454
|
+
data, _status_code, _headers = post_document_text_header_with_http_info(name, text_header, opts)
|
12455
|
+
rescue ApiError => error
|
12456
|
+
if error.code == 401
|
12457
|
+
@api_client.refresh_token
|
12458
|
+
data, _status_code, _headers = post_document_text_header_with_http_info(name, text_header, opts)
|
12459
|
+
else
|
12460
|
+
raise
|
12461
|
+
end
|
12462
|
+
return data
|
12463
|
+
end
|
12464
|
+
|
12465
|
+
# Add document text header.
|
12466
|
+
#
|
12467
|
+
# @param name The document name.
|
12468
|
+
# @param text_header The text header.
|
12469
|
+
# @param [Hash] opts the optional parameters
|
12470
|
+
# @option opts [Integer] :start_page_number The start page number.
|
12471
|
+
# @option opts [Integer] :end_page_number The end page number.
|
12472
|
+
# @option opts [String] :storage The document storage.
|
12473
|
+
# @option opts [String] :folder The document folder.
|
12474
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12475
|
+
def post_document_text_header_with_http_info(name, text_header, opts = {})
|
12476
|
+
if @api_client.config.debugging
|
12477
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_document_text_header ..."
|
12478
|
+
end
|
12479
|
+
# verify the required parameter 'name' is set
|
12480
|
+
if @api_client.config.client_side_validation && name.nil?
|
12481
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_text_header"
|
12482
|
+
end
|
12483
|
+
# verify the required parameter 'text_header' is set
|
12484
|
+
if @api_client.config.client_side_validation && text_header.nil?
|
12485
|
+
fail ArgumentError, "Missing the required parameter 'text_header' when calling PdfApi.post_document_text_header"
|
12486
|
+
end
|
12487
|
+
# resource path
|
12488
|
+
local_var_path = "/pdf/{name}/header/text".sub('{' + 'name' + '}', name.to_s)
|
12489
|
+
|
12490
|
+
# query parameters
|
12491
|
+
query_params = {}
|
12492
|
+
query_params[:'startPageNumber'] = opts[:'start_page_number'] if !opts[:'start_page_number'].nil?
|
12493
|
+
query_params[:'endPageNumber'] = opts[:'end_page_number'] if !opts[:'end_page_number'].nil?
|
12494
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12495
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12496
|
+
|
12497
|
+
# header parameters
|
12498
|
+
header_params = {}
|
12499
|
+
# HTTP header 'Accept' (if needed)
|
12500
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12501
|
+
# HTTP header 'Content-Type'
|
12502
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12503
|
+
|
12504
|
+
# form parameters
|
12505
|
+
form_params = {}
|
12506
|
+
# Fix header in file
|
12507
|
+
post_body = nil
|
12508
|
+
|
12509
|
+
# http body (model)
|
12510
|
+
post_body = @api_client.object_to_http_body(text_header)
|
12511
|
+
auth_names = []
|
12512
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12513
|
+
:header_params => header_params,
|
12514
|
+
:query_params => query_params,
|
12515
|
+
:form_params => form_params,
|
12516
|
+
:body => post_body,
|
12517
|
+
:auth_names => auth_names,
|
12518
|
+
:return_type => 'AsposeResponse')
|
12519
|
+
if @api_client.config.debugging
|
12520
|
+
@api_client.config.logger.debug "API called: PdfApi#post_document_text_header\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12521
|
+
end
|
12522
|
+
return data, status_code, headers
|
12523
|
+
end
|
12524
|
+
|
12525
|
+
# Document's replace text method.
|
12526
|
+
#
|
12527
|
+
# @param name
|
12528
|
+
# @param text_replace
|
12529
|
+
# @param [Hash] opts the optional parameters
|
12530
|
+
# @option opts [String] :storage
|
12531
|
+
# @option opts [String] :folder
|
12532
|
+
# @return [TextReplaceResponse]
|
12533
|
+
def post_document_text_replace(name, text_replace, opts = {})
|
12534
|
+
@api_client.request_token_if_needed
|
12535
|
+
data, _status_code, _headers = post_document_text_replace_with_http_info(name, text_replace, opts)
|
12536
|
+
rescue ApiError => error
|
12537
|
+
if error.code == 401
|
12538
|
+
@api_client.refresh_token
|
12539
|
+
data, _status_code, _headers = post_document_text_replace_with_http_info(name, text_replace, opts)
|
12540
|
+
else
|
12541
|
+
raise
|
12542
|
+
end
|
12543
|
+
return data
|
12544
|
+
end
|
12545
|
+
|
12546
|
+
# Document's replace text method.
|
12547
|
+
#
|
12548
|
+
# @param name
|
12549
|
+
# @param text_replace
|
12550
|
+
# @param [Hash] opts the optional parameters
|
12551
|
+
# @option opts [String] :storage
|
12552
|
+
# @option opts [String] :folder
|
12553
|
+
# @return [Array<(TextReplaceResponse, Fixnum, Hash)>] TextReplaceResponse data, response status code and response headers
|
12554
|
+
def post_document_text_replace_with_http_info(name, text_replace, opts = {})
|
12555
|
+
if @api_client.config.debugging
|
12556
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_document_text_replace ..."
|
12557
|
+
end
|
12558
|
+
# verify the required parameter 'name' is set
|
12559
|
+
if @api_client.config.client_side_validation && name.nil?
|
12560
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_text_replace"
|
12561
|
+
end
|
12562
|
+
# verify the required parameter 'text_replace' is set
|
12563
|
+
if @api_client.config.client_side_validation && text_replace.nil?
|
12564
|
+
fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_document_text_replace"
|
12565
|
+
end
|
12566
|
+
# resource path
|
12567
|
+
local_var_path = "/pdf/{name}/text/replace".sub('{' + 'name' + '}', name.to_s)
|
12568
|
+
|
12569
|
+
# query parameters
|
12570
|
+
query_params = {}
|
12571
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12572
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12573
|
+
|
12574
|
+
# header parameters
|
12575
|
+
header_params = {}
|
12576
|
+
# HTTP header 'Accept' (if needed)
|
12577
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12578
|
+
# HTTP header 'Content-Type'
|
12579
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12580
|
+
|
12581
|
+
# form parameters
|
12582
|
+
form_params = {}
|
12583
|
+
# Fix header in file
|
12584
|
+
post_body = nil
|
12585
|
+
|
12586
|
+
# http body (model)
|
12587
|
+
post_body = @api_client.object_to_http_body(text_replace)
|
12588
|
+
auth_names = []
|
12589
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12590
|
+
:header_params => header_params,
|
12591
|
+
:query_params => query_params,
|
12592
|
+
:form_params => form_params,
|
12593
|
+
:body => post_body,
|
12594
|
+
:auth_names => auth_names,
|
12595
|
+
:return_type => 'TextReplaceResponse')
|
12596
|
+
if @api_client.config.debugging
|
12597
|
+
@api_client.config.logger.debug "API called: PdfApi#post_document_text_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12598
|
+
end
|
12599
|
+
return data, status_code, headers
|
12600
|
+
end
|
12601
|
+
|
12602
|
+
# Encrypt document in storage.
|
12603
|
+
#
|
12604
|
+
# @param name Document name.
|
12605
|
+
# @param user_password User password (encrypted Base64).
|
12606
|
+
# @param owner_password Owner password (encrypted Base64).
|
12607
|
+
# @param crypto_algorithm Cryptographic algorithm, see for details.
|
12608
|
+
# @param [Hash] opts the optional parameters
|
12609
|
+
# @option opts [Array<PermissionsFlags>] :permissions_flags Array of document permissions, see for details.
|
12610
|
+
# @option opts [BOOLEAN] :use_pdf20 Support for revision 6 (Extension 8).
|
12611
|
+
# @option opts [String] :storage The document storage.
|
12612
|
+
# @option opts [String] :folder The document folder.
|
12613
|
+
# @return [AsposeResponse]
|
12614
|
+
def post_encrypt_document_in_storage(name, user_password, owner_password, crypto_algorithm, opts = {})
|
12615
|
+
@api_client.request_token_if_needed
|
12616
|
+
data, _status_code, _headers = post_encrypt_document_in_storage_with_http_info(name, user_password, owner_password, crypto_algorithm, opts)
|
12617
|
+
rescue ApiError => error
|
12618
|
+
if error.code == 401
|
12619
|
+
@api_client.refresh_token
|
12620
|
+
data, _status_code, _headers = post_encrypt_document_in_storage_with_http_info(name, user_password, owner_password, crypto_algorithm, opts)
|
12621
|
+
else
|
12622
|
+
raise
|
12623
|
+
end
|
12624
|
+
return data
|
12625
|
+
end
|
12626
|
+
|
12627
|
+
# Encrypt document in storage.
|
12628
|
+
#
|
12629
|
+
# @param name Document name.
|
12630
|
+
# @param user_password User password (encrypted Base64).
|
12631
|
+
# @param owner_password Owner password (encrypted Base64).
|
12632
|
+
# @param crypto_algorithm Cryptographic algorithm, see for details.
|
12633
|
+
# @param [Hash] opts the optional parameters
|
12634
|
+
# @option opts [Array<PermissionsFlags>] :permissions_flags Array of document permissions, see for details.
|
12635
|
+
# @option opts [BOOLEAN] :use_pdf20 Support for revision 6 (Extension 8).
|
12636
|
+
# @option opts [String] :storage The document storage.
|
12637
|
+
# @option opts [String] :folder The document folder.
|
12638
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12639
|
+
def post_encrypt_document_in_storage_with_http_info(name, user_password, owner_password, crypto_algorithm, opts = {})
|
12640
|
+
if @api_client.config.debugging
|
12641
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_encrypt_document_in_storage ..."
|
12642
|
+
end
|
12643
|
+
# verify the required parameter 'name' is set
|
12644
|
+
if @api_client.config.client_side_validation && name.nil?
|
12645
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_encrypt_document_in_storage"
|
12646
|
+
end
|
12647
|
+
# verify the required parameter 'user_password' is set
|
12648
|
+
if @api_client.config.client_side_validation && user_password.nil?
|
12649
|
+
fail ArgumentError, "Missing the required parameter 'user_password' when calling PdfApi.post_encrypt_document_in_storage"
|
12650
|
+
end
|
12651
|
+
# verify the required parameter 'owner_password' is set
|
12652
|
+
if @api_client.config.client_side_validation && owner_password.nil?
|
12653
|
+
fail ArgumentError, "Missing the required parameter 'owner_password' when calling PdfApi.post_encrypt_document_in_storage"
|
12654
|
+
end
|
12655
|
+
# verify the required parameter 'crypto_algorithm' is set
|
12656
|
+
if @api_client.config.client_side_validation && crypto_algorithm.nil?
|
12657
|
+
fail ArgumentError, "Missing the required parameter 'crypto_algorithm' when calling PdfApi.post_encrypt_document_in_storage"
|
12658
|
+
end
|
12659
|
+
# resource path
|
12660
|
+
local_var_path = "/pdf/{name}/encrypt".sub('{' + 'name' + '}', name.to_s)
|
12661
|
+
|
12662
|
+
# query parameters
|
12663
|
+
query_params = {}
|
12664
|
+
query_params[:'userPassword'] = user_password
|
12665
|
+
query_params[:'ownerPassword'] = owner_password
|
12666
|
+
query_params[:'cryptoAlgorithm'] = crypto_algorithm
|
12667
|
+
query_params[:'permissionsFlags'] = @api_client.build_collection_param(opts[:'permissions_flags'], :multi) if !opts[:'permissions_flags'].nil?
|
12668
|
+
query_params[:'usePdf20'] = opts[:'use_pdf20'] if !opts[:'use_pdf20'].nil?
|
12669
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12670
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12671
|
+
|
12672
|
+
# header parameters
|
12673
|
+
header_params = {}
|
12674
|
+
# HTTP header 'Accept' (if needed)
|
12675
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12676
|
+
# HTTP header 'Content-Type'
|
12677
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12678
|
+
|
12679
|
+
# form parameters
|
12680
|
+
form_params = {}
|
12681
|
+
# Fix header in file
|
12682
|
+
post_body = nil
|
12683
|
+
|
12684
|
+
# http body (model)
|
12685
|
+
# Fix header in file
|
12686
|
+
# post_body = nil
|
12687
|
+
auth_names = []
|
12688
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12689
|
+
:header_params => header_params,
|
12690
|
+
:query_params => query_params,
|
12691
|
+
:form_params => form_params,
|
12692
|
+
:body => post_body,
|
12693
|
+
:auth_names => auth_names,
|
12694
|
+
:return_type => 'AsposeResponse')
|
12695
|
+
if @api_client.config.debugging
|
12696
|
+
@api_client.config.logger.debug "API called: PdfApi#post_encrypt_document_in_storage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12697
|
+
end
|
12698
|
+
return data, status_code, headers
|
12699
|
+
end
|
12700
|
+
|
12701
|
+
# Flatten the document.
|
12702
|
+
#
|
12703
|
+
# @param name The document name.
|
12704
|
+
# @param [Hash] opts the optional parameters
|
12705
|
+
# @option opts [BOOLEAN] :update_appearances If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance..
|
12706
|
+
# @option opts [BOOLEAN] :call_events If set, formatting and other JavaScript events will be called.
|
12707
|
+
# @option opts [BOOLEAN] :hide_buttons If set, buttons will be removed from flattened document.
|
12708
|
+
# @option opts [String] :storage The document storage.
|
12709
|
+
# @option opts [String] :folder The document folder.
|
12710
|
+
# @return [AsposeResponse]
|
12711
|
+
def post_flatten_document(name, opts = {})
|
12712
|
+
@api_client.request_token_if_needed
|
12713
|
+
data, _status_code, _headers = post_flatten_document_with_http_info(name, opts)
|
12714
|
+
rescue ApiError => error
|
12715
|
+
if error.code == 401
|
12716
|
+
@api_client.refresh_token
|
12717
|
+
data, _status_code, _headers = post_flatten_document_with_http_info(name, opts)
|
12718
|
+
else
|
12719
|
+
raise
|
12720
|
+
end
|
12721
|
+
return data
|
12722
|
+
end
|
12723
|
+
|
12724
|
+
# Flatten the document.
|
12725
|
+
#
|
12726
|
+
# @param name The document name.
|
12727
|
+
# @param [Hash] opts the optional parameters
|
12728
|
+
# @option opts [BOOLEAN] :update_appearances If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance..
|
12729
|
+
# @option opts [BOOLEAN] :call_events If set, formatting and other JavaScript events will be called.
|
12730
|
+
# @option opts [BOOLEAN] :hide_buttons If set, buttons will be removed from flattened document.
|
12731
|
+
# @option opts [String] :storage The document storage.
|
12732
|
+
# @option opts [String] :folder The document folder.
|
12733
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
12734
|
+
def post_flatten_document_with_http_info(name, opts = {})
|
12735
|
+
if @api_client.config.debugging
|
12736
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_flatten_document ..."
|
12737
|
+
end
|
12738
|
+
# verify the required parameter 'name' is set
|
12739
|
+
if @api_client.config.client_side_validation && name.nil?
|
12740
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_flatten_document"
|
12741
|
+
end
|
12742
|
+
# resource path
|
12743
|
+
local_var_path = "/pdf/{name}/flatten".sub('{' + 'name' + '}', name.to_s)
|
12744
|
+
|
12745
|
+
# query parameters
|
12746
|
+
query_params = {}
|
12747
|
+
query_params[:'updateAppearances'] = opts[:'update_appearances'] if !opts[:'update_appearances'].nil?
|
12748
|
+
query_params[:'callEvents'] = opts[:'call_events'] if !opts[:'call_events'].nil?
|
12749
|
+
query_params[:'hideButtons'] = opts[:'hide_buttons'] if !opts[:'hide_buttons'].nil?
|
12750
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
12751
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
12752
|
+
|
12753
|
+
# header parameters
|
12754
|
+
header_params = {}
|
12755
|
+
# HTTP header 'Accept' (if needed)
|
12756
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
12757
|
+
# HTTP header 'Content-Type'
|
12758
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
12759
|
+
|
12760
|
+
# form parameters
|
12761
|
+
form_params = {}
|
12762
|
+
# Fix header in file
|
12763
|
+
post_body = nil
|
12764
|
+
|
12765
|
+
# http body (model)
|
12766
|
+
# Fix header in file
|
12767
|
+
# post_body = nil
|
12768
|
+
auth_names = []
|
12769
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
12770
|
+
:header_params => header_params,
|
12771
|
+
:query_params => query_params,
|
12772
|
+
:form_params => form_params,
|
12773
|
+
:body => post_body,
|
12774
|
+
:auth_names => auth_names,
|
12775
|
+
:return_type => 'AsposeResponse')
|
12776
|
+
if @api_client.config.debugging
|
12777
|
+
@api_client.config.logger.debug "API called: PdfApi#post_flatten_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12778
|
+
end
|
12779
|
+
return data, status_code, headers
|
12780
|
+
end
|
12781
|
+
|
12782
|
+
# Insert image to document page.
|
12783
|
+
#
|
12784
|
+
# @param name The document name.
|
12785
|
+
# @param page_number The page number.
|
12786
|
+
# @param llx Coordinate lower left X.
|
12787
|
+
# @param lly Coordinate lower left Y.
|
12788
|
+
# @param urx Coordinate upper right X.
|
12789
|
+
# @param ury Coordinate upper right Y.
|
12790
|
+
# @param [Hash] opts the optional parameters
|
12791
|
+
# @option opts [String] :image_file_path Path to image file if specified. Request content is used otherwise.
|
12792
|
+
# @option opts [String] :storage The document storage.
|
12793
|
+
# @option opts [String] :folder The document folder.
|
12794
|
+
# @option opts [File] :image Image file.
|
12795
|
+
# @return [AsposeResponse]
|
12796
|
+
def post_insert_image(name, page_number, llx, lly, urx, ury, opts = {})
|
12797
|
+
@api_client.request_token_if_needed
|
12798
|
+
data, _status_code, _headers = post_insert_image_with_http_info(name, page_number, llx, lly, urx, ury, opts)
|
12799
|
+
rescue ApiError => error
|
12800
|
+
if error.code == 401
|
12801
|
+
@api_client.refresh_token
|
12802
|
+
data, _status_code, _headers = post_insert_image_with_http_info(name, page_number, llx, lly, urx, ury, opts)
|
12803
|
+
else
|
12804
|
+
raise
|
12805
|
+
end
|
12806
|
+
return data
|
12807
|
+
end
|
12808
|
+
|
12809
|
+
# Insert image to document page.
|
12810
|
+
#
|
12811
|
+
# @param name The document name.
|
12812
|
+
# @param page_number The page number.
|
12813
|
+
# @param llx Coordinate lower left X.
|
12119
12814
|
# @param lly Coordinate lower left Y.
|
12120
12815
|
# @param urx Coordinate upper right X.
|
12121
12816
|
# @param ury Coordinate upper right Y.
|
@@ -13962,22 +14657,105 @@ module AsposePdfCloud
|
|
13962
14657
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
13963
14658
|
def post_page_squiggly_annotations_with_http_info(name, page_number, annotations, opts = {})
|
13964
14659
|
if @api_client.config.debugging
|
13965
|
-
@api_client.config.logger.debug "Calling API: PdfApi.post_page_squiggly_annotations ..."
|
14660
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_squiggly_annotations ..."
|
14661
|
+
end
|
14662
|
+
# verify the required parameter 'name' is set
|
14663
|
+
if @api_client.config.client_side_validation && name.nil?
|
14664
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_squiggly_annotations"
|
14665
|
+
end
|
14666
|
+
# verify the required parameter 'page_number' is set
|
14667
|
+
if @api_client.config.client_side_validation && page_number.nil?
|
14668
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_squiggly_annotations"
|
14669
|
+
end
|
14670
|
+
# verify the required parameter 'annotations' is set
|
14671
|
+
if @api_client.config.client_side_validation && annotations.nil?
|
14672
|
+
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.post_page_squiggly_annotations"
|
14673
|
+
end
|
14674
|
+
# resource path
|
14675
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/squiggly".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
14676
|
+
|
14677
|
+
# query parameters
|
14678
|
+
query_params = {}
|
14679
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
14680
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
14681
|
+
|
14682
|
+
# header parameters
|
14683
|
+
header_params = {}
|
14684
|
+
# HTTP header 'Accept' (if needed)
|
14685
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
14686
|
+
# HTTP header 'Content-Type'
|
14687
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
14688
|
+
|
14689
|
+
# form parameters
|
14690
|
+
form_params = {}
|
14691
|
+
# Fix header in file
|
14692
|
+
post_body = nil
|
14693
|
+
|
14694
|
+
# http body (model)
|
14695
|
+
post_body = @api_client.object_to_http_body(annotations)
|
14696
|
+
auth_names = []
|
14697
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
14698
|
+
:header_params => header_params,
|
14699
|
+
:query_params => query_params,
|
14700
|
+
:form_params => form_params,
|
14701
|
+
:body => post_body,
|
14702
|
+
:auth_names => auth_names,
|
14703
|
+
:return_type => 'AsposeResponse')
|
14704
|
+
if @api_client.config.debugging
|
14705
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_squiggly_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14706
|
+
end
|
14707
|
+
return data, status_code, headers
|
14708
|
+
end
|
14709
|
+
|
14710
|
+
# Add document page stamp annotations.
|
14711
|
+
#
|
14712
|
+
# @param name The document name.
|
14713
|
+
# @param page_number The page number.
|
14714
|
+
# @param annotations The array of annotation.
|
14715
|
+
# @param [Hash] opts the optional parameters
|
14716
|
+
# @option opts [String] :storage The document storage.
|
14717
|
+
# @option opts [String] :folder The document folder.
|
14718
|
+
# @return [AsposeResponse]
|
14719
|
+
def post_page_stamp_annotations(name, page_number, annotations, opts = {})
|
14720
|
+
@api_client.request_token_if_needed
|
14721
|
+
data, _status_code, _headers = post_page_stamp_annotations_with_http_info(name, page_number, annotations, opts)
|
14722
|
+
rescue ApiError => error
|
14723
|
+
if error.code == 401
|
14724
|
+
@api_client.refresh_token
|
14725
|
+
data, _status_code, _headers = post_page_stamp_annotations_with_http_info(name, page_number, annotations, opts)
|
14726
|
+
else
|
14727
|
+
raise
|
14728
|
+
end
|
14729
|
+
return data
|
14730
|
+
end
|
14731
|
+
|
14732
|
+
# Add document page stamp annotations.
|
14733
|
+
#
|
14734
|
+
# @param name The document name.
|
14735
|
+
# @param page_number The page number.
|
14736
|
+
# @param annotations The array of annotation.
|
14737
|
+
# @param [Hash] opts the optional parameters
|
14738
|
+
# @option opts [String] :storage The document storage.
|
14739
|
+
# @option opts [String] :folder The document folder.
|
14740
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
14741
|
+
def post_page_stamp_annotations_with_http_info(name, page_number, annotations, opts = {})
|
14742
|
+
if @api_client.config.debugging
|
14743
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_stamp_annotations ..."
|
13966
14744
|
end
|
13967
14745
|
# verify the required parameter 'name' is set
|
13968
14746
|
if @api_client.config.client_side_validation && name.nil?
|
13969
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
14747
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_stamp_annotations"
|
13970
14748
|
end
|
13971
14749
|
# verify the required parameter 'page_number' is set
|
13972
14750
|
if @api_client.config.client_side_validation && page_number.nil?
|
13973
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.
|
14751
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_stamp_annotations"
|
13974
14752
|
end
|
13975
14753
|
# verify the required parameter 'annotations' is set
|
13976
14754
|
if @api_client.config.client_side_validation && annotations.nil?
|
13977
|
-
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.
|
14755
|
+
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.post_page_stamp_annotations"
|
13978
14756
|
end
|
13979
14757
|
# resource path
|
13980
|
-
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/
|
14758
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/stamp".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
13981
14759
|
|
13982
14760
|
# query parameters
|
13983
14761
|
query_params = {}
|
@@ -14007,12 +14785,12 @@ module AsposePdfCloud
|
|
14007
14785
|
:auth_names => auth_names,
|
14008
14786
|
:return_type => 'AsposeResponse')
|
14009
14787
|
if @api_client.config.debugging
|
14010
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
14788
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_stamp_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14011
14789
|
end
|
14012
14790
|
return data, status_code, headers
|
14013
14791
|
end
|
14014
14792
|
|
14015
|
-
# Add document page
|
14793
|
+
# Add document page StrikeOut annotations.
|
14016
14794
|
#
|
14017
14795
|
# @param name The document name.
|
14018
14796
|
# @param page_number The page number.
|
@@ -14021,20 +14799,20 @@ module AsposePdfCloud
|
|
14021
14799
|
# @option opts [String] :storage The document storage.
|
14022
14800
|
# @option opts [String] :folder The document folder.
|
14023
14801
|
# @return [AsposeResponse]
|
14024
|
-
def
|
14802
|
+
def post_page_strike_out_annotations(name, page_number, annotations, opts = {})
|
14025
14803
|
@api_client.request_token_if_needed
|
14026
|
-
data, _status_code, _headers =
|
14804
|
+
data, _status_code, _headers = post_page_strike_out_annotations_with_http_info(name, page_number, annotations, opts)
|
14027
14805
|
rescue ApiError => error
|
14028
14806
|
if error.code == 401
|
14029
14807
|
@api_client.refresh_token
|
14030
|
-
data, _status_code, _headers =
|
14808
|
+
data, _status_code, _headers = post_page_strike_out_annotations_with_http_info(name, page_number, annotations, opts)
|
14031
14809
|
else
|
14032
14810
|
raise
|
14033
14811
|
end
|
14034
14812
|
return data
|
14035
14813
|
end
|
14036
14814
|
|
14037
|
-
# Add document page
|
14815
|
+
# Add document page StrikeOut annotations.
|
14038
14816
|
#
|
14039
14817
|
# @param name The document name.
|
14040
14818
|
# @param page_number The page number.
|
@@ -14043,24 +14821,24 @@ module AsposePdfCloud
|
|
14043
14821
|
# @option opts [String] :storage The document storage.
|
14044
14822
|
# @option opts [String] :folder The document folder.
|
14045
14823
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
14046
|
-
def
|
14824
|
+
def post_page_strike_out_annotations_with_http_info(name, page_number, annotations, opts = {})
|
14047
14825
|
if @api_client.config.debugging
|
14048
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
14826
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_strike_out_annotations ..."
|
14049
14827
|
end
|
14050
14828
|
# verify the required parameter 'name' is set
|
14051
14829
|
if @api_client.config.client_side_validation && name.nil?
|
14052
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
14830
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_strike_out_annotations"
|
14053
14831
|
end
|
14054
14832
|
# verify the required parameter 'page_number' is set
|
14055
14833
|
if @api_client.config.client_side_validation && page_number.nil?
|
14056
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.
|
14834
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_strike_out_annotations"
|
14057
14835
|
end
|
14058
14836
|
# verify the required parameter 'annotations' is set
|
14059
14837
|
if @api_client.config.client_side_validation && annotations.nil?
|
14060
|
-
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.
|
14838
|
+
fail ArgumentError, "Missing the required parameter 'annotations' when calling PdfApi.post_page_strike_out_annotations"
|
14061
14839
|
end
|
14062
14840
|
# resource path
|
14063
|
-
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/
|
14841
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/strikeout".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
14064
14842
|
|
14065
14843
|
# query parameters
|
14066
14844
|
query_params = {}
|
@@ -14090,60 +14868,60 @@ module AsposePdfCloud
|
|
14090
14868
|
:auth_names => auth_names,
|
14091
14869
|
:return_type => 'AsposeResponse')
|
14092
14870
|
if @api_client.config.debugging
|
14093
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
14871
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_strike_out_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14094
14872
|
end
|
14095
14873
|
return data, status_code, headers
|
14096
14874
|
end
|
14097
14875
|
|
14098
|
-
# Add document page
|
14876
|
+
# Add document page tables.
|
14099
14877
|
#
|
14100
14878
|
# @param name The document name.
|
14101
14879
|
# @param page_number The page number.
|
14102
|
-
# @param
|
14880
|
+
# @param tables The array of table.
|
14103
14881
|
# @param [Hash] opts the optional parameters
|
14104
14882
|
# @option opts [String] :storage The document storage.
|
14105
14883
|
# @option opts [String] :folder The document folder.
|
14106
14884
|
# @return [AsposeResponse]
|
14107
|
-
def
|
14885
|
+
def post_page_tables(name, page_number, tables, opts = {})
|
14108
14886
|
@api_client.request_token_if_needed
|
14109
|
-
data, _status_code, _headers =
|
14887
|
+
data, _status_code, _headers = post_page_tables_with_http_info(name, page_number, tables, opts)
|
14110
14888
|
rescue ApiError => error
|
14111
14889
|
if error.code == 401
|
14112
14890
|
@api_client.refresh_token
|
14113
|
-
data, _status_code, _headers =
|
14891
|
+
data, _status_code, _headers = post_page_tables_with_http_info(name, page_number, tables, opts)
|
14114
14892
|
else
|
14115
14893
|
raise
|
14116
14894
|
end
|
14117
14895
|
return data
|
14118
14896
|
end
|
14119
14897
|
|
14120
|
-
# Add document page
|
14898
|
+
# Add document page tables.
|
14121
14899
|
#
|
14122
14900
|
# @param name The document name.
|
14123
14901
|
# @param page_number The page number.
|
14124
|
-
# @param
|
14902
|
+
# @param tables The array of table.
|
14125
14903
|
# @param [Hash] opts the optional parameters
|
14126
14904
|
# @option opts [String] :storage The document storage.
|
14127
14905
|
# @option opts [String] :folder The document folder.
|
14128
14906
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
14129
|
-
def
|
14907
|
+
def post_page_tables_with_http_info(name, page_number, tables, opts = {})
|
14130
14908
|
if @api_client.config.debugging
|
14131
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
14909
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_page_tables ..."
|
14132
14910
|
end
|
14133
14911
|
# verify the required parameter 'name' is set
|
14134
14912
|
if @api_client.config.client_side_validation && name.nil?
|
14135
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
14913
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_tables"
|
14136
14914
|
end
|
14137
14915
|
# verify the required parameter 'page_number' is set
|
14138
14916
|
if @api_client.config.client_side_validation && page_number.nil?
|
14139
|
-
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.
|
14917
|
+
fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_tables"
|
14140
14918
|
end
|
14141
|
-
# verify the required parameter '
|
14142
|
-
if @api_client.config.client_side_validation &&
|
14143
|
-
fail ArgumentError, "Missing the required parameter '
|
14919
|
+
# verify the required parameter 'tables' is set
|
14920
|
+
if @api_client.config.client_side_validation && tables.nil?
|
14921
|
+
fail ArgumentError, "Missing the required parameter 'tables' when calling PdfApi.post_page_tables"
|
14144
14922
|
end
|
14145
14923
|
# resource path
|
14146
|
-
local_var_path = "/pdf/{name}/pages/{pageNumber}/
|
14924
|
+
local_var_path = "/pdf/{name}/pages/{pageNumber}/tables".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
14147
14925
|
|
14148
14926
|
# query parameters
|
14149
14927
|
query_params = {}
|
@@ -14163,7 +14941,7 @@ module AsposePdfCloud
|
|
14163
14941
|
post_body = nil
|
14164
14942
|
|
14165
14943
|
# http body (model)
|
14166
|
-
post_body = @api_client.object_to_http_body(
|
14944
|
+
post_body = @api_client.object_to_http_body(tables)
|
14167
14945
|
auth_names = []
|
14168
14946
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
14169
14947
|
:header_params => header_params,
|
@@ -14173,7 +14951,7 @@ module AsposePdfCloud
|
|
14173
14951
|
:auth_names => auth_names,
|
14174
14952
|
:return_type => 'AsposeResponse')
|
14175
14953
|
if @api_client.config.debugging
|
14176
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
14954
|
+
@api_client.config.logger.debug "API called: PdfApi#post_page_tables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
14177
14955
|
end
|
14178
14956
|
return data, status_code, headers
|
14179
14957
|
end
|
@@ -15141,6 +15919,101 @@ module AsposePdfCloud
|
|
15141
15919
|
return data, status_code, headers
|
15142
15920
|
end
|
15143
15921
|
|
15922
|
+
# Change document password from content.
|
15923
|
+
#
|
15924
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
15925
|
+
# @param owner_password Owner password (encrypted Base64).
|
15926
|
+
# @param new_user_password New user password (encrypted Base64).
|
15927
|
+
# @param new_owner_password New owner password (encrypted Base64).
|
15928
|
+
# @param [Hash] opts the optional parameters
|
15929
|
+
# @option opts [String] :storage The document storage.
|
15930
|
+
# @option opts [File] :file A file to be changed password.
|
15931
|
+
# @return [AsposeResponse]
|
15932
|
+
def put_change_password_document(out_path, owner_password, new_user_password, new_owner_password, opts = {})
|
15933
|
+
@api_client.request_token_if_needed
|
15934
|
+
data, _status_code, _headers = put_change_password_document_with_http_info(out_path, owner_password, new_user_password, new_owner_password, opts)
|
15935
|
+
rescue ApiError => error
|
15936
|
+
if error.code == 401
|
15937
|
+
@api_client.refresh_token
|
15938
|
+
data, _status_code, _headers = put_change_password_document_with_http_info(out_path, owner_password, new_user_password, new_owner_password, opts)
|
15939
|
+
else
|
15940
|
+
raise
|
15941
|
+
end
|
15942
|
+
return data
|
15943
|
+
end
|
15944
|
+
|
15945
|
+
# Change document password from content.
|
15946
|
+
#
|
15947
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
15948
|
+
# @param owner_password Owner password (encrypted Base64).
|
15949
|
+
# @param new_user_password New user password (encrypted Base64).
|
15950
|
+
# @param new_owner_password New owner password (encrypted Base64).
|
15951
|
+
# @param [Hash] opts the optional parameters
|
15952
|
+
# @option opts [String] :storage The document storage.
|
15953
|
+
# @option opts [File] :file A file to be changed password.
|
15954
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
15955
|
+
def put_change_password_document_with_http_info(out_path, owner_password, new_user_password, new_owner_password, opts = {})
|
15956
|
+
if @api_client.config.debugging
|
15957
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_change_password_document ..."
|
15958
|
+
end
|
15959
|
+
# verify the required parameter 'out_path' is set
|
15960
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
15961
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_change_password_document"
|
15962
|
+
end
|
15963
|
+
# verify the required parameter 'owner_password' is set
|
15964
|
+
if @api_client.config.client_side_validation && owner_password.nil?
|
15965
|
+
fail ArgumentError, "Missing the required parameter 'owner_password' when calling PdfApi.put_change_password_document"
|
15966
|
+
end
|
15967
|
+
# verify the required parameter 'new_user_password' is set
|
15968
|
+
if @api_client.config.client_side_validation && new_user_password.nil?
|
15969
|
+
fail ArgumentError, "Missing the required parameter 'new_user_password' when calling PdfApi.put_change_password_document"
|
15970
|
+
end
|
15971
|
+
# verify the required parameter 'new_owner_password' is set
|
15972
|
+
if @api_client.config.client_side_validation && new_owner_password.nil?
|
15973
|
+
fail ArgumentError, "Missing the required parameter 'new_owner_password' when calling PdfApi.put_change_password_document"
|
15974
|
+
end
|
15975
|
+
# resource path
|
15976
|
+
local_var_path = "/pdf/changepassword"
|
15977
|
+
|
15978
|
+
# query parameters
|
15979
|
+
query_params = {}
|
15980
|
+
query_params[:'outPath'] = out_path
|
15981
|
+
query_params[:'ownerPassword'] = owner_password
|
15982
|
+
query_params[:'newUserPassword'] = new_user_password
|
15983
|
+
query_params[:'newOwnerPassword'] = new_owner_password
|
15984
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
15985
|
+
|
15986
|
+
# header parameters
|
15987
|
+
header_params = {}
|
15988
|
+
# HTTP header 'Accept' (if needed)
|
15989
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15990
|
+
# HTTP header 'Content-Type'
|
15991
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
15992
|
+
|
15993
|
+
# form parameters
|
15994
|
+
form_params = {}
|
15995
|
+
# Fix header in file
|
15996
|
+
post_body = nil
|
15997
|
+
post_body = opts[:'file'] if !opts[:'file'].nil?
|
15998
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
15999
|
+
|
16000
|
+
# http body (model)
|
16001
|
+
# Fix header in file
|
16002
|
+
# post_body = nil
|
16003
|
+
auth_names = []
|
16004
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
16005
|
+
:header_params => header_params,
|
16006
|
+
:query_params => query_params,
|
16007
|
+
:form_params => form_params,
|
16008
|
+
:body => post_body,
|
16009
|
+
:auth_names => auth_names,
|
16010
|
+
:return_type => 'AsposeResponse')
|
16011
|
+
if @api_client.config.debugging
|
16012
|
+
@api_client.config.logger.debug "API called: PdfApi#put_change_password_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
16013
|
+
end
|
16014
|
+
return data, status_code, headers
|
16015
|
+
end
|
16016
|
+
|
15144
16017
|
# Replace document circle annotation
|
15145
16018
|
#
|
15146
16019
|
# @param name The document name.
|
@@ -15371,68 +16244,250 @@ module AsposePdfCloud
|
|
15371
16244
|
:form_params => form_params,
|
15372
16245
|
:body => post_body,
|
15373
16246
|
:auth_names => auth_names,
|
15374
|
-
:return_type => 'DocumentResponse')
|
16247
|
+
:return_type => 'DocumentResponse')
|
16248
|
+
if @api_client.config.debugging
|
16249
|
+
@api_client.config.logger.debug "API called: PdfApi#put_create_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
16250
|
+
end
|
16251
|
+
return data, status_code, headers
|
16252
|
+
end
|
16253
|
+
|
16254
|
+
# Create the folder
|
16255
|
+
#
|
16256
|
+
# @param path Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively
|
16257
|
+
# @param [Hash] opts the optional parameters
|
16258
|
+
# @option opts [String] :storage User's source storage name
|
16259
|
+
# @option opts [String] :dest_storage User's destination storage name
|
16260
|
+
# @return [AsposeResponse]
|
16261
|
+
def put_create_folder(path, opts = {})
|
16262
|
+
@api_client.request_token_if_needed
|
16263
|
+
data, _status_code, _headers = put_create_folder_with_http_info(path, opts)
|
16264
|
+
rescue ApiError => error
|
16265
|
+
if error.code == 401
|
16266
|
+
@api_client.refresh_token
|
16267
|
+
data, _status_code, _headers = put_create_folder_with_http_info(path, opts)
|
16268
|
+
else
|
16269
|
+
raise
|
16270
|
+
end
|
16271
|
+
return data
|
16272
|
+
end
|
16273
|
+
|
16274
|
+
# Create the folder
|
16275
|
+
#
|
16276
|
+
# @param path Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively
|
16277
|
+
# @param [Hash] opts the optional parameters
|
16278
|
+
# @option opts [String] :storage User's source storage name
|
16279
|
+
# @option opts [String] :dest_storage User's destination storage name
|
16280
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
16281
|
+
def put_create_folder_with_http_info(path, opts = {})
|
16282
|
+
if @api_client.config.debugging
|
16283
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_create_folder ..."
|
16284
|
+
end
|
16285
|
+
# verify the required parameter 'path' is set
|
16286
|
+
if @api_client.config.client_side_validation && path.nil?
|
16287
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling PdfApi.put_create_folder"
|
16288
|
+
end
|
16289
|
+
# resource path
|
16290
|
+
local_var_path = "/storage/folder"
|
16291
|
+
|
16292
|
+
# query parameters
|
16293
|
+
query_params = {}
|
16294
|
+
query_params[:'path'] = path
|
16295
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
16296
|
+
query_params[:'destStorage'] = opts[:'dest_storage'] if !opts[:'dest_storage'].nil?
|
16297
|
+
|
16298
|
+
# header parameters
|
16299
|
+
header_params = {}
|
16300
|
+
# HTTP header 'Accept' (if needed)
|
16301
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
16302
|
+
# HTTP header 'Content-Type'
|
16303
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16304
|
+
|
16305
|
+
# form parameters
|
16306
|
+
form_params = {}
|
16307
|
+
# Fix header in file
|
16308
|
+
post_body = nil
|
16309
|
+
|
16310
|
+
# http body (model)
|
16311
|
+
# Fix header in file
|
16312
|
+
# post_body = nil
|
16313
|
+
auth_names = []
|
16314
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
16315
|
+
:header_params => header_params,
|
16316
|
+
:query_params => query_params,
|
16317
|
+
:form_params => form_params,
|
16318
|
+
:body => post_body,
|
16319
|
+
:auth_names => auth_names,
|
16320
|
+
:return_type => 'AsposeResponse')
|
16321
|
+
if @api_client.config.debugging
|
16322
|
+
@api_client.config.logger.debug "API called: PdfApi#put_create_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
16323
|
+
end
|
16324
|
+
return data, status_code, headers
|
16325
|
+
end
|
16326
|
+
|
16327
|
+
# Decrypt document from content.
|
16328
|
+
#
|
16329
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
16330
|
+
# @param password The password (encrypted Base64).
|
16331
|
+
# @param [Hash] opts the optional parameters
|
16332
|
+
# @option opts [String] :storage The document storage.
|
16333
|
+
# @option opts [File] :file A file to be derypted.
|
16334
|
+
# @return [AsposeResponse]
|
16335
|
+
def put_decrypt_document(out_path, password, opts = {})
|
16336
|
+
@api_client.request_token_if_needed
|
16337
|
+
data, _status_code, _headers = put_decrypt_document_with_http_info(out_path, password, opts)
|
16338
|
+
rescue ApiError => error
|
16339
|
+
if error.code == 401
|
16340
|
+
@api_client.refresh_token
|
16341
|
+
data, _status_code, _headers = put_decrypt_document_with_http_info(out_path, password, opts)
|
16342
|
+
else
|
16343
|
+
raise
|
16344
|
+
end
|
16345
|
+
return data
|
16346
|
+
end
|
16347
|
+
|
16348
|
+
# Decrypt document from content.
|
16349
|
+
#
|
16350
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
16351
|
+
# @param password The password (encrypted Base64).
|
16352
|
+
# @param [Hash] opts the optional parameters
|
16353
|
+
# @option opts [String] :storage The document storage.
|
16354
|
+
# @option opts [File] :file A file to be derypted.
|
16355
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
16356
|
+
def put_decrypt_document_with_http_info(out_path, password, opts = {})
|
16357
|
+
if @api_client.config.debugging
|
16358
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_decrypt_document ..."
|
16359
|
+
end
|
16360
|
+
# verify the required parameter 'out_path' is set
|
16361
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
16362
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_decrypt_document"
|
16363
|
+
end
|
16364
|
+
# verify the required parameter 'password' is set
|
16365
|
+
if @api_client.config.client_side_validation && password.nil?
|
16366
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling PdfApi.put_decrypt_document"
|
16367
|
+
end
|
16368
|
+
# resource path
|
16369
|
+
local_var_path = "/pdf/decrypt"
|
16370
|
+
|
16371
|
+
# query parameters
|
16372
|
+
query_params = {}
|
16373
|
+
query_params[:'outPath'] = out_path
|
16374
|
+
query_params[:'password'] = password
|
16375
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
16376
|
+
|
16377
|
+
# header parameters
|
16378
|
+
header_params = {}
|
16379
|
+
# HTTP header 'Accept' (if needed)
|
16380
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
16381
|
+
# HTTP header 'Content-Type'
|
16382
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
16383
|
+
|
16384
|
+
# form parameters
|
16385
|
+
form_params = {}
|
16386
|
+
# Fix header in file
|
16387
|
+
post_body = nil
|
16388
|
+
post_body = opts[:'file'] if !opts[:'file'].nil?
|
16389
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
16390
|
+
|
16391
|
+
# http body (model)
|
16392
|
+
# Fix header in file
|
16393
|
+
# post_body = nil
|
16394
|
+
auth_names = []
|
16395
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
16396
|
+
:header_params => header_params,
|
16397
|
+
:query_params => query_params,
|
16398
|
+
:form_params => form_params,
|
16399
|
+
:body => post_body,
|
16400
|
+
:auth_names => auth_names,
|
16401
|
+
:return_type => 'AsposeResponse')
|
15375
16402
|
if @api_client.config.debugging
|
15376
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
16403
|
+
@api_client.config.logger.debug "API called: PdfApi#put_decrypt_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
15377
16404
|
end
|
15378
16405
|
return data, status_code, headers
|
15379
16406
|
end
|
15380
16407
|
|
15381
|
-
#
|
16408
|
+
# Encrypt document from content.
|
15382
16409
|
#
|
15383
|
-
# @param
|
16410
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
16411
|
+
# @param user_password User password (encrypted Base64).
|
16412
|
+
# @param owner_password Owner password (encrypted Base64).
|
16413
|
+
# @param crypto_algorithm Cryptographic algorithm, see for details.
|
15384
16414
|
# @param [Hash] opts the optional parameters
|
15385
|
-
# @option opts [
|
15386
|
-
# @option opts [
|
16415
|
+
# @option opts [Array<PermissionsFlags>] :permissions_flags Array of document permissions, see for details.
|
16416
|
+
# @option opts [BOOLEAN] :use_pdf20 Support for revision 6 (Extension 8).
|
16417
|
+
# @option opts [String] :storage The document storage.
|
16418
|
+
# @option opts [File] :file A file to be encrypted.
|
15387
16419
|
# @return [AsposeResponse]
|
15388
|
-
def
|
16420
|
+
def put_encrypt_document(out_path, user_password, owner_password, crypto_algorithm, opts = {})
|
15389
16421
|
@api_client.request_token_if_needed
|
15390
|
-
data, _status_code, _headers =
|
16422
|
+
data, _status_code, _headers = put_encrypt_document_with_http_info(out_path, user_password, owner_password, crypto_algorithm, opts)
|
15391
16423
|
rescue ApiError => error
|
15392
16424
|
if error.code == 401
|
15393
16425
|
@api_client.refresh_token
|
15394
|
-
data, _status_code, _headers =
|
16426
|
+
data, _status_code, _headers = put_encrypt_document_with_http_info(out_path, user_password, owner_password, crypto_algorithm, opts)
|
15395
16427
|
else
|
15396
16428
|
raise
|
15397
16429
|
end
|
15398
16430
|
return data
|
15399
16431
|
end
|
15400
16432
|
|
15401
|
-
#
|
16433
|
+
# Encrypt document from content.
|
15402
16434
|
#
|
15403
|
-
# @param
|
16435
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
16436
|
+
# @param user_password User password (encrypted Base64).
|
16437
|
+
# @param owner_password Owner password (encrypted Base64).
|
16438
|
+
# @param crypto_algorithm Cryptographic algorithm, see for details.
|
15404
16439
|
# @param [Hash] opts the optional parameters
|
15405
|
-
# @option opts [
|
15406
|
-
# @option opts [
|
16440
|
+
# @option opts [Array<PermissionsFlags>] :permissions_flags Array of document permissions, see for details.
|
16441
|
+
# @option opts [BOOLEAN] :use_pdf20 Support for revision 6 (Extension 8).
|
16442
|
+
# @option opts [String] :storage The document storage.
|
16443
|
+
# @option opts [File] :file A file to be encrypted.
|
15407
16444
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
15408
|
-
def
|
16445
|
+
def put_encrypt_document_with_http_info(out_path, user_password, owner_password, crypto_algorithm, opts = {})
|
15409
16446
|
if @api_client.config.debugging
|
15410
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
16447
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_encrypt_document ..."
|
15411
16448
|
end
|
15412
|
-
# verify the required parameter '
|
15413
|
-
if @api_client.config.client_side_validation &&
|
15414
|
-
fail ArgumentError, "Missing the required parameter '
|
16449
|
+
# verify the required parameter 'out_path' is set
|
16450
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
16451
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_encrypt_document"
|
16452
|
+
end
|
16453
|
+
# verify the required parameter 'user_password' is set
|
16454
|
+
if @api_client.config.client_side_validation && user_password.nil?
|
16455
|
+
fail ArgumentError, "Missing the required parameter 'user_password' when calling PdfApi.put_encrypt_document"
|
16456
|
+
end
|
16457
|
+
# verify the required parameter 'owner_password' is set
|
16458
|
+
if @api_client.config.client_side_validation && owner_password.nil?
|
16459
|
+
fail ArgumentError, "Missing the required parameter 'owner_password' when calling PdfApi.put_encrypt_document"
|
16460
|
+
end
|
16461
|
+
# verify the required parameter 'crypto_algorithm' is set
|
16462
|
+
if @api_client.config.client_side_validation && crypto_algorithm.nil?
|
16463
|
+
fail ArgumentError, "Missing the required parameter 'crypto_algorithm' when calling PdfApi.put_encrypt_document"
|
15415
16464
|
end
|
15416
16465
|
# resource path
|
15417
|
-
local_var_path = "/
|
16466
|
+
local_var_path = "/pdf/encrypt"
|
15418
16467
|
|
15419
16468
|
# query parameters
|
15420
16469
|
query_params = {}
|
15421
|
-
query_params[:'
|
16470
|
+
query_params[:'outPath'] = out_path
|
16471
|
+
query_params[:'userPassword'] = user_password
|
16472
|
+
query_params[:'ownerPassword'] = owner_password
|
16473
|
+
query_params[:'cryptoAlgorithm'] = crypto_algorithm
|
16474
|
+
query_params[:'permissionsFlags'] = @api_client.build_collection_param(opts[:'permissions_flags'], :multi) if !opts[:'permissions_flags'].nil?
|
16475
|
+
query_params[:'usePdf20'] = opts[:'use_pdf20'] if !opts[:'use_pdf20'].nil?
|
15422
16476
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
15423
|
-
query_params[:'destStorage'] = opts[:'dest_storage'] if !opts[:'dest_storage'].nil?
|
15424
16477
|
|
15425
16478
|
# header parameters
|
15426
16479
|
header_params = {}
|
15427
16480
|
# HTTP header 'Accept' (if needed)
|
15428
16481
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15429
16482
|
# HTTP header 'Content-Type'
|
15430
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
16483
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
15431
16484
|
|
15432
16485
|
# form parameters
|
15433
16486
|
form_params = {}
|
15434
16487
|
# Fix header in file
|
15435
16488
|
post_body = nil
|
16489
|
+
post_body = opts[:'file'] if !opts[:'file'].nil?
|
16490
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
15436
16491
|
|
15437
16492
|
# http body (model)
|
15438
16493
|
# Fix header in file
|
@@ -15446,7 +16501,7 @@ module AsposePdfCloud
|
|
15446
16501
|
:auth_names => auth_names,
|
15447
16502
|
:return_type => 'AsposeResponse')
|
15448
16503
|
if @api_client.config.debugging
|
15449
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
16504
|
+
@api_client.config.logger.debug "API called: PdfApi#put_encrypt_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
15450
16505
|
end
|
15451
16506
|
return data, status_code, headers
|
15452
16507
|
end
|
@@ -19003,6 +20058,92 @@ module AsposePdfCloud
|
|
19003
20058
|
return data, status_code, headers
|
19004
20059
|
end
|
19005
20060
|
|
20061
|
+
# Converts PDF document (in request content) to XLSX format and uploads resulting file to storage.
|
20062
|
+
#
|
20063
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xlsx)
|
20064
|
+
# @param [Hash] opts the optional parameters
|
20065
|
+
# @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
|
20066
|
+
# @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
|
20067
|
+
# @option opts [Float] :scale_factor Scale factor
|
20068
|
+
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
20069
|
+
# @option opts [String] :storage The document storage.
|
20070
|
+
# @option opts [File] :file A file to be converted.
|
20071
|
+
# @return [AsposeResponse]
|
20072
|
+
def put_pdf_in_request_to_xlsx(out_path, opts = {})
|
20073
|
+
@api_client.request_token_if_needed
|
20074
|
+
data, _status_code, _headers = put_pdf_in_request_to_xlsx_with_http_info(out_path, opts)
|
20075
|
+
rescue ApiError => error
|
20076
|
+
if error.code == 401
|
20077
|
+
@api_client.refresh_token
|
20078
|
+
data, _status_code, _headers = put_pdf_in_request_to_xlsx_with_http_info(out_path, opts)
|
20079
|
+
else
|
20080
|
+
raise
|
20081
|
+
end
|
20082
|
+
return data
|
20083
|
+
end
|
20084
|
+
|
20085
|
+
# Converts PDF document (in request content) to XLSX format and uploads resulting file to storage.
|
20086
|
+
#
|
20087
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xlsx)
|
20088
|
+
# @param [Hash] opts the optional parameters
|
20089
|
+
# @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
|
20090
|
+
# @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
|
20091
|
+
# @option opts [Float] :scale_factor Scale factor
|
20092
|
+
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
20093
|
+
# @option opts [String] :storage The document storage.
|
20094
|
+
# @option opts [File] :file A file to be converted.
|
20095
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
20096
|
+
def put_pdf_in_request_to_xlsx_with_http_info(out_path, opts = {})
|
20097
|
+
if @api_client.config.debugging
|
20098
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_xlsx ..."
|
20099
|
+
end
|
20100
|
+
# verify the required parameter 'out_path' is set
|
20101
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
20102
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_xlsx"
|
20103
|
+
end
|
20104
|
+
# resource path
|
20105
|
+
local_var_path = "/pdf/convert/xlsx"
|
20106
|
+
|
20107
|
+
# query parameters
|
20108
|
+
query_params = {}
|
20109
|
+
query_params[:'outPath'] = out_path
|
20110
|
+
query_params[:'insertBlankColumnAtFirst'] = opts[:'insert_blank_column_at_first'] if !opts[:'insert_blank_column_at_first'].nil?
|
20111
|
+
query_params[:'minimizeTheNumberOfWorksheets'] = opts[:'minimize_the_number_of_worksheets'] if !opts[:'minimize_the_number_of_worksheets'].nil?
|
20112
|
+
query_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
|
20113
|
+
query_params[:'uniformWorksheets'] = opts[:'uniform_worksheets'] if !opts[:'uniform_worksheets'].nil?
|
20114
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
20115
|
+
|
20116
|
+
# header parameters
|
20117
|
+
header_params = {}
|
20118
|
+
# HTTP header 'Accept' (if needed)
|
20119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20120
|
+
# HTTP header 'Content-Type'
|
20121
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20122
|
+
|
20123
|
+
# form parameters
|
20124
|
+
form_params = {}
|
20125
|
+
# Fix header in file
|
20126
|
+
post_body = nil
|
20127
|
+
post_body = opts[:'file'] if !opts[:'file'].nil?
|
20128
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
20129
|
+
|
20130
|
+
# http body (model)
|
20131
|
+
# Fix header in file
|
20132
|
+
# post_body = nil
|
20133
|
+
auth_names = []
|
20134
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
20135
|
+
:header_params => header_params,
|
20136
|
+
:query_params => query_params,
|
20137
|
+
:form_params => form_params,
|
20138
|
+
:body => post_body,
|
20139
|
+
:auth_names => auth_names,
|
20140
|
+
:return_type => 'AsposeResponse')
|
20141
|
+
if @api_client.config.debugging
|
20142
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20143
|
+
end
|
20144
|
+
return data, status_code, headers
|
20145
|
+
end
|
20146
|
+
|
19006
20147
|
# Converts PDF document (in request content) to XML format and uploads resulting file to storage.
|
19007
20148
|
#
|
19008
20149
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xml)
|
@@ -20125,6 +21266,97 @@ module AsposePdfCloud
|
|
20125
21266
|
return data, status_code, headers
|
20126
21267
|
end
|
20127
21268
|
|
21269
|
+
# Converts PDF document (located on storage) to XLSX format and uploads resulting file to storage
|
21270
|
+
#
|
21271
|
+
# @param name The document name.
|
21272
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xlsx)
|
21273
|
+
# @param [Hash] opts the optional parameters
|
21274
|
+
# @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
|
21275
|
+
# @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
|
21276
|
+
# @option opts [Float] :scale_factor Scale factor
|
21277
|
+
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
21278
|
+
# @option opts [String] :folder The document folder.
|
21279
|
+
# @option opts [String] :storage The document storage.
|
21280
|
+
# @return [AsposeResponse]
|
21281
|
+
def put_pdf_in_storage_to_xlsx(name, out_path, opts = {})
|
21282
|
+
@api_client.request_token_if_needed
|
21283
|
+
data, _status_code, _headers = put_pdf_in_storage_to_xlsx_with_http_info(name, out_path, opts)
|
21284
|
+
rescue ApiError => error
|
21285
|
+
if error.code == 401
|
21286
|
+
@api_client.refresh_token
|
21287
|
+
data, _status_code, _headers = put_pdf_in_storage_to_xlsx_with_http_info(name, out_path, opts)
|
21288
|
+
else
|
21289
|
+
raise
|
21290
|
+
end
|
21291
|
+
return data
|
21292
|
+
end
|
21293
|
+
|
21294
|
+
# Converts PDF document (located on storage) to XLSX format and uploads resulting file to storage
|
21295
|
+
#
|
21296
|
+
# @param name The document name.
|
21297
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xlsx)
|
21298
|
+
# @param [Hash] opts the optional parameters
|
21299
|
+
# @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
|
21300
|
+
# @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
|
21301
|
+
# @option opts [Float] :scale_factor Scale factor
|
21302
|
+
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
21303
|
+
# @option opts [String] :folder The document folder.
|
21304
|
+
# @option opts [String] :storage The document storage.
|
21305
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
21306
|
+
def put_pdf_in_storage_to_xlsx_with_http_info(name, out_path, opts = {})
|
21307
|
+
if @api_client.config.debugging
|
21308
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_xlsx ..."
|
21309
|
+
end
|
21310
|
+
# verify the required parameter 'name' is set
|
21311
|
+
if @api_client.config.client_side_validation && name.nil?
|
21312
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_xlsx"
|
21313
|
+
end
|
21314
|
+
# verify the required parameter 'out_path' is set
|
21315
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
21316
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_xlsx"
|
21317
|
+
end
|
21318
|
+
# resource path
|
21319
|
+
local_var_path = "/pdf/{name}/convert/xlsx".sub('{' + 'name' + '}', name.to_s)
|
21320
|
+
|
21321
|
+
# query parameters
|
21322
|
+
query_params = {}
|
21323
|
+
query_params[:'outPath'] = out_path
|
21324
|
+
query_params[:'insertBlankColumnAtFirst'] = opts[:'insert_blank_column_at_first'] if !opts[:'insert_blank_column_at_first'].nil?
|
21325
|
+
query_params[:'minimizeTheNumberOfWorksheets'] = opts[:'minimize_the_number_of_worksheets'] if !opts[:'minimize_the_number_of_worksheets'].nil?
|
21326
|
+
query_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
|
21327
|
+
query_params[:'uniformWorksheets'] = opts[:'uniform_worksheets'] if !opts[:'uniform_worksheets'].nil?
|
21328
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
21329
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
21330
|
+
|
21331
|
+
# header parameters
|
21332
|
+
header_params = {}
|
21333
|
+
# HTTP header 'Accept' (if needed)
|
21334
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
21335
|
+
# HTTP header 'Content-Type'
|
21336
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
21337
|
+
|
21338
|
+
# form parameters
|
21339
|
+
form_params = {}
|
21340
|
+
# Fix header in file
|
21341
|
+
post_body = nil
|
21342
|
+
|
21343
|
+
# http body (model)
|
21344
|
+
# Fix header in file
|
21345
|
+
# post_body = nil
|
21346
|
+
auth_names = []
|
21347
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
21348
|
+
:header_params => header_params,
|
21349
|
+
:query_params => query_params,
|
21350
|
+
:form_params => form_params,
|
21351
|
+
:body => post_body,
|
21352
|
+
:auth_names => auth_names,
|
21353
|
+
:return_type => 'AsposeResponse')
|
21354
|
+
if @api_client.config.debugging
|
21355
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_xlsx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21356
|
+
end
|
21357
|
+
return data, status_code, headers
|
21358
|
+
end
|
21359
|
+
|
20128
21360
|
# Converts PDF document (located on storage) to XML format and uploads resulting file to storage
|
20129
21361
|
#
|
20130
21362
|
# @param name The document name.
|
@@ -21868,6 +23100,89 @@ module AsposePdfCloud
|
|
21868
23100
|
return data, status_code, headers
|
21869
23101
|
end
|
21870
23102
|
|
23103
|
+
# Replace document page table.
|
23104
|
+
#
|
23105
|
+
# @param name The document name.
|
23106
|
+
# @param table_id The table ID.
|
23107
|
+
# @param table The table.
|
23108
|
+
# @param [Hash] opts the optional parameters
|
23109
|
+
# @option opts [String] :storage The document storage.
|
23110
|
+
# @option opts [String] :folder The document folder.
|
23111
|
+
# @return [AsposeResponse]
|
23112
|
+
def put_table(name, table_id, table, opts = {})
|
23113
|
+
@api_client.request_token_if_needed
|
23114
|
+
data, _status_code, _headers = put_table_with_http_info(name, table_id, table, opts)
|
23115
|
+
rescue ApiError => error
|
23116
|
+
if error.code == 401
|
23117
|
+
@api_client.refresh_token
|
23118
|
+
data, _status_code, _headers = put_table_with_http_info(name, table_id, table, opts)
|
23119
|
+
else
|
23120
|
+
raise
|
23121
|
+
end
|
23122
|
+
return data
|
23123
|
+
end
|
23124
|
+
|
23125
|
+
# Replace document page table.
|
23126
|
+
#
|
23127
|
+
# @param name The document name.
|
23128
|
+
# @param table_id The table ID.
|
23129
|
+
# @param table The table.
|
23130
|
+
# @param [Hash] opts the optional parameters
|
23131
|
+
# @option opts [String] :storage The document storage.
|
23132
|
+
# @option opts [String] :folder The document folder.
|
23133
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23134
|
+
def put_table_with_http_info(name, table_id, table, opts = {})
|
23135
|
+
if @api_client.config.debugging
|
23136
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_table ..."
|
23137
|
+
end
|
23138
|
+
# verify the required parameter 'name' is set
|
23139
|
+
if @api_client.config.client_side_validation && name.nil?
|
23140
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_table"
|
23141
|
+
end
|
23142
|
+
# verify the required parameter 'table_id' is set
|
23143
|
+
if @api_client.config.client_side_validation && table_id.nil?
|
23144
|
+
fail ArgumentError, "Missing the required parameter 'table_id' when calling PdfApi.put_table"
|
23145
|
+
end
|
23146
|
+
# verify the required parameter 'table' is set
|
23147
|
+
if @api_client.config.client_side_validation && table.nil?
|
23148
|
+
fail ArgumentError, "Missing the required parameter 'table' when calling PdfApi.put_table"
|
23149
|
+
end
|
23150
|
+
# resource path
|
23151
|
+
local_var_path = "/pdf/{name}/tables/{tableId}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'tableId' + '}', table_id.to_s)
|
23152
|
+
|
23153
|
+
# query parameters
|
23154
|
+
query_params = {}
|
23155
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23156
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23157
|
+
|
23158
|
+
# header parameters
|
23159
|
+
header_params = {}
|
23160
|
+
# HTTP header 'Accept' (if needed)
|
23161
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
23162
|
+
# HTTP header 'Content-Type'
|
23163
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
23164
|
+
|
23165
|
+
# form parameters
|
23166
|
+
form_params = {}
|
23167
|
+
# Fix header in file
|
23168
|
+
post_body = nil
|
23169
|
+
|
23170
|
+
# http body (model)
|
23171
|
+
post_body = @api_client.object_to_http_body(table)
|
23172
|
+
auth_names = []
|
23173
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
23174
|
+
:header_params => header_params,
|
23175
|
+
:query_params => query_params,
|
23176
|
+
:form_params => form_params,
|
23177
|
+
:body => post_body,
|
23178
|
+
:auth_names => auth_names,
|
23179
|
+
:return_type => 'AsposeResponse')
|
23180
|
+
if @api_client.config.debugging
|
23181
|
+
@api_client.config.logger.debug "API called: PdfApi#put_table\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
23182
|
+
end
|
23183
|
+
return data, status_code, headers
|
23184
|
+
end
|
23185
|
+
|
21871
23186
|
# Replace document text annotation
|
21872
23187
|
#
|
21873
23188
|
# @param name The document name.
|