Skip to content

Commit 4ac6c02

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents b93584c + 3565eb5 commit 4ac6c02

7 files changed

+92
-4
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ 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 24.7
20+
21+
- Added support for azw3 (Amazon Kindle Format) documents.
22+
23+
1924
## Enhancements in Version 24.6
2025

2126
- Added the 'TranslateNodeId' method to transalate a node id to a node path.

package.json

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

src/internal/requestHelper.ts

+1-1
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"] = "24.6";
134+
requestOptions.headers["x-aspose-client-version"] = "24.7";
135135
requestOptions.encoding = null;
136136

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

src/model/azw3SaveOptionsData.ts

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="azw3SaveOptionsData.ts">
4+
* Copyright (c) 2024 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
import { AttributeInfo } from '../internal/attributeInfo';
29+
import { ModelInterface } from './modelInterface';
30+
import { HtmlSaveOptionsData } from './htmlSaveOptionsData';
31+
32+
export const importsMapAzw3SaveOptionsData = {
33+
HtmlSaveOptionsData,
34+
};
35+
36+
/**
37+
* Container class for azw3 save options.
38+
*/
39+
export class Azw3SaveOptionsData extends HtmlSaveOptionsData {
40+
/**
41+
* Attribute type map
42+
*/
43+
public static attributeTypeMap: Array<AttributeInfo> = [
44+
{
45+
name: "navigationMapLevel",
46+
baseName: "NavigationMapLevel",
47+
type: "number",
48+
}
49+
];
50+
51+
/**
52+
* Returns attribute type map
53+
*/
54+
public static getAttributeTypeMap() {
55+
return super.getAttributeTypeMap().concat(Azw3SaveOptionsData.attributeTypeMap);
56+
}
57+
58+
/**
59+
* Gets or sets the maximum level of headings populated to the navigation map when exporting.
60+
*/
61+
public navigationMapLevel: number;
62+
63+
public constructor(init?: Partial< Azw3SaveOptionsData >) {
64+
super(init);
65+
this.saveFormat = 'azw3';
66+
67+
Object.assign(this, init);
68+
}
69+
70+
public collectFilesContent(_resultFilesContent: Array<any>) {
71+
}
72+
73+
public validate() {
74+
super.validate();
75+
}
76+
}
77+

src/model/document.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ export namespace Document {
179179
Pdf = 'Pdf' as any,
180180
Xps = 'Xps' as any,
181181
Tiff = 'Tiff' as any,
182-
Svg = 'Svg' as any
182+
Svg = 'Svg' as any,
183+
Azw3 = 'Azw3' as any
183184
}
184185
}
185186
// tslint:enable:quotemark

src/model/model.ts

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { ObjectSerializer } from "../internal/objectSerializer";
3636
import { Encryptor, FileReference } from '../api';
3737
import * as importedApiError from './apiError';
3838
import * as importedAvailableFontsResponse from './availableFontsResponse';
39+
import * as importedAzw3SaveOptionsData from './azw3SaveOptionsData';
3940
import * as importedBaseEntry from './baseEntry';
4041
import * as importedBaseEntryList from './baseEntryList';
4142
import * as importedBmpSaveOptionsData from './bmpSaveOptionsData';
@@ -319,6 +320,7 @@ import * as importedXpsSaveOptionsData from './xpsSaveOptionsData';
319320
export { AttributeInfo } from '../internal/attributeInfo';
320321
export * from './apiError';
321322
export * from './availableFontsResponse';
323+
export * from './azw3SaveOptionsData';
322324
export * from './baseEntry';
323325
export * from './baseEntryList';
324326
export * from './bmpSaveOptionsData';
@@ -738,6 +740,7 @@ const typeMap = {
738740
FileReference: importedFileReference.FileReference,
739741
ApiError: importedApiError.ApiError,
740742
AvailableFontsResponse: importedAvailableFontsResponse.AvailableFontsResponse,
743+
Azw3SaveOptionsData: importedAzw3SaveOptionsData.Azw3SaveOptionsData,
741744
BmpSaveOptionsData: importedBmpSaveOptionsData.BmpSaveOptionsData,
742745
Bookmark: importedBookmark.Bookmark,
743746
BookmarkData: importedBookmarkData.BookmarkData,

src/model/pdfSaveOptionsData.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ export namespace PdfSaveOptionsData {
412412
PdfA2a = 'PdfA2a' as any,
413413
PdfA2u = 'PdfA2u' as any,
414414
PdfA4 = 'PdfA4' as any,
415-
PdfUa1 = 'PdfUa1' as any
415+
PdfA4Ua2 = 'PdfA4Ua2' as any,
416+
PdfUa1 = 'PdfUa1' as any,
417+
PdfUa2 = 'PdfUa2' as any
416418
}
417419

418420
export enum CustomPropertiesExportEnum {

0 commit comments

Comments
 (0)