Skip to content

Commit 381763c

Browse files
author
Kirill Novinskiy
committed
update to 25.7.0
1 parent ec0f1f8 commit 381763c

File tree

6 files changed

+75
-5
lines changed

6 files changed

+75
-5
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ 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.6
13-
- Develop Rotate Document Pages method.
12+
## Enhancements in Version 25.7
13+
- Add possibility to hide subject field in signature appearance.
1414
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
1515

16+
## Bugs fixed in Version 25.7
17+
- PostDeleteStamps removing stamps from PDF page is incorrect.
18+
1619
## Installation
1720
```
1821
go get -u github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/v24

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.6.0"
179+
headerParams["x-aspose-client-version"] = "25.7.0"
180180

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

docs/SignatureCustomAppearance.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ An abstract class which represents signature custom appearance object.
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**FontFamilyName** | **string** | Gets/sets font family name. It should be existed in the document. Default value: Arial. | [optional] [default to null]
8-
**FontSize** | **float64** | Gets/sets font size. Default value: 10. | [default to null]
8+
**FontSize** | **float64** | Gets/sets font size. Default value: 10. | [optional] [default to null]
9+
**Rotation** | [***Rotation**](Rotation.md) | Gets or sets signature rotation. | [default to null]
910
**ShowContactInfo** | **bool** | Gets/sets contact info visibility. Default value: true. | [default to null]
1011
**ShowReason** | **bool** | Gets/sets reason visibility. Default value: true. | [default to null]
1112
**ShowLocation** | **bool** | Gets/sets location visibility. Default value: true. | [default to null]
@@ -16,6 +17,10 @@ Name | Type | Description | Notes
1617
**DateSignedAtLabel** | **string** | Gets/sets date signed label. Default value: "Date". | [optional] [default to null]
1718
**DateTimeLocalFormat** | **string** | Gets/sets datetime local format. Default value: "yyyy.MM.dd HH:mm:ss zzz". | [optional] [default to null]
1819
**DateTimeFormat** | **string** | Gets/sets datetime format. Default value: "yyyy.MM.dd HH:mm:ss". | [optional] [default to null]
20+
**BackgroundColor** | [***Color**](Color.md) | Gets/sets background color. | [optional] [default to null]
21+
**ForegroundColor** | [***Color**](Color.md) | Gets/sets foreground color. | [optional] [default to null]
22+
**UseDigitalSubjectFormat** | **bool** | Gets/sets subject format usage. | [default to null]
23+
**DigitalSubjectFormat** | [**[]SignatureSubjectNameElements**](SignatureSubjectNameElements.md) | Gets/sets subject format. | [optional] [default to null]
1924

2025
[[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]](../signature_custom_appearance.go)
2126

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SignatureSubjectNameElements
2+
Represents an enumeration of available SubjectNameElements.
3+
4+
## Enum
5+
Name | Type | Value | Description
6+
------------ | ------------- | ------------- | -------------
7+
**SignatureSubjectNameElementsCN** | **string** | "CN" | Common Name.
8+
**SignatureSubjectNameElementsO** | **string** | "O" | Organization.
9+
**SignatureSubjectNameElementsL** | **string** | "L" | Locality.
10+
**SignatureSubjectNameElementsOU** | **string** | "OU" | Organizational Unit.
11+
**SignatureSubjectNameElementsS** | **string** | "S" | State or Province Name.
12+
**SignatureSubjectNameElementsC** | **string** | "C" | Common Name.
13+
**SignatureSubjectNameElementsE** | **string** | "E" | Email.
14+
15+
[[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]](../signature_subject_name_elements.go)
16+
17+

signature_custom_appearance.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ type SignatureCustomAppearance struct {
2626
// Gets/sets font family name. It should be existed in the document. Default value: Arial.
2727
FontFamilyName string `json:"FontFamilyName,omitempty"`
2828
// Gets/sets font size. Default value: 10.
29-
FontSize float64 `json:"FontSize"`
29+
FontSize float64 `json:"FontSize,omitempty"`
30+
// Gets or sets signature rotation.
31+
Rotation Rotation `json:"Rotation"`
3032
// Gets/sets contact info visibility. Default value: true.
3133
ShowContactInfo bool `json:"ShowContactInfo"`
3234
// Gets/sets reason visibility. Default value: true.
@@ -47,4 +49,12 @@ type SignatureCustomAppearance struct {
4749
DateTimeLocalFormat string `json:"DateTimeLocalFormat,omitempty"`
4850
// Gets/sets datetime format. Default value: \"yyyy.MM.dd HH:mm:ss\".
4951
DateTimeFormat string `json:"DateTimeFormat,omitempty"`
52+
// Gets/sets background color.
53+
BackgroundColor *Color `json:"BackgroundColor,omitempty"`
54+
// Gets/sets foreground color.
55+
ForegroundColor *Color `json:"ForegroundColor,omitempty"`
56+
// Gets/sets subject format usage.
57+
UseDigitalSubjectFormat bool `json:"UseDigitalSubjectFormat"`
58+
// Gets/sets subject format.
59+
DigitalSubjectFormat []SignatureSubjectNameElements `json:"DigitalSubjectFormat,omitempty"`
5060
}

signature_subject_name_elements.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
// SignatureSubjectNameElements : Represents an enumeration of available SubjectNameElements.
24+
type SignatureSubjectNameElements string
25+
26+
// List of SignatureSubjectNameElements
27+
const (
28+
SignatureSubjectNameElementsCN SignatureSubjectNameElements = "CN"
29+
SignatureSubjectNameElementsO SignatureSubjectNameElements = "O"
30+
SignatureSubjectNameElementsL SignatureSubjectNameElements = "L"
31+
SignatureSubjectNameElementsOU SignatureSubjectNameElements = "OU"
32+
SignatureSubjectNameElementsS SignatureSubjectNameElements = "S"
33+
SignatureSubjectNameElementsC SignatureSubjectNameElements = "C"
34+
SignatureSubjectNameElementsE SignatureSubjectNameElements = "E"
35+
)

0 commit comments

Comments
 (0)