Skip to content

Commit 51ef1a9

Browse files
authored
Merge pull request #72 from aspose-pdf-cloud/develop
update to 25.4
2 parents 149975f + 4488da8 commit 51ef1a9

9 files changed

+551
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ These SDKs are now fully supported. If you have any questions, see any bugs or h
99

1010
Extract Text & Images of a PDF document online https://products.aspose.app/pdf/parser.
1111

12-
## Enhancements in Version 25.3
12+
## Enhancements in Version 25.4
13+
- Add method for adding Stamp per page in batch.
1314
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
1415

1516
## Installation

api_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (c *APIClient) prepareRequest (
176176

177177
// set custom header
178178
headerParams["x-aspose-client"] = "go sdk"
179-
headerParams["x-aspose-client-version"] = "25.3.0"
179+
headerParams["x-aspose-client-version"] = "25.4.0"
180180

181181
// Detect postBody type and post.
182182
if postBody != nil {

docs/ImageStampPageSpecified.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# ImageStampPageSpecified
2+
Represents Pdf stamps.
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Links** | [**[]Link**](Link.md) | Link to the document. | [optional] [default to null]
8+
**Background** | **bool** | 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] [default to null]
9+
**HorizontalAlignment** | [***HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] [default to null]
10+
**Opacity** | **float64** | 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] [default to null]
11+
**Rotate** | [***Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation 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] [default to null]
12+
**RotateAngle** | **float64** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] [default to null]
13+
**XIndent** | **float64** | Horizontal stamp coordinate, starting from the left. | [optional] [default to null]
14+
**YIndent** | **float64** | Vertical stamp coordinate, starting from the bottom. | [optional] [default to null]
15+
**Zoom** | **float64** | Zooming factor of the stamp. Allows to scale stamp. | [optional] [default to null]
16+
**FileName** | **string** | Gets or sets the file name. | [optional] [default to null]
17+
**Width** | **float64** | Gets or sets image width. Setting this property allos to scal image horizontally. | [optional] [default to null]
18+
**Height** | **float64** | Gets or sets image height. Setting this image allows to scale image vertically. | [optional] [default to null]
19+
**VerticalAlignment** | [***VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional] [default to null]
20+
**BottomMargin** | **float64** | Gets or sets bottom margin of stamp. | [optional] [default to null]
21+
**LeftMargin** | **float64** | Gets or sets left margin of stamp. | [optional] [default to null]
22+
**TopMargin** | **float64** | Gets or sets top margin of stamp. | [optional] [default to null]
23+
**RightMargin** | **float64** | Gets or sets right margin of stamp. | [optional] [default to null]
24+
**PageNumber** | **int32** | Page number. | [default to null]
25+
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)[[View Source]](../image_stamp_page_specified.go)
27+
28+

