Skip to content

Commit c4ead92

Browse files
committed
Updated sources
1 parent cc57f09 commit c4ead92

20 files changed

+959
-735
lines changed

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "groupdocs-viewer-cloud",
3-
"version": "21.12.0",
3+
"version": "23.3.0",
44
"description": "GroupDocs.Viewer Cloud SDK for Node.js",
55
"homepage": "https://products.groupdocs.cloud/viewer",
66
"author": {
@@ -36,12 +36,12 @@
3636
"request-debug": "^0.2.0"
3737
},
3838
"devDependencies": {
39-
"@types/chai": "^4.2.9",
39+
"@types/chai": "^4.2.14",
4040
"@types/mocha": "^2.2.44",
41-
"@types/node": "^10.17.15",
41+
"@types/node": "^12.19.15",
4242
"asposestoragecloud": "^1.0.5",
4343
"chai": "^4.2.0",
44-
"mocha": "^9.1.2",
44+
"mocha": "^10.2.0",
4545
"ts-node": "^8.6.2",
4646
"tslint": "^6.1.0",
4747
"typescript": "^3.7.5"

src/api_error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-2023 Aspose Pty Ltd
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-2023 Aspose Pty Ltd
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-2023 Aspose Pty Ltd
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

src/model.ts

Lines changed: 111 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-2023 Aspose Pty Ltd
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -1700,6 +1700,11 @@ export class RenderOptions {
17001700
baseName: "defaultEncoding",
17011701
type: "string",
17021702
},
1703+
{
1704+
name: "detectEncoding",
1705+
baseName: "detectEncoding",
1706+
type: "boolean",
1707+
},
17031708
{
17041709
name: "renderComments",
17051710
baseName: "renderComments",
@@ -1769,6 +1774,11 @@ export class RenderOptions {
17691774
name: "visioRenderingOptions",
17701775
baseName: "visioRenderingOptions",
17711776
type: "VisioRenderingOptions",
1777+
},
1778+
{
1779+
name: "webDocumentOptions",
1780+
baseName: "webDocumentOptions",
1781+
type: "WebDocumentOptions",
17721782
} ];
17731783

17741784
/**
@@ -1808,6 +1818,11 @@ export class RenderOptions {
18081818
*/
18091819
public defaultEncoding: string;
18101820

1821+
/**
1822+
* This option enables TXT, TSV, and CSV files encoding detection. In case the encoding can't be detected the DefaultEncoding is used.
1823+
*/
1824+
public detectEncoding: boolean;
1825+
18111826
/**
18121827
* When enabled comments will be rendered to the output
18131828
*/
@@ -1878,6 +1893,11 @@ export class RenderOptions {
18781893
*/
18791894
public visioRenderingOptions: VisioRenderingOptions;
18801895

1896+
/**
1897+
* This rendering options enables you to customize the appearance of the output HTML/PDF/PNG/JPEG when rendering Web documents.
1898+
*/
1899+
public webDocumentOptions: WebDocumentOptions;
1900+
18811901
public constructor(init?: Partial<RenderOptions>) {
18821902

18831903
Object.assign(this, init);
@@ -2623,6 +2643,94 @@ export namespace Watermark {
26232643
}
26242644
}
26252645
// tslint:enable:quotemark
2646+
/**
2647+
* This rendering options enables you to customize the appearance of the output HTML/PDF/PNG/JPEG when rendering Web documents.
2648+
*/
2649+
export class WebDocumentOptions {
2650+
2651+
/**
2652+
* Attribute type map
2653+
*/
2654+
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
2655+
{
2656+
name: "pageSize",
2657+
baseName: "pageSize",
2658+
type: "WebDocumentOptions.PageSizeEnum",
2659+
},
2660+
{
2661+
name: "leftMargin",
2662+
baseName: "leftMargin",
2663+
type: "number",
2664+
},
2665+
{
2666+
name: "rightMargin",
2667+
baseName: "rightMargin",
2668+
type: "number",
2669+
},
2670+
{
2671+
name: "topMargin",
2672+
baseName: "topMargin",
2673+
type: "number",
2674+
},
2675+
{
2676+
name: "bottomMargin",
2677+
baseName: "bottomMargin",
2678+
type: "number",
2679+
} ];
2680+
2681+
/**
2682+
* Returns attribute type map
2683+
*/
2684+
public static getAttributeTypeMap() {
2685+
return WebDocumentOptions.attributeTypeMap;
2686+
}
2687+
2688+
/**
2689+
* The size of the output page. The default value is GroupDocs.Viewer.Options.PageSize.Letter 792 x 612 points. When contents does not fit set a larger page size e.g. GroupDocs.Viewer.Options.PageSize.A3.
2690+
*/
2691+
public pageSize: WebDocumentOptions.PageSizeEnum;
2692+
2693+
/**
2694+
* The distance (in points) between the left edge of the page and the left boundary of the body text. The default value is 5 points.
2695+
*/
2696+
public leftMargin: number;
2697+
2698+
/**
2699+
* The distance (in points) between the right edge of the page and the right boundary of the body text. The default value is 5 points.
2700+
*/
2701+
public rightMargin: number;
2702+
2703+
/**
2704+
* The distance (in points) between the top edge of the page and the top boundary of the body text. The default value is 72 points.
2705+
*/
2706+
public topMargin: number;
2707+
2708+
/**
2709+
* The distance (in points) between the bottom edge of the page and the bottom boundary of the body text. The default value is 72 points.
2710+
*/
2711+
public bottomMargin: number;
2712+
2713+
public constructor(init?: Partial<WebDocumentOptions>) {
2714+
2715+
Object.assign(this, init);
2716+
}
2717+
}
2718+
2719+
// tslint:disable:quotemark
2720+
// tslint:disable-next-line:no-namespace
2721+
export namespace WebDocumentOptions {
2722+
export enum PageSizeEnum {
2723+
Unspecified = 'Unspecified' as any,
2724+
Letter = 'Letter' as any,
2725+
Ledger = 'Ledger' as any,
2726+
A0 = 'A0' as any,
2727+
A1 = 'A1' as any,
2728+
A2 = 'A2' as any,
2729+
A3 = 'A3' as any,
2730+
A4 = 'A4' as any,
2731+
}
2732+
}
2733+
// tslint:enable:quotemark
26262734
/**
26272735
* Provides options for rendering word processing documents
26282736
*/
@@ -3276,6 +3384,7 @@ const enumsMap = {
32763384
"SpreadsheetOptions.TextOverflowModeEnum": SpreadsheetOptions.TextOverflowModeEnum,
32773385
"ViewOptions.ViewFormatEnum": ViewOptions.ViewFormatEnum,
32783386
"Watermark.PositionEnum": Watermark.PositionEnum,
3387+
"WebDocumentOptions.PageSizeEnum": WebDocumentOptions.PageSizeEnum,
32793388
};
32803389

32813390
const typeMap = {
@@ -3322,6 +3431,7 @@ const typeMap = {
33223431
ViewResult,
33233432
VisioRenderingOptions,
33243433
Watermark,
3434+
WebDocumentOptions,
33253435
WordProcessingOptions,
33263436
AttachmentView,
33273437
Character,

src/package_version.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-2023 Aspose Pty Ltd
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -25,4 +25,4 @@
2525
/**
2626
* Package version
2727
*/
28-
export const PackageVersion: string = "21.12.0";
28+
export const PackageVersion: string = "23.3.0";

src/serializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-2023 Aspose Pty Ltd
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

src/viewer_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-2023 Aspose Pty Ltd
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

test/api/test_auth_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-2023 Aspose Pty Ltd
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)