Skip to content

Commit f888b3e

Browse files
author
Kirill Novinskiy
committed
update to 25.7.0
1 parent fecd52f commit f888b3e

10 files changed

+112
-7
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
3030
## Read PDF Formats
3131
MHT, PCL, PS, XSLFO, MD
3232

33-
## Enhancements in Version 25.6
34-
- Develop Rotate Document Pages method.
33+
## Enhancements in Version 25.7
34+
- Add possibility to hide subject field in signature appearance.
3535
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3636

37+
## Bugs fixed in Version 25.7
38+
- PostDeleteStamps removing stamps from PDF page is incorrect.
39+
3740
## Installation
3841

3942
### NPM

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]
8-
**fontSize** | **number** | Gets/sets font size. Default value: 10. |
8+
**fontSize** | **number** | Gets/sets font size. Default value: 10. | [optional]
9+
**rotation** | [**Rotation**](Rotation.md) | Gets or sets signature rotation. |
910
**showContactInfo** | **boolean** | Gets/sets contact info visibility. Default value: true. |
1011
**showReason** | **boolean** | Gets/sets reason visibility. Default value: true. |
1112
**showLocation** | **boolean** | Gets/sets location visibility. Default value: true. |
@@ -16,6 +17,10 @@ Name | Type | Description | Notes
1617
**dateSignedAtLabel** | **string** | Gets/sets date signed label. Default value: "Date". | [optional]
1718
**dateTimeLocalFormat** | **string** | Gets/sets datetime local format. Default value: "yyyy.MM.dd HH:mm:ss zzz". | [optional]
1819
**dateTimeFormat** | **string** | Gets/sets datetime format. Default value: "yyyy.MM.dd HH:mm:ss". | [optional]
20+
**backgroundColor** | [**Color**](Color.md) | Gets/sets background color. | [optional]
21+
**foregroundColor** | [**Color**](Color.md) | Gets/sets foreground color. | [optional]
22+
**useDigitalSubjectFormat** | **boolean** | Gets/sets subject format usage. |
23+
**digitalSubjectFormat** | [**Array<SignatureSubjectNameElements>**](SignatureSubjectNameElements.md) | Gets/sets subject format. | [optional]
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]](../src/models/signatureCustomAppearance.ts)
2126

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SignatureSubjectNameElements
2+
Represents an enumeration of available SubjectNameElements.
3+
4+
## Enum
5+
Name | Type | Value | Description
6+
------------ | ------------- | ------------- | -------------
7+
**C** | **string** | 'C' | Common Name.
8+
**CN** | **string** | 'CN' | Common Name.
9+
**E** | **string** | 'E' | Email.
10+
**L** | **string** | 'L' | Locality.
11+
**O** | **string** | 'O' | Organization.
12+
**OU** | **string** | 'OU' | Organizational Unit.
13+
**S** | **string** | 'S' | State or Province Name.
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]](../src/models/signatureSubjectNameElements.ts)
16+

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposepdfcloud",
3-
"version": "25.6.0",
3+
"version": "25.7.0",
44
"description": "Aspose.PDF Cloud is a REST API for creating and editing PDF files. Most popular features proposed by Aspose.PDF Cloud: PDF to Word, Convert PDF to Image, Merge PDF, Split PDF, Add Images to PDF, Rotate PDF. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.",
55
"homepage": "https://products.aspose.cloud/pdf/cloud",
66
"author": {

src/api/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ import { Segment } from "../models/segment";
111111
import { ShapeType } from "../models/shapeType";
112112
import { Signature } from "../models/signature";
113113
import { SignatureCustomAppearance } from "../models/signatureCustomAppearance";
114+
import { SignatureSubjectNameElements } from "../models/signatureSubjectNameElements";
114115
import { SignatureType } from "../models/signatureType";
115116
import { SoundEncoding } from "../models/soundEncoding";
116117
import { SoundIcon } from "../models/soundIcon";

src/models/signatureCustomAppearance.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*
2020
*/
2121

22+
import { SignatureSubjectNameElements } from "./signatureSubjectNameElements";
23+
import { Color } from "./color";
24+
import { Rotation } from "./rotation";
2225

2326
/**
2427
* An abstract class which represents signature custom appearance object.
@@ -33,6 +36,10 @@ export class SignatureCustomAppearance {
3336
*/
3437
'fontSize': number;
3538
/**
39+
* Gets or sets signature rotation.
40+
*/
41+
'rotation': Rotation;
42+
/**
3643
* Gets/sets contact info visibility. Default value: true.
3744
*/
3845
'showContactInfo': boolean;
@@ -72,6 +79,22 @@ export class SignatureCustomAppearance {
7279
* Gets/sets datetime format. Default value: \"yyyy.MM.dd HH:mm:ss\".
7380
*/
7481
'dateTimeFormat': string;
82+
/**
83+
* Gets/sets background color.
84+
*/
85+
'backgroundColor': Color;
86+
/**
87+
* Gets/sets foreground color.
88+
*/
89+
'foregroundColor': Color;
90+
/**
91+
* Gets/sets subject format usage.
92+
*/
93+
'useDigitalSubjectFormat': boolean;
94+
/**
95+
* Gets/sets subject format.
96+
*/
97+
'digitalSubjectFormat': Array<SignatureSubjectNameElements>;
7598

7699
static discriminator = undefined;
77100

@@ -86,6 +109,11 @@ export class SignatureCustomAppearance {
86109
"baseName": "FontSize",
87110
"type": "number"
88111
},
112+
{
113+
"name": "rotation",
114+
"baseName": "Rotation",
115+
"type": "Rotation"
116+
},
89117
{
90118
"name": "showContactInfo",
91119
"baseName": "ShowContactInfo",
@@ -135,6 +163,26 @@ export class SignatureCustomAppearance {
135163
"name": "dateTimeFormat",
136164
"baseName": "DateTimeFormat",
137165
"type": "string"
166+
},
167+
{
168+
"name": "backgroundColor",
169+
"baseName": "BackgroundColor",
170+
"type": "Color"
171+
},
172+
{
173+
"name": "foregroundColor",
174+
"baseName": "ForegroundColor",
175+
"type": "Color"
176+
},
177+
{
178+
"name": "useDigitalSubjectFormat",
179+
"baseName": "UseDigitalSubjectFormat",
180+
"type": "boolean"
181+
},
182+
{
183+
"name": "digitalSubjectFormat",
184+
"baseName": "DigitalSubjectFormat",
185+
"type": "Array<SignatureSubjectNameElements>"
138186
} ];
139187

140188
static getAttributeTypeMap() {
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
export enum SignatureSubjectNameElements {
23+
CN = 'CN',
24+
O = 'O',
25+
L = 'L',
26+
OU = 'OU',
27+
S = 'S',
28+
C = 'C',
29+
E = 'E',
30+
}

src/objectSerializer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ import { Segment } from "./models/segment";
111111
import { ShapeType } from "./models/shapeType";
112112
import { Signature } from "./models/signature";
113113
import { SignatureCustomAppearance } from "./models/signatureCustomAppearance";
114+
import { SignatureSubjectNameElements } from "./models/signatureSubjectNameElements";
114115
import { SignatureType } from "./models/signatureType";
115116
import { SoundEncoding } from "./models/soundEncoding";
116117
import { SoundIcon } from "./models/soundIcon";
@@ -362,6 +363,7 @@ let enumsMap: {[index: string]: any} = {
362363
"RasterImagesSavingModes": RasterImagesSavingModes,
363364
"Rotation": Rotation,
364365
"ShapeType": ShapeType,
366+
"SignatureSubjectNameElements": SignatureSubjectNameElements,
365367
"SignatureType": SignatureType,
366368
"SoundEncoding": SoundEncoding,
367369
"SoundIcon": SoundIcon,

src/requestHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function invokeApiMethodInternal(requestOptions: request.Options, confgura
9595
//headers
9696
sa.set("User-Agent", "pdf nodejs sdk");
9797
sa.set("x-aspose-client", "nodejs sdk");
98-
sa.set("x-aspose-client-version", "25.6.0");
98+
sa.set("x-aspose-client-version", "25.7.0");
9999

100100
if (!requestOptions.headers) {
101101
requestOptions.headers = {};

0 commit comments

Comments
 (0)