Skip to content

Commit 5005dea

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 8d9d2ae + 740c680 commit 5005dea

File tree

7 files changed

+118
-4
lines changed

7 files changed

+118
-4
lines changed

AsposeWordsCloud.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'AsposeWordsCloud'
3-
s.version = '24.6'
3+
s.version = '24.7'
44
s.summary = 'Aspose Words for Cloud.'
55
s.homepage = 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git'
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ This repository contains Aspose.Words Cloud SDK for Swift source code. This SDK
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 24.7
17+
18+
- Added support for azw3 (Amazon Kindle Format) documents.
19+
20+
1621
## Enhancements in Version 24.6
1722

1823
- Added the 'TranslateNodeId' method to transalate a node id to a node path.
@@ -341,7 +346,7 @@ Add link to this repository as dependency to your Package.swift:
341346

342347
dependencies: [
343348
// Dependencies declare other packages that this package depends on.
344-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "24.6"),
349+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "24.7"),
345350
],
346351
targets: [
347352
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -359,7 +364,7 @@ targets: [
359364
Add link to git repository as dependency to your Podfile:
360365

361366
```ruby
362-
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '24.6'
367+
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '24.7'
363368
```
364369

365370
## Getting Started

Sources/AsposeWordsCloud/Api/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ public class Configuration : Codable {
188188

189189
// Returns SDK version for using in statistics headers
190190
public func getSdkVersion() -> String {
191-
return "24.6";
191+
return "24.7";
192192
}
193193
}

Sources/AsposeWordsCloud/Api/ObjectSerializer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class ObjectSerializer {
5050
private static let modelsFactory:[String: WordsApiModel.Type?] = [
5151
"ApiError, _": ApiError.self,
5252
"AvailableFontsResponse, _": AvailableFontsResponse.self,
53+
"Azw3SaveOptionsData, _": Azw3SaveOptionsData.self,
5354
"BmpSaveOptionsData, _": BmpSaveOptionsData.self,
5455
"Bookmark, _": Bookmark.self,
5556
"BookmarkData, _": BookmarkData.self,
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="Azw3SaveOptionsData.swift">
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 Foundation
29+
30+
// Container class for azw3 save options.
31+
@available(macOS 10.12, iOS 10.3, watchOS 3.3, tvOS 12.0, *)
32+
public class Azw3SaveOptionsData : HtmlSaveOptionsData {
33+
// Field of navigationMapLevel. Container class for azw3 save options.
34+
private var _navigationMapLevel : Int? = nil;
35+
36+
public var navigationMapLevel : Int? {
37+
get {
38+
return self._navigationMapLevel;
39+
}
40+
set {
41+
self._navigationMapLevel = newValue;
42+
}
43+
}
44+
45+
// Field of saveFormat. Container class for azw3 save options.
46+
private final let _saveFormat : String? = "azw3";
47+
48+
override public var saveFormat : String? {
49+
get {
50+
return self._saveFormat;
51+
}
52+
}
53+
54+
private enum CodingKeys: String, CodingKey {
55+
case navigationMapLevel = "NavigationMapLevel";
56+
case invalidCodingKey;
57+
}
58+
59+
public override init() {
60+
super.init();
61+
}
62+
63+
public required init(from json: [String: Any]) throws {
64+
try super.init(from: json);
65+
self.navigationMapLevel = json["NavigationMapLevel"] as? Int;
66+
}
67+
68+
public required init(from decoder: Decoder) throws {
69+
try super.init(from: decoder);
70+
let container = try decoder.container(keyedBy: CodingKeys.self);
71+
self.navigationMapLevel = try container.decodeIfPresent(Int.self, forKey: .navigationMapLevel);
72+
}
73+
74+
public override func encode(to encoder: Encoder) throws {
75+
try super.encode(to: encoder);
76+
var container = encoder.container(keyedBy: CodingKeys.self);
77+
if (self.navigationMapLevel != nil) {
78+
try container.encode(self.navigationMapLevel, forKey: .navigationMapLevel);
79+
}
80+
}
81+
82+
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
83+
}
84+
85+
public override func validate() throws {
86+
try super.validate();
87+
}
88+
89+
// Sets navigationMapLevel. Gets or sets the maximum level of headings populated to the navigation map when exporting.
90+
public func setNavigationMapLevel(navigationMapLevel : Int?) -> Azw3SaveOptionsData {
91+
self.navigationMapLevel = navigationMapLevel;
92+
return self;
93+
}
94+
95+
// Gets navigationMapLevel. Gets or sets the maximum level of headings populated to the navigation map when exporting.
96+
public func getNavigationMapLevel() -> Int? {
97+
return self.navigationMapLevel;
98+
}
99+
}

Sources/AsposeWordsCloud/Model/Document.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ public class Document : Codable, WordsApiModel {
9595

9696
// Enum value "svg"
9797
case svg = "Svg"
98+
99+
// Enum value "azw3"
100+
case azw3 = "Azw3"
98101
}
99102

100103
// Field of links. Represents Words document DTO.

Sources/AsposeWordsCloud/Model/PdfSaveOptionsData.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
5454
// Enum value "pdfA4"
5555
case pdfA4 = "PdfA4"
5656

57+
// Enum value "pdfA4Ua2"
58+
case pdfA4Ua2 = "PdfA4Ua2"
59+
5760
// Enum value "pdfUa1"
5861
case pdfUa1 = "PdfUa1"
62+
63+
// Enum value "pdfUa2"
64+
case pdfUa2 = "PdfUa2"
5965
}
6066

6167
// Gets or sets the option that controls the way CustomDocumentProperties are exported to PDF file.

0 commit comments

Comments
 (0)