Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 4 additions & 2 deletions docs/PdfApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5655,7 +5655,7 @@ Name | Type | Description | Notes

<a name="postPageRedactionAnnotations"></a>
## **postPageRedactionAnnotations**
> postPageRedactionAnnotations(name, pageNumber, annotations, storage, folder)
> postPageRedactionAnnotations(name, pageNumber, annotations, storage, folder, apply)

Add document page redaction annotations.

Expand All @@ -5667,6 +5667,7 @@ Name | Type | Description | Notes
**annotations** | [**Array&lt;RedactionAnnotation&gt;**](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

Expand Down Expand Up @@ -8301,7 +8302,7 @@ Name | Type | Description | Notes

<a name="putRedactionAnnotation"></a>
## **putRedactionAnnotation**
> putRedactionAnnotation(name, annotationId, annotation, storage, folder)
> putRedactionAnnotation(name, annotationId, annotation, storage, folder, apply)

Replace document redaction annotation

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/RedactionAnnotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br />*Inherited from [Annotation](Annotation.md)* | [optional]
**contents** | **string** | Get the annotation content.<br />*Inherited from [Annotation](Annotation.md)* | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/SignatureCustomAppearance.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/TextStyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
14 changes: 12 additions & 2 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<RedactionAnnotation>, storage?: string, folder?: string) : Promise<{ response: http.IncomingMessage; body: AsposeResponse; }> {
public async postPageRedactionAnnotations (name: string, pageNumber: number, annotations: Array<RedactionAnnotation>, 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', '/'));
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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', '/'));
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/models/redactionAnnotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/models/signatureCustomAppearance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
9 changes: 9 additions & 0 deletions src/models/textStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -64,6 +68,11 @@ export class TextStyle {
"name": "backgroundColor",
"baseName": "BackgroundColor",
"type": "Color"
},
{
"name": "fontFile",
"baseName": "FontFile",
"type": "string"
} ];

static getAttributeTypeMap() {
Expand Down
2 changes: 1 addition & 1 deletion src/requestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down