Skip to content

Commit 226a440

Browse files
author
kirill.novinskiy@aspose.com
committed
PDFCLOUD-4780 Add method for adding Stamp per page in batch
1 parent 1f48b57 commit 226a440

File tree

8 files changed

+783
-1
lines changed

8 files changed

+783
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@
1313
"workspaceMount": "source=${localWorkspaceFolder},target=/SDKs/Java,type=bind,consistency=cached",
1414
"mounts": [
1515
"source=${localWorkspaceFolder}/../../Settings,target=/Settings,type=bind,consistency=cached"
16-
]
16+
],
17+
"customizations": {
18+
"vscode": {
19+
"extensions": [
20+
"vscjava.vscode-java-pack"
21+
]
22+
}
23+
}
1724
}

docs/ImageStampPageSpecified.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
# ImageStampPageSpecified
3+
Represents Pdf stamps.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**pageNumber** | **Integer** | Page number. |
9+
**fileName** | **String** | Gets or sets the file name. | [optional]
10+
**width** | **Double** | Gets or sets image width. Setting this property allos to scal image horizontally. | [optional]
11+
**height** | **Double** | Gets or sets image height. Setting this image allows to scale image vertically. | [optional]
12+
**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
13+
**bottomMargin** | **Double** | Gets or sets bottom margin of stamp. | [optional]
14+
**leftMargin** | **Double** | Gets or sets left margin of stamp. | [optional]
15+
**topMargin** | **Double** | Gets or sets top margin of stamp. | [optional]
16+
**rightMargin** | **Double** | Gets or sets right margin of stamp. | [optional]
17+
**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]
18+
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional]
19+
**opacity** | **Double** | 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]
20+
**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]
21+
**rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
22+
**xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional]
23+
**yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional]
24+
**zoom** | **Double** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
25+
**links** | [**List<Link>**](Link.md) | Link to the document. | [optional]
26+
27+
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/PdfApi.md

Lines changed: 52 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.
@@ -5362,6 +5364,31 @@ Name | Type | Description | Notes
53625364

53635365
[**AsposeResponse**](AsposeResponse.md)
53645366

5367+
### HTTP request headers
5368+
5369+
- **Content-Type**: application/json
5370+
- **Accept**: application/json
5371+
5372+
<a name="postDocumentImageStampsPageSpecified"></a>
5373+
# **postDocumentImageStampsPageSpecified**
5374+
> AsposeResponse postDocumentImageStampsPageSpecified(name, stamps, storage, folder, password)
5375+
5376+
Add document image stamps to specified pages.
5377+
5378+
### Parameters
5379+
5380+
Name | Type | Description | Notes
5381+
------------- | ------------- | ------------- | -------------
5382+
**name** | **String**| The document name. |
5383+
**stamps** | [**List&lt;ImageStampPageSpecified&gt;**](ImageStampPageSpecified.md)| The array of stamps. |
5384+
**storage** | **String**| The document storage. | [optional]
5385+
**folder** | **String**| The document folder. | [optional]
5386+
**password** | **String**| Base64 encoded password. | [optional]
5387+
5388+
### Return type
5389+
5390+
[**AsposeResponse**](AsposeResponse.md)
5391+
53655392
### HTTP request headers
53665393

53675394
- **Content-Type**: application/json
@@ -5490,6 +5517,31 @@ Name | Type | Description | Notes
54905517

54915518
[**AsposeResponse**](AsposeResponse.md)
54925519

5520+
### HTTP request headers
5521+
5522+
- **Content-Type**: application/json
5523+
- **Accept**: application/json
5524+
5525+
<a name="postDocumentTextStampsPageSpecified"></a>
5526+
# **postDocumentTextStampsPageSpecified**
5527+
> AsposeResponse postDocumentTextStampsPageSpecified(name, stamps, storage, folder, password)
5528+
5529+
Add document text stamps to specified pages.
5530+
5531+
### Parameters
5532+
5533+
Name | Type | Description | Notes
5534+
------------- | ------------- | ------------- | -------------
5535+
**name** | **String**| The document name. |
5536+
**stamps** | [**List&lt;TextStampPageSpecified&gt;**](TextStampPageSpecified.md)| The array of stamps. |
5537+
**storage** | **String**| The document storage. | [optional]
5538+
**folder** | **String**| The document folder. | [optional]
5539+
**password** | **String**| Base64 encoded password. | [optional]
5540+
5541+
### Return type
5542+
5543+
[**AsposeResponse**](AsposeResponse.md)
5544+
54935545
### HTTP request headers
54945546

54955547
- **Content-Type**: application/json

docs/TextStampPageSpecified.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
# TextStampPageSpecified
3+
Represents Pdf stamps.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**pageNumber** | **Integer** | Page number. |
9+
**textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Alignment of the text inside the stamp. | [optional]
10+
**value** | **String** | Gets or sets string value which is used as stamp on the page. | [optional]
11+
**textState** | [**TextState**](TextState.md) | Gets text properties of the stamp. See TextState for details. | [optional]
12+
**verticalAlignment** | [**VerticalAlignment**](VerticalAlignment.md) | Gets or sets vertical alignment of stamp on page. | [optional]
13+
**bottomMargin** | **Double** | Gets or sets bottom margin of stamp. | [optional]
14+
**leftMargin** | **Double** | Gets or sets left margin of stamp. | [optional]
15+
**topMargin** | **Double** | Gets or sets top margin of stamp. | [optional]
16+
**rightMargin** | **Double** | Gets or sets right margin of stamp. | [optional]
17+
**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]
18+
**horizontalAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets Horizontal alignment of stamp on the page. | [optional]
19+
**opacity** | **Double** | 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]
20+
**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]
21+
**rotateAngle** | **Double** | Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. | [optional]
22+
**xIndent** | **Double** | Horizontal stamp coordinate, starting from the left. | [optional]
23+
**yIndent** | **Double** | Vertical stamp coordinate, starting from the bottom. | [optional]
24+
**zoom** | **Double** | Zooming factor of the stamp. Allows to scale stamp. | [optional]
25+
**links** | [**List&lt;Link&gt;**](Link.md) | Link to the document. | [optional]
26+
27+
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

0 commit comments

Comments
 (0)