Skip to content

Commit cff22ad

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 5f1de04 + 117d9dd commit cff22ad

File tree

744 files changed

+2710
-1659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

744 files changed

+2710
-1659
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 = '23.12'
3+
s.version = '24.1'
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: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,23 @@ 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.1
17+
18+
- Added support for InsertAfterNode in the insert API without NodePath.
19+
- Added support for inserting nodes (runs/rows/cells/bookmarks) without NodePath.
20+
- Added support for transparency in the Watermark API.
21+
- Added support for password and encryptedPassword fields in FileReference.
22+
- Fixed missing href value in document responses.
23+
24+
1625
## Enhancements in Version 23.12
1726

1827
- Properties Name, Text, StartRange, EndRange marked as required for InsertBookmark operation.
1928
- Implemented DeleteOfficeMathObjects operation to delete all office math objects from document.
2029
- Parameter ProtectionRequest was removed from the UnprotectDocument operation. Now removing protection from a document does not require a password.
2130
- Model ProtectionRequest marked as deprecated, please use ProtectionRequestV2 instead for perform ProtectDocument operation. To change the password or protection type of protected document, the old password is no required.
31+
- Added fields Password and EncryptedPassword to FileReference for documents encrypted by password.
32+
- Removed parameter encryptedPassword2 from CompareDocument method. Please use FileReference password instead.
2233

2334

2435
## Enhancements in Version 23.11
@@ -309,7 +320,7 @@ Add link to this repository as dependency to your Package.swift:
309320

310321
dependencies: [
311322
// Dependencies declare other packages that this package depends on.
312-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "23.12"),
323+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "24.1"),
313324
],
314325
targets: [
315326
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -327,7 +338,7 @@ targets: [
327338
Add link to git repository as dependency to your Podfile:
328339

329340
```ruby
330-
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '23.12'
341+
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '24.1'
331342
```
332343

333344
## Getting Started

Sources/AsposeWordsCloud/Api/ApiInvoker.swift

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="ApiInvoker.swift">
4-
* Copyright (c) 2023 Aspose.Words for Cloud
4+
* Copyright (c) 2024 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -89,8 +89,16 @@ public class ApiInvoker {
8989
}
9090

9191
// Internal function for prepare files content list
92-
public func prepareFilesContent(_ : inout [FileReference]) {
93-
// Do nothing...
92+
public func prepareFilesContent(_ requestFilesContent : inout [FileReference]) {
93+
#if os(Linux)
94+
// Encryption of passwords not supported on linux
95+
#else
96+
for requestFileReference in requestFilesContent {
97+
if (requestFileReference.password != nil) {
98+
requestFileReference.encryptPassword(try encryptString(value: requestFileReference.password!));
99+
}
100+
}
101+
#endif
94102
}
95103

96104
// Invoke request to the API with the specified set of arguments and execute callback after the request is completed

Sources/AsposeWordsCloud/Api/BatchRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="WordsBatchRequest.swift">
4-
* Copyright (c) 2023 Aspose.Words for Cloud
4+
* Copyright (c) 2024 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

Sources/AsposeWordsCloud/Api/Configuration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="Configuration.swift">
4-
* Copyright (c) 2023 Aspose.Words for Cloud
4+
* Copyright (c) 2024 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -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 "23.12";
191+
return "24.1";
192192
}
193193
}

Sources/AsposeWordsCloud/Api/ObjectSerializer.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="ObjectSerializer.swift">
4-
* Copyright (c) 2023 Aspose.Words for Cloud
4+
* Copyright (c) 2024 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -183,7 +183,6 @@ class ObjectSerializer {
183183
"MetafileRenderingOptionsData, _": MetafileRenderingOptionsData.self,
184184
"MhtmlSaveOptionsData, _": MhtmlSaveOptionsData.self,
185185
"ModificationOperationResult, _": ModificationOperationResult.self,
186-
"NewDocumentPosition, _": NewDocumentPosition.self,
187186
"NodeLink, _": NodeLink.self,
188187
"OdtSaveOptionsData, _": OdtSaveOptionsData.self,
189188
"OfficeMathLink, _": OfficeMathLink.self,
@@ -214,6 +213,9 @@ class ObjectSerializer {
214213
"PdfPermissions, _": nil,
215214
"PdfSaveOptionsData, _": PdfSaveOptionsData.self,
216215
"PngSaveOptionsData, _": PngSaveOptionsData.self,
216+
"PositionAfterNode, _": PositionAfterNode.self,
217+
"PositionBeforeNode, _": PositionBeforeNode.self,
218+
"PositionInsideNode, _": PositionInsideNode.self,
217219
"PreferredWidth, _": PreferredWidth.self,
218220
"ProtectionData, _": ProtectionData.self,
219221
"ProtectionDataResponse, _": ProtectionDataResponse.self,

Sources/AsposeWordsCloud/Api/RequestFormParam.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="RequestFormParam.swift">
4-
* Copyright (c) 2023 Aspose.Words for Cloud
4+
* Copyright (c) 2024 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

Sources/AsposeWordsCloud/Api/ResponseFormParam.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="ResponseFormParam.swift">
4-
* Copyright (c) 2023 Aspose.Words for Cloud
4+
* Copyright (c) 2024 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

Sources/AsposeWordsCloud/Api/WordsAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="WordsAPI.swift">
4-
* Copyright (c) 2023 Aspose.Words for Cloud
4+
* Copyright (c) 2024 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

Sources/AsposeWordsCloud/Api/WordsApiError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="WordsApiError.swift">
4-
* Copyright (c) 2023 Aspose.Words for Cloud
4+
* Copyright (c) 2024 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)