diff --git a/README.md b/README.md
index 27ea7176..ce4dfd6d 100644
--- a/README.md
+++ b/README.md
@@ -629,7 +629,7 @@ Class | Description
[**Segment**](docs/Segment.md) | Represents segment of Pdf text.
[**ShapeType**](docs/ShapeType.md) | This enum represents shape type for the extracted images.
[**Signature**](docs/Signature.md) | Represents signature.
-[**SignatureCustomAppearance**](docs/SignatureCustomAppearance.md) | An abstract class which represents signature custon appearance object.
+[**SignatureCustomAppearance**](docs/SignatureCustomAppearance.md) | An abstract class which represents signature custom appearance object.
[**SignatureField**](docs/SignatureField.md) | Provides SignatureField.
[**SignatureFieldResponse**](docs/SignatureFieldResponse.md) | Represents response containing single signature field object
[**SignatureFields**](docs/SignatureFields.md) | Object representing a list of signature fields.
diff --git a/docs/PdfApi.md b/docs/PdfApi.md
index 2e6da56f..838463c6 100644
--- a/docs/PdfApi.md
+++ b/docs/PdfApi.md
@@ -5655,7 +5655,7 @@ Name | Type | Description | Notes
## **postPageRedactionAnnotations**
-> postPageRedactionAnnotations(name, pageNumber, annotations, storage, folder)
+> postPageRedactionAnnotations(name, pageNumber, annotations, storage, folder, apply)
Add document page redaction annotations.
@@ -5667,6 +5667,7 @@ Name | Type | Description | Notes
**annotations** | [**Array<RedactionAnnotation>**](RedactionAnnotation.md) | The array of annotation. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
+**apply** | **boolean** | Apply redaction immediately after adding. | [optional]
### Return type
@@ -8301,7 +8302,7 @@ Name | Type | Description | Notes
## **putRedactionAnnotation**
-> putRedactionAnnotation(name, annotationId, annotation, storage, folder)
+> putRedactionAnnotation(name, annotationId, annotation, storage, folder, apply)
Replace document redaction annotation
@@ -8313,6 +8314,7 @@ Name | Type | Description | Notes
**annotation** | [**RedactionAnnotation**](RedactionAnnotation.md) | Annotation. |
**storage** | **string** | The document storage. | [optional]
**folder** | **string** | The document folder. | [optional]
+**apply** | **boolean** | Apply redaction immediately after adding. | [optional]
### Return type
diff --git a/docs/RedactionAnnotation.md b/docs/RedactionAnnotation.md
index 0c76a7e3..c1164ef1 100644
--- a/docs/RedactionAnnotation.md
+++ b/docs/RedactionAnnotation.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**fillColor** | [**Color**](Color.md) | Gets or sets color to fill annotation. | [optional]
**borderColor** | [**Color**](Color.md) | Gets or sets color of border which is drawn when redaction is not active. | [optional]
**overlayText** | **string** | Text to print on redact annotation. | [optional]
-**repeat** | **boolean** | If true overlay text will be repated on the annotation. | [optional]
+**repeat** | **boolean** | If true overlay text will be repeated on the annotation. | [optional]
**textAlignment** | [**HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets. Alignment of Overlay Text. | [optional]
**color** | [**Color**](Color.md) | Color of the annotation.
*Inherited from [Annotation](Annotation.md)* | [optional]
**contents** | **string** | Get the annotation content.
*Inherited from [Annotation](Annotation.md)* | [optional]
diff --git a/docs/SignatureCustomAppearance.md b/docs/SignatureCustomAppearance.md
index 28e1a373..baad3f44 100644
--- a/docs/SignatureCustomAppearance.md
+++ b/docs/SignatureCustomAppearance.md
@@ -1,5 +1,5 @@
# SignatureCustomAppearance
-An abstract class which represents signature custon appearance object.
+An abstract class which represents signature custom appearance object.
## Properties
Name | Type | Description | Notes
diff --git a/docs/TextStyle.md b/docs/TextStyle.md
index 3530ddd6..ae9a0381 100644
--- a/docs/TextStyle.md
+++ b/docs/TextStyle.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**font** | **string** | Gets or sets font of the text. | [optional]
**foregroundColor** | [**Color**](Color.md) | Gets or sets foreground color of the text. | [optional]
**backgroundColor** | [**Color**](Color.md) | Sets background color of the text. | [optional]
+**fontFile** | **string** | Sets path of font file in storage. | [optional]
[[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/textStyle.ts)
diff --git a/package-lock.json b/package-lock.json
index dd4ee4eb..faaaf21b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "asposepdfcloud",
- "version": "20.8.0",
+ "version": "20.9.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 19e50d67..08363969 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "asposepdfcloud",
- "version": "20.8.0",
+ "version": "20.9.0",
"description": "Aspose.PDF Cloud SDK",
"homepage": "https://products.aspose.cloud/pdf/cloud",
"author": {
diff --git a/src/api/api.ts b/src/api/api.ts
index db0f21d1..fd1fc72d 100644
--- a/src/api/api.ts
+++ b/src/api/api.ts
@@ -14110,8 +14110,9 @@ export class PdfApi {
* @param annotations The array of annotation.
* @param storage The document storage.
* @param folder The document folder.
+ * @param apply Apply redaction immediately after adding.
*/
- public async postPageRedactionAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
+ public async postPageRedactionAnnotations (name: string, pageNumber: number, annotations: Array, storage?: string, folder?: string, apply?: boolean) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/pages/{pageNumber}/annotations/redaction'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)).replace('%2F', '/'))
.replace('{' + 'pageNumber' + '}', encodeURIComponent(String(pageNumber)).replace('%2F', '/'));
@@ -14142,6 +14143,10 @@ export class PdfApi {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
+ if (apply !== undefined && null !== apply) {
+ localVarQueryParameters['apply'] = ObjectSerializer.serialize(apply, "boolean");
+ }
+
let localVarUseFormData = false;
let fileData = null;
@@ -21687,8 +21692,9 @@ export class PdfApi {
* @param annotation Annotation.
* @param storage The document storage.
* @param folder The document folder.
+ * @param apply Apply redaction immediately after adding.
*/
- public async putRedactionAnnotation (name: string, annotationId: string, annotation: RedactionAnnotation, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: RedactionAnnotationResponse; }> {
+ public async putRedactionAnnotation (name: string, annotationId: string, annotation: RedactionAnnotation, storage?: string, folder?: string, apply?: boolean) : Promise<{ response: http.IncomingMessage; body: RedactionAnnotationResponse; }> {
const localVarPath = this.basePath + '/pdf/{name}/annotations/redaction/{annotationId}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)).replace('%2F', '/'))
.replace('{' + 'annotationId' + '}', encodeURIComponent(String(annotationId)).replace('%2F', '/'));
@@ -21719,6 +21725,10 @@ export class PdfApi {
localVarQueryParameters['folder'] = ObjectSerializer.serialize(folder, "string");
}
+ if (apply !== undefined && null !== apply) {
+ localVarQueryParameters['apply'] = ObjectSerializer.serialize(apply, "boolean");
+ }
+
let localVarUseFormData = false;
let fileData = null;
diff --git a/src/models/redactionAnnotation.ts b/src/models/redactionAnnotation.ts
index a236fa63..c2dc06a1 100644
--- a/src/models/redactionAnnotation.ts
+++ b/src/models/redactionAnnotation.ts
@@ -45,7 +45,7 @@ export class RedactionAnnotation extends Annotation {
*/
'overlayText': string;
/**
- * If true overlay text will be repated on the annotation.
+ * If true overlay text will be repeated on the annotation.
*/
'repeat': boolean;
/**
diff --git a/src/models/signatureCustomAppearance.ts b/src/models/signatureCustomAppearance.ts
index 8b7bac11..fe8a94c9 100644
--- a/src/models/signatureCustomAppearance.ts
+++ b/src/models/signatureCustomAppearance.ts
@@ -21,7 +21,7 @@
/**
-* An abstract class which represents signature custon appearance object.
+* An abstract class which represents signature custom appearance object.
*/
export class SignatureCustomAppearance {
/**
diff --git a/src/models/textStyle.ts b/src/models/textStyle.ts
index 540d71ee..224345a3 100644
--- a/src/models/textStyle.ts
+++ b/src/models/textStyle.ts
@@ -41,6 +41,10 @@ export class TextStyle {
* Sets background color of the text.
*/
'backgroundColor': Color;
+ /**
+ * Sets path of font file in storage.
+ */
+ 'fontFile': string;
static discriminator = undefined;
@@ -64,6 +68,11 @@ export class TextStyle {
"name": "backgroundColor",
"baseName": "BackgroundColor",
"type": "Color"
+ },
+ {
+ "name": "fontFile",
+ "baseName": "FontFile",
+ "type": "string"
} ];
static getAttributeTypeMap() {
diff --git a/src/requestHelper.ts b/src/requestHelper.ts
index feddd282..d41e8262 100644
--- a/src/requestHelper.ts
+++ b/src/requestHelper.ts
@@ -93,7 +93,7 @@ async function invokeApiMethodInternal(requestOptions: request.Options, confgura
//headers
sa.set("User-Agent", "pdf nodejs sdk");
sa.set("x-aspose-client", "nodejs sdk");
- sa.set("x-aspose-client-version", "20.8.0");
+ sa.set("x-aspose-client-version", "20.9.0");
if (!requestOptions.headers) {
requestOptions.headers = {};