Skip to content

Commit 2a191fd

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 3a5ce0c + 9fe3731 commit 2a191fd

File tree

8 files changed

+58
-2
lines changed

8 files changed

+58
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
1616
- Add & remove watermarks and protection.
1717
- Read & write access to Document Object Model.
1818

19+
## Enhancements in Version 25.4
20+
21+
- Added 'AttachmentsEmbeddingMode' property for PdfSaveOptionsData class.
22+
- Added 'UpdateAmbiguousTextFont' property for SaveOptionsData class.
23+
- Added 'Granularity' property for CompareOptions class.
24+
25+
1926
## Enhancements in Version 25.2
2027

2128
- Added 'IdPrefix' property for HtmlFixedSaveOptionsData and SvgSaveOptionsData class.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposewordscloud",
3-
"version": "25.3.0",
3+
"version": "25.4.0",
44
"description": "Aspose.Words Cloud SDK for Node.js",
55
"homepage": "https://products.aspose.cloud/words/cloud",
66
"author": {

src/internal/requestHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async function invokeApiMethodInternal(requestOptions: request.OptionsWithUri, c
131131
requestOptions.timeout = 1000 * confguration.timeout;
132132

133133
requestOptions.headers["x-aspose-client"] = "nodejs sdk";
134-
requestOptions.headers["x-aspose-client-version"] = "25.3";
134+
requestOptions.headers["x-aspose-client-version"] = "25.4";
135135
requestOptions.encoding = null;
136136

137137
requestOptions.uri = encodeURI(requestOptions.uri.toString());

src/model/compareOptions.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export class CompareOptions implements ModelInterface {
4444
baseName: "AcceptAllRevisionsBeforeComparison",
4545
type: "boolean",
4646
},
47+
{
48+
name: "granularity",
49+
baseName: "Granularity",
50+
type: "CompareOptions.GranularityEnum",
51+
},
4752
{
4853
name: "ignoreCaseChanges",
4954
baseName: "IgnoreCaseChanges",
@@ -103,6 +108,11 @@ export class CompareOptions implements ModelInterface {
103108
*/
104109
public acceptAllRevisionsBeforeComparison: boolean;
105110

111+
/**
112+
* Gets or sets the option indicating whether changes are tracked by character or by word.
113+
*/
114+
public granularity: CompareOptions.GranularityEnum;
115+
106116
/**
107117
* Gets or sets a value indicating whether documents comparison is case insensitive. By default comparison is case sensitive.
108118
*/
@@ -165,6 +175,11 @@ export class CompareOptions implements ModelInterface {
165175
// tslint:disable:quotemark
166176
// tslint:disable-next-line:no-namespace
167177
export namespace CompareOptions {
178+
export enum GranularityEnum {
179+
CharLevel = 'CharLevel' as any,
180+
WordLevel = 'WordLevel' as any
181+
}
182+
168183
export enum TargetEnum {
169184
Current = 'Current' as any,
170185
New = 'New' as any

src/model/model.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ export class WordsIncomingMessage<T> {
633633
const enumsMap = {
634634
"Border.BorderTypeEnum": importedBorder.Border.BorderTypeEnum,
635635
"Border.LineStyleEnum": importedBorder.Border.LineStyleEnum,
636+
"CompareOptions.GranularityEnum": importedCompareOptions.CompareOptions.GranularityEnum,
636637
"CompareOptions.TargetEnum": importedCompareOptions.CompareOptions.TargetEnum,
637638
"Document.SourceFormatEnum": importedDocument.Document.SourceFormatEnum,
638639
"DocumentEntry.ImportFormatModeEnum": importedDocumentEntry.DocumentEntry.ImportFormatModeEnum,
@@ -702,6 +703,7 @@ const enumsMap = {
702703
"ParagraphFormatBase.StyleIdentifierEnum": importedParagraphFormatBase.ParagraphFormatBase.StyleIdentifierEnum,
703704
"PdfDigitalSignatureDetailsData.HashAlgorithmEnum": importedPdfDigitalSignatureDetailsData.PdfDigitalSignatureDetailsData.HashAlgorithmEnum,
704705
"PdfPermissions": importedPdfPermissions.PdfPermissions,
706+
"PdfSaveOptionsData.AttachmentsEmbeddingModeEnum": importedPdfSaveOptionsData.PdfSaveOptionsData.AttachmentsEmbeddingModeEnum,
705707
"PdfSaveOptionsData.ComplianceEnum": importedPdfSaveOptionsData.PdfSaveOptionsData.ComplianceEnum,
706708
"PdfSaveOptionsData.CustomPropertiesExportEnum": importedPdfSaveOptionsData.PdfSaveOptionsData.CustomPropertiesExportEnum,
707709
"PdfSaveOptionsData.FontEmbeddingModeEnum": importedPdfSaveOptionsData.PdfSaveOptionsData.FontEmbeddingModeEnum,

src/model/pageSetup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ export namespace PageSetup {
473473
Paper10x14 = 'Paper10x14' as any,
474474
Paper11x17 = 'Paper11x17' as any,
475475
Number10Envelope = 'Number10Envelope' as any,
476+
JisB4 = 'JisB4' as any,
477+
JisB5 = 'JisB5' as any,
476478
Custom = 'Custom' as any
477479
}
478480

src/model/pdfSaveOptionsData.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ export class PdfSaveOptionsData extends FixedPageSaveOptionsData {
4949
* Attribute type map
5050
*/
5151
public static attributeTypeMap: Array<AttributeInfo> = [
52+
{
53+
name: "attachmentsEmbeddingMode",
54+
baseName: "AttachmentsEmbeddingMode",
55+
type: "PdfSaveOptionsData.AttachmentsEmbeddingModeEnum",
56+
},
5257
{
5358
name: "cacheBackgroundGraphics",
5459
baseName: "CacheBackgroundGraphics",
@@ -203,6 +208,14 @@ export class PdfSaveOptionsData extends FixedPageSaveOptionsData {
203208
return super.getAttributeTypeMap().concat(PdfSaveOptionsData.attributeTypeMap);
204209
}
205210

211+
/**
212+
* Gets or sets a value determining how attachments are embedded to the PDF document.
213+
* Default value is None and attachments are not embedded.
214+
* PDF/A-1, PDF/A-2 and regular PDF/A-4 (not PDF/A-4f) standards do not allow embedded files.
215+
* None value will be used automatically.
216+
*/
217+
public attachmentsEmbeddingMode: PdfSaveOptionsData.AttachmentsEmbeddingModeEnum;
218+
206219
/**
207220
* Gets or sets a value determining whether or not to cache graphics placed in document's background.
208221
* Default value is true and background graphics are written to the PDF document as an xObject. When the value is false background graphics are not cached. Some shapes are not supported for caching(shapes with fields, bookmarks, HRefs). Document background graphic is various shapes, charts, images placed in the footer or header,
@@ -430,6 +443,12 @@ export class PdfSaveOptionsData extends FixedPageSaveOptionsData {
430443
// tslint:disable:quotemark
431444
// tslint:disable-next-line:no-namespace
432445
export namespace PdfSaveOptionsData {
446+
export enum AttachmentsEmbeddingModeEnum {
447+
None = 'None' as any,
448+
Annotations = 'Annotations' as any,
449+
DocumentEmbeddedFiles = 'DocumentEmbeddedFiles' as any
450+
}
451+
433452
export enum ComplianceEnum {
434453
Pdf17 = 'Pdf17' as any,
435454
Pdf20 = 'Pdf20' as any,

src/model/saveOptionsData.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export abstract class SaveOptionsData implements ModelInterface {
7676
baseName: "ImlRenderingMode",
7777
type: "SaveOptionsData.ImlRenderingModeEnum",
7878
},
79+
{
80+
name: "updateAmbiguousTextFont",
81+
baseName: "UpdateAmbiguousTextFont",
82+
type: "boolean",
83+
},
7984
{
8085
name: "updateCreatedTimeProperty",
8186
baseName: "UpdateCreatedTimeProperty",
@@ -160,6 +165,11 @@ export abstract class SaveOptionsData implements ModelInterface {
160165
*/
161166
public imlRenderingMode: SaveOptionsData.ImlRenderingModeEnum;
162167

168+
/**
169+
* Gets or sets a value indicating whether the font attributes will be changed according to the character code being used.
170+
*/
171+
public updateAmbiguousTextFont: boolean;
172+
163173
/**
164174
* Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
165175
* Default value is false.
@@ -220,6 +230,7 @@ export abstract class SaveOptionsData implements ModelInterface {
220230

221231

222232

233+
223234
}
224235
}
225236

0 commit comments

Comments
 (0)