docs/PdfApi.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,13 @@ Method | HTTP request | Description
209209
[**PostDocumentImageFooter**](PdfApi.md#PostDocumentImageFooter) | **Post** /pdf/{name}/footer/image | Add document image footer.
210210
[**PostDocumentImageHeader**](PdfApi.md#PostDocumentImageHeader) | **Post** /pdf/{name}/header/image | Add document image header.
211211
[**PostDocumentImageStamps**](PdfApi.md#PostDocumentImageStamps) | **Post** /pdf/{name}/stamps/image | Add document pages image stamps.
212+
[**PostDocumentImageStampsPageSpecified**](PdfApi.md#PostDocumentImageStampsPageSpecified) | **Post** /pdf/{name}/stamps/image/pagespecified | Add document image stamps to specified pages.
212213
[**PostDocumentPageNumberStamps**](PdfApi.md#PostDocumentPageNumberStamps) | **Post** /pdf/{name}/stamps/pagenumber | Add document page number stamps.
213214
[**PostDocumentTextFooter**](PdfApi.md#PostDocumentTextFooter) | **Post** /pdf/{name}/footer/text | Add document text footer.
214215
[**PostDocumentTextHeader**](PdfApi.md#PostDocumentTextHeader) | **Post** /pdf/{name}/header/text | Add document text header.
215216
[**PostDocumentTextReplace**](PdfApi.md#PostDocumentTextReplace) | **Post** /pdf/{name}/text/replace | Document's replace text method.
216217
[**PostDocumentTextStamps**](PdfApi.md#PostDocumentTextStamps) | **Post** /pdf/{name}/stamps/text | Add document pages text stamps.
218+
[**PostDocumentTextStampsPageSpecified**](PdfApi.md#PostDocumentTextStampsPageSpecified) | **Post** /pdf/{name}/stamps/text/pagespecified | Add document text stamps to specified pages.
217219
[**PostEncryptDocumentInStorage**](PdfApi.md#PostEncryptDocumentInStorage) | **Post** /pdf/{name}/encrypt | Encrypt document in storage.
218220
[**PostFlattenDocument**](PdfApi.md#PostFlattenDocument) | **Post** /pdf/{name}/flatten | Flatten the document.
219221
[**PostHtmlToPdf**](PdfApi.md#PostHtmlToPdf) | **Post** /pdf/create/html | Convert HTML file (zip archive in request content) to PDF format and return resulting file in response.
@@ -7140,6 +7142,40 @@ Name | Type | Description | Notes
71407142

71417143
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
71427144

7145+
# **PostDocumentImageStampsPageSpecified**
7146+
> AsposeResponse PostDocumentImageStampsPageSpecified(name, stamps, optional)
7147+
Add document image stamps to specified pages.
7148+
7149+
### Required Parameters
7150+
7151+
Name | Type | Description | Notes
7152+
------------- | ------------- | ------------- | -------------
7153+
**name** | **string**| The document name. |
7154+
**stamps** | [**[]ImageStampPageSpecified**](ImageStampPageSpecified.md)| The array of stamps. |
7155+
**optional** | **map[string]interface{}** | optional parameters | nil if no parameters
7156+
7157+
### Optional Parameters
7158+
Optional parameters are passed through a map[string]interface{}.
7159+
7160+
Name | Type | Description | Notes
7161+
------------- | ------------- | ------------- | -------------
7162+
**name** | **string**| The document name. |
7163+
**stamps** | [**[]ImageStampPageSpecified**](ImageStampPageSpecified.md)| The array of stamps. |
7164+
**storage** | **string**| The document storage. |
7165+
**folder** | **string**| The document folder. |
7166+
**password** | **string**| Base64 encoded password. |
7167+
7168+
### Return type
7169+
7170+
[**AsposeResponse**](AsposeResponse.md)
7171+
7172+
### HTTP request headers
7173+
7174+
- **Content-Type**: application/json
7175+
- **Accept**: application/json
7176+
7177+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
7178+
71437179
# **PostDocumentPageNumberStamps**
71447180
> AsposeResponse PostDocumentPageNumberStamps(name, stamp, optional)
71457181
Add document page number stamps.
@@ -7313,6 +7349,40 @@ Name | Type | Description | Notes
73137349

73147350
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
73157351

7352+
# **PostDocumentTextStampsPageSpecified**
7353+
> AsposeResponse PostDocumentTextStampsPageSpecified(name, stamps, optional)
7354+
Add document text stamps to specified pages.
7355+
7356+
### Required Parameters
7357+
7358+
Name | Type | Description | Notes
7359+
------------- | ------------- | ------------- | -------------
7360+
**name** | **string**| The document name. |
7361+
**stamps** | [**[]TextStampPageSpecified**](TextStampPageSpecified.md)| The array of stamps. |
7362+
**optional** | **map[string]interface{}** | optional parameters | nil if no parameters
7363+
7364+
### Optional Parameters
7365+
Optional parameters are passed through a map[string]interface{}.
7366+
7367+
Name | Type | Description | Notes
7368+
------------- | ------------- | ------------- | -------------
7369+
**name** | **string**| The document name. |
7370+
**stamps** | [**[]TextStampPageSpecified**](TextStampPageSpecified.md)| The array of stamps. |
7371+
**storage** | **string**| The document storage. |
7372+
**folder** | **string**| The document folder. |
7373+
**password** | **string**| Base64 encoded password. |
7374+
7375+
### Return type
7376+
7377+
[**AsposeResponse**](AsposeResponse.md)
7378+
7379+
### HTTP request headers
7380+
7381+
- **Content-Type**: application/json
7382+
- **Accept**: application/json
7383+
7384+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
7385+
73167386
# **PostEncryptDocumentInStorage**
73177387
> AsposeResponse PostEncryptDocumentInStorage(name, userPassword, ownerPassword, cryptoAlgorithm, optional)
73187388
Encrypt document in storage.

docs/TextStampPageSpecified.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# TextStampPageSpecified
2+
Represents Pdf stamps.
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Links** | [**[]Link**](Link.md) | Link to the document. | [optional] [default to null]
8+
**Background** | **bool** | 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] [default to null]
9+
**HorizontalAlignment** | [***HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional] [default to null]
10+
**Opacity** | **float64** | 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] [default to null]
11+
**Rotate** | [***Rotation**](Rotation.md) | Sets or gets the rotation of stamp content according Rotation 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] [default to null]
12+
**RotateAngle** | **float64** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional] [default to null]
13+
**XIndent** | **float64** | Horizontal stamp coordinate, starting from the left. | [optional] [default to null]
14+
**YIndent** | **float64** | Vertical stamp coordinate, starting from the bottom. | [optional] [default to null]
15+
**Zoom** | **float64** | Zooming factor of the stamp. Allows to scale stamp. | [optional] [default to null]
16+
**TextAlignment** | [***HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional] [default to null]
17+
**Value** | **string** | Gets or sets string value which is used as stamp on the page. | [optional] [default to null]
18+
**TextState** | [***TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional] [default to null]
19+
**VerticalAlignment** | [***VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional] [default to null]
20+
**BottomMargin** | **float64** | Gets or sets bottom margin of stamp. | [optional] [default to null]
21+
**LeftMargin** | **float64** | Gets or sets left margin of stamp. | [optional] [default to null]
22+
**TopMargin** | **float64** | Gets or sets top margin of stamp. | [optional] [default to null]
23+
**RightMargin** | **float64** | Gets or sets right margin of stamp. | [optional] [default to null]
24+
**PageNumber** | **int32** | Page number. | [default to null]
25+
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)[[View Source]](../text_stamp_page_specified.go)
27+
28+

image_stamp_page_specified.go

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
*
3+
* Copyright (c) 2025 Aspose.PDF Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
22+
package asposepdfcloud
23+
24+
// Represents Pdf stamps.
25+
type ImageStampPageSpecified struct {
26+
// Link to the document.
27+
Links []Link `json:"Links,omitempty"`
28+
// 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.
29+
Background bool `json:"Background,omitempty"`
30+
// Gets or sets Horizontal alignment of stamp on the page.
31+
HorizontalAlignment HorizontalAlignment `json:"HorizontalAlignment,omitempty"`
32+
// 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.
33+
Opacity float64 `json:"Opacity,omitempty"`
34+
// Sets or gets the rotation of stamp content according Rotation 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.
35+
Rotate Rotation `json:"Rotate,omitempty"`
36+
// Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
37+
RotateAngle float64 `json:"RotateAngle,omitempty"`
38+
// Horizontal stamp coordinate, starting from the left.
39+
XIndent float64 `json:"XIndent,omitempty"`
40+
// Vertical stamp coordinate, starting from the bottom.
41+
YIndent float64 `json:"YIndent,omitempty"`
42+
// Zooming factor of the stamp. Allows to scale stamp.
43+
Zoom float64 `json:"Zoom,omitempty"`
44+
// Gets or sets the file name.
45+
FileName string `json:"FileName,omitempty"`
46+
// Gets or sets image width. Setting this property allos to scal image horizontally.
47+
Width float64 `json:"Width,omitempty"`
48+
// Gets or sets image height. Setting this image allows to scale image vertically.
49+
Height float64 `json:"Height,omitempty"`
50+
// Gets or sets vertical alignment of stamp on page.
51+
VerticalAlignment VerticalAlignment `json:"VerticalAlignment,omitempty"`
52+
// Gets or sets bottom margin of stamp.
53+
BottomMargin float64 `json:"BottomMargin,omitempty"`
54+
// Gets or sets left margin of stamp.
55+
LeftMargin float64 `json:"LeftMargin,omitempty"`
56+
// Gets or sets top margin of stamp.
57+
TopMargin float64 `json:"TopMargin,omitempty"`
58+
// Gets or sets right margin of stamp.
59+
RightMargin float64 `json:"RightMargin,omitempty"`
60+
// Page number.
61+
PageNumber int32 `json:"PageNumber"`
62+
}

0 commit comments

Comments
 (0)