Skip to content

Commit d88be87

Browse files
committed
Updated sources
1 parent 1055c64 commit d88be87

21 files changed

+173
-49
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "groupdocs-viewer-cloud",
3-
"version": "23.10.0",
3+
"version": "24.2.0",
44
"description": "GroupDocs.Viewer Cloud SDK for Node.js",
55
"homepage": "https://products.groupdocs.cloud/viewer",
66
"author": {
@@ -31,7 +31,7 @@
3131
"build:package": "npm pack"
3232
},
3333
"dependencies": {
34-
"axios": "1.3.0",
34+
"axios": "1.6.7",
3535
"form-data": "*",
3636
"jsonwebtoken": "9.0.1",
3737
"qs": "6.11.2"

src/api_client.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-2023 Aspose Pty Ltd
4+
* Copyright (c) 2003-2024 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/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-2023 Aspose Pty Ltd
4+
* Copyright (c) 2003-2024 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-2023 Aspose Pty Ltd
4+
* Copyright (c) 2003-2024 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-2023 Aspose Pty Ltd
4+
* Copyright (c) 2003-2024 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: 135 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2023 Aspose Pty Ltd
4+
* Copyright (c) 2003-2024 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
@@ -1501,6 +1501,129 @@ export namespace PdfDocumentOptions {
15011501
}
15021502
}
15031503
// tslint:enable:quotemark
1504+
/**
1505+
* Contains the PDF optimization options to apply to the output PDF file.
1506+
*/
1507+
export class PdfOptimizationOptions {
1508+
1509+
/**
1510+
* Attribute type map
1511+
*/
1512+
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
1513+
{
1514+
name: "lineriaze",
1515+
baseName: "lineriaze",
1516+
type: "boolean",
1517+
},
1518+
{
1519+
name: "removeAnnotations",
1520+
baseName: "removeAnnotations",
1521+
type: "boolean",
1522+
},
1523+
{
1524+
name: "removeFormFields",
1525+
baseName: "removeFormFields",
1526+
type: "boolean",
1527+
},
1528+
{
1529+
name: "convertToGrayScale",
1530+
baseName: "convertToGrayScale",
1531+
type: "boolean",
1532+
},
1533+
{
1534+
name: "subsetFonts",
1535+
baseName: "subsetFonts",
1536+
type: "boolean",
1537+
},
1538+
{
1539+
name: "compressImages",
1540+
baseName: "compressImages",
1541+
type: "boolean",
1542+
},
1543+
{
1544+
name: "imageQuality",
1545+
baseName: "imageQuality",
1546+
type: "number",
1547+
},
1548+
{
1549+
name: "resizeImages",
1550+
baseName: "resizeImages",
1551+
type: "boolean",
1552+
},
1553+
{
1554+
name: "maxResolution",
1555+
baseName: "maxResolution",
1556+
type: "number",
1557+
},
1558+
{
1559+
name: "optimizeSpreadsheets",
1560+
baseName: "optimizeSpreadsheets",
1561+
type: "boolean",
1562+
} ];
1563+
1564+
/**
1565+
* Returns attribute type map
1566+
*/
1567+
public static getAttributeTypeMap() {
1568+
return PdfOptimizationOptions.attributeTypeMap;
1569+
}
1570+
1571+
/**
1572+
* Enables optimization the output PDF file for viewing online with a web browser. This optimization allows a browser to display the first pages of a PDF file when you open the document, instead of waiting for the entire file to download.
1573+
*/
1574+
public lineriaze: boolean;
1575+
1576+
/**
1577+
* Enables removing annotation from the output PDF file.
1578+
*/
1579+
public removeAnnotations: boolean;
1580+
1581+
/**
1582+
* Enables removing form fields from a PDF file.
1583+
*/
1584+
public removeFormFields: boolean;
1585+
1586+
/**
1587+
* Enables converting the output PDF file to a grayscale.
1588+
*/
1589+
public convertToGrayScale: boolean;
1590+
1591+
/**
1592+
* Subsets fonts in the output PDF file. If the file uses embedded fonts, it contains all font data. GroupDocs.Viewer can subset embedded fonts to reduce the file size.
1593+
*/
1594+
public subsetFonts: boolean;
1595+
1596+
/**
1597+
* Enables compressing images in the output PDF file. Use this option to allow other compressing options: PdfOptimizationOptions.ImageQuality and PdfOptimizationOptions.MaxResolution.
1598+
*/
1599+
public compressImages: boolean;
1600+
1601+
/**
1602+
* Sets the image quality in the output PDF file (in percent). To change the image quality, first set the PdfOptimizationOptions.CompressImages property to true.
1603+
*/
1604+
public imageQuality: number;
1605+
1606+
/**
1607+
* Enables setting the maximum resolution in the output PDF file. To allow this option, set the GroupDocs.Viewer.Options.PdfOptimizationOptions.CompressImages property to true. This option allows setting the GroupDocs.Viewer.Options.PdfOptimizationOptions.MaxResolution property.
1608+
*/
1609+
public resizeImages: boolean;
1610+
1611+
/**
1612+
* Sets the maximum resolution in the output PDF file. To allow this option, set the GroupDocs.Viewer.Options.PdfOptimizationOptions.CompressImages and GroupDocs.Viewer.Options.PdfOptimizationOptions.MaxResolution properties to true. The default value is 300.
1613+
*/
1614+
public maxResolution: number;
1615+
1616+
/**
1617+
* Enables optimization of spreadsheets in the PDF files. This optimization allows to reduce the output file size by setting up border lines. Besides that, it removes the Arial and Times New Roman characters of 32-127 codes.
1618+
*/
1619+
public optimizeSpreadsheets: boolean;
1620+
1621+
public constructor(init?: Partial<PdfOptimizationOptions>) {
1622+
1623+
Object.assign(this, init);
1624+
}
1625+
}
1626+
15041627
/**
15051628
* Represents view information for PDF document
15061629
*/
@@ -3248,11 +3371,6 @@ export class PdfOptions extends RenderOptions {
32483371
* Attribute type map
32493372
*/
32503373
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
3251-
{
3252-
name: "jpgQuality",
3253-
baseName: "jpgQuality",
3254-
type: "number",
3255-
},
32563374
{
32573375
name: "documentOpenPassword",
32583376
baseName: "documentOpenPassword",
@@ -3268,6 +3386,11 @@ export class PdfOptions extends RenderOptions {
32683386
baseName: "permissions",
32693387
type: "Array<string>",
32703388
},
3389+
{
3390+
name: "pdfOptimizationOptions",
3391+
baseName: "pdfOptimizationOptions",
3392+
type: "PdfOptimizationOptions",
3393+
},
32713394
{
32723395
name: "imageMaxWidth",
32733396
baseName: "imageMaxWidth",
@@ -3296,11 +3419,6 @@ export class PdfOptions extends RenderOptions {
32963419
return super.getAttributeTypeMap().concat(PdfOptions.attributeTypeMap);
32973420
}
32983421

3299-
/**
3300-
* The quality of the JPG images contained by output PDF document; Valid values are between 1 and 100; Default value is 90
3301-
*/
3302-
public jpgQuality: number;
3303-
33043422
/**
33053423
* The password required to open the PDF document
33063424
*/
@@ -3316,6 +3434,11 @@ export class PdfOptions extends RenderOptions {
33163434
*/
33173435
public permissions: Array<string>;
33183436

3437+
/**
3438+
* Contains options for rendering documents into PDF format.
3439+
*/
3440+
public pdfOptimizationOptions: PdfOptimizationOptions;
3441+
33193442
/**
33203443
* Max width of an output image in pixels. (When converting single image to HTML only)
33213444
*/
@@ -3416,6 +3539,7 @@ const typeMap = {
34163539
PageInfo,
34173540
PageRotation,
34183541
PdfDocumentOptions,
3542+
PdfOptimizationOptions,
34193543
PdfViewInfo,
34203544
ProjectManagementOptions,
34213545
ProjectManagementViewInfo,

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-2023 Aspose Pty Ltd
4+
* Copyright (c) 2003-2024 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 = "23.10.0";
28+
export const PackageVersion: string = "24.2.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-2023 Aspose Pty Ltd
4+
* Copyright (c) 2003-2024 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-2023 Aspose Pty Ltd
4+
* Copyright (c) 2003-2024 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)