Skip to content

Commit c689ec8

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 0952218 + 79c6aba commit c689ec8

File tree

7 files changed

+62
-26
lines changed

7 files changed

+62
-26
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 = '22.10'
3+
s.version = '22.11'
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 22.11
17+
18+
- Added 'EmbedAttachments' property for PdfSaveOptionsData class.
19+
20+
1621
## Enhancements in Version 22.10
1722

1823
- Added 'CacheHeaderFooterShapes' property for PdfSaveOptionsData class.
@@ -243,7 +248,7 @@ Add link to this repository as dependency to your Package.swift:
243248

244249
dependencies: [
245250
// Dependencies declare other packages that this package depends on.
246-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "22.10"),
251+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "22.11"),
247252
],
248253
targets: [
249254
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -261,7 +266,7 @@ targets: [
261266
Add link to git repository as dependency to your Podfile:
262267

263268
```ruby
264-
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '22.10'
269+
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '22.11'
265270
```
266271

267272
## 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 "22.10";
191+
return "22.11";
192192
}
193193
}

Sources/AsposeWordsCloud/Model/CsvDataLoadOptions.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
import Foundation
2929

3030
// Represents options for parsing CSV data.
31+
// To learn more, visit the LINQ Reporting Engine documentation article.
3132
@available(macOS 10.12, iOS 10.3, watchOS 3.3, tvOS 12.0, *)
3233
public class CsvDataLoadOptions : Codable, WordsApiModel {
33-
// Field of commentChar. Represents options for parsing CSV data.
34+
// Field of commentChar. Represents options for parsing CSV data. To learn more, visit the LINQ Reporting Engine documentation article.
3435
private var _commentChar : String? = nil;
3536

3637
public var commentChar : String? {
@@ -42,7 +43,7 @@ public class CsvDataLoadOptions : Codable, WordsApiModel {
4243
}
4344
}
4445

45-
// Field of delimiter. Represents options for parsing CSV data.
46+
// Field of delimiter. Represents options for parsing CSV data. To learn more, visit the LINQ Reporting Engine documentation article.
4647
private var _delimiter : String? = nil;
4748

4849
public var delimiter : String? {
@@ -54,7 +55,7 @@ public class CsvDataLoadOptions : Codable, WordsApiModel {
5455
}
5556
}
5657

57-
// Field of hasHeaders. Represents options for parsing CSV data.
58+
// Field of hasHeaders. Represents options for parsing CSV data. To learn more, visit the LINQ Reporting Engine documentation article.
5859
private var _hasHeaders : Bool? = nil;
5960

6061
public var hasHeaders : Bool? {
@@ -66,7 +67,7 @@ public class CsvDataLoadOptions : Codable, WordsApiModel {
6667
}
6768
}
6869

69-
// Field of quoteChar. Represents options for parsing CSV data.
70+
// Field of quoteChar. Represents options for parsing CSV data. To learn more, visit the LINQ Reporting Engine documentation article.
7071
private var _quoteChar : String? = nil;
7172

7273
public var quoteChar : String? {

Sources/AsposeWordsCloud/Model/PdfSaveOptionsData.swift

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
163163
case fitBox = "FitBox"
164164
}
165165

166-
// Field of cacheHeaderFooterShapes. Container class for pdf save options.
167-
private var _cacheHeaderFooterShapes : Bool? = nil;
166+
// Field of cacheBackgroundGraphics. Container class for pdf save options.
167+
private var _cacheBackgroundGraphics : Bool? = nil;
168168

169-
public var cacheHeaderFooterShapes : Bool? {
169+
public var cacheBackgroundGraphics : Bool? {
170170
get {
171-
return self._cacheHeaderFooterShapes;
171+
return self._cacheBackgroundGraphics;
172172
}
173173
set {
174-
self._cacheHeaderFooterShapes = newValue;
174+
self._cacheBackgroundGraphics = newValue;
175175
}
176176
}
177177

@@ -247,6 +247,18 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
247247
}
248248
}
249249

250+
// Field of embedAttachments. Container class for pdf save options.
251+
private var _embedAttachments : Bool? = nil;
252+
253+
public var embedAttachments : Bool? {
254+
get {
255+
return self._embedAttachments;
256+
}
257+
set {
258+
self._embedAttachments = newValue;
259+
}
260+
}
261+
250262
// Field of embedFullFonts. Container class for pdf save options.
251263
private var _embedFullFonts : Bool? = nil;
252264

@@ -485,13 +497,14 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
485497
}
486498

487499
private enum CodingKeys: String, CodingKey {
488-
case cacheHeaderFooterShapes = "CacheHeaderFooterShapes";
500+
case cacheBackgroundGraphics = "CacheBackgroundGraphics";
489501
case compliance = "Compliance";
490502
case createNoteHyperlinks = "CreateNoteHyperlinks";
491503
case customPropertiesExport = "CustomPropertiesExport";
492504
case digitalSignatureDetails = "DigitalSignatureDetails";
493505
case displayDocTitle = "DisplayDocTitle";
494506
case downsampleOptions = "DownsampleOptions";
507+
case embedAttachments = "EmbedAttachments";
495508
case embedFullFonts = "EmbedFullFonts";
496509
case encryptionDetails = "EncryptionDetails";
497510
case exportDocumentStructure = "ExportDocumentStructure";
@@ -521,13 +534,14 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
521534
public required init(from decoder: Decoder) throws {
522535
try super.init(from: decoder);
523536
let container = try decoder.container(keyedBy: CodingKeys.self);
524-
self.cacheHeaderFooterShapes = try container.decodeIfPresent(Bool.self, forKey: .cacheHeaderFooterShapes);
537+
self.cacheBackgroundGraphics = try container.decodeIfPresent(Bool.self, forKey: .cacheBackgroundGraphics);
525538
self.compliance = try container.decodeIfPresent(Compliance.self, forKey: .compliance);
526539
self.createNoteHyperlinks = try container.decodeIfPresent(Bool.self, forKey: .createNoteHyperlinks);
527540
self.customPropertiesExport = try container.decodeIfPresent(CustomPropertiesExport.self, forKey: .customPropertiesExport);
528541
self.digitalSignatureDetails = try container.decodeIfPresent(PdfDigitalSignatureDetailsData.self, forKey: .digitalSignatureDetails);
529542
self.displayDocTitle = try container.decodeIfPresent(Bool.self, forKey: .displayDocTitle);
530543
self.downsampleOptions = try container.decodeIfPresent(DownsampleOptionsData.self, forKey: .downsampleOptions);
544+
self.embedAttachments = try container.decodeIfPresent(Bool.self, forKey: .embedAttachments);
531545
self.embedFullFonts = try container.decodeIfPresent(Bool.self, forKey: .embedFullFonts);
532546
self.encryptionDetails = try container.decodeIfPresent(PdfEncryptionDetailsData.self, forKey: .encryptionDetails);
533547
self.exportDocumentStructure = try container.decodeIfPresent(Bool.self, forKey: .exportDocumentStructure);
@@ -552,8 +566,8 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
552566
public override func encode(to encoder: Encoder) throws {
553567
try super.encode(to: encoder);
554568
var container = encoder.container(keyedBy: CodingKeys.self);
555-
if (self.cacheHeaderFooterShapes != nil) {
556-
try container.encode(self.cacheHeaderFooterShapes, forKey: .cacheHeaderFooterShapes);
569+
if (self.cacheBackgroundGraphics != nil) {
570+
try container.encode(self.cacheBackgroundGraphics, forKey: .cacheBackgroundGraphics);
557571
}
558572
if (self.compliance != nil) {
559573
try container.encode(self.compliance, forKey: .compliance);
@@ -573,6 +587,9 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
573587
if (self.downsampleOptions != nil) {
574588
try container.encode(self.downsampleOptions, forKey: .downsampleOptions);
575589
}
590+
if (self.embedAttachments != nil) {
591+
try container.encode(self.embedAttachments, forKey: .embedAttachments);
592+
}
576593
if (self.embedFullFonts != nil) {
577594
try container.encode(self.embedFullFonts, forKey: .embedFullFonts);
578595
}
@@ -635,15 +652,15 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
635652
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
636653
}
637654

638-
// Sets cacheHeaderFooterShapes. Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document.
639-
public func setCacheHeaderFooterShapes(cacheHeaderFooterShapes : Bool?) -> PdfSaveOptionsData {
640-
self.cacheHeaderFooterShapes = cacheHeaderFooterShapes;
655+
// Sets cacheBackgroundGraphics. Gets or sets a value determining whether or not to cache graphics placed in document's background.
656+
public func setCacheBackgroundGraphics(cacheBackgroundGraphics : Bool?) -> PdfSaveOptionsData {
657+
self.cacheBackgroundGraphics = cacheBackgroundGraphics;
641658
return self;
642659
}
643660

644-
// Gets cacheHeaderFooterShapes. Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document.
645-
public func getCacheHeaderFooterShapes() -> Bool? {
646-
return self.cacheHeaderFooterShapes;
661+
// Gets cacheBackgroundGraphics. Gets or sets a value determining whether or not to cache graphics placed in document's background.
662+
public func getCacheBackgroundGraphics() -> Bool? {
663+
return self.cacheBackgroundGraphics;
647664
}
648665

649666

@@ -719,6 +736,18 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
719736
}
720737

721738

739+
// Sets embedAttachments. Gets or sets a value determining whether or not to embed attachments to the PDF document.
740+
public func setEmbedAttachments(embedAttachments : Bool?) -> PdfSaveOptionsData {
741+
self.embedAttachments = embedAttachments;
742+
return self;
743+
}
744+
745+
// Gets embedAttachments. Gets or sets a value determining whether or not to embed attachments to the PDF document.
746+
public func getEmbedAttachments() -> Bool? {
747+
return self.embedAttachments;
748+
}
749+
750+
722751
// Sets embedFullFonts. Gets or sets a value indicating whether fonts are embedded into the resulting PDF documents.
723752
public func setEmbedFullFonts(embedFullFonts : Bool?) -> PdfSaveOptionsData {
724753
self.embedFullFonts = embedFullFonts;

Sources/AsposeWordsCloud/Model/XmlDataLoadOptions.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
import Foundation
2929

3030
// Represents options for XML data loading.
31+
// To learn more, visit the LINQ Reporting Engine documentation article.
3132
@available(macOS 10.12, iOS 10.3, watchOS 3.3, tvOS 12.0, *)
3233
public class XmlDataLoadOptions : Codable, WordsApiModel {
33-
// Field of alwaysGenerateRootObject. Represents options for XML data loading.
34+
// Field of alwaysGenerateRootObject. Represents options for XML data loading. To learn more, visit the LINQ Reporting Engine documentation article.
3435
private var _alwaysGenerateRootObject : Bool? = nil;
3536

3637
public var alwaysGenerateRootObject : Bool? {

Tests/AsposeWordsCloudTests/PageSetupTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ class PageSetupTests: BaseTestContext {
100100

101101
try super.uploadFile(fileContent: getLocalTestDataFolder().appendingPathComponent(localTextFile, isDirectory: false), path: remoteDataFolder + "/" + remoteFileName);
102102

103-
let request = RenderPageRequest(name: remoteFileName, pageIndex: 1, format: "bmp", folder: remoteDataFolder);
103+
let request = RenderPageRequest(name: remoteFileName, pageIndex: 1, format: "jpg", folder: remoteDataFolder);
104104
_ = try super.getApi().renderPage(request: request);
105105
}
106106

107107
// Test for page rendering.
108108
func testGetRenderPageOnline() throws {
109109
let requestDocument = InputStream(url: self.getLocalTestDataFolder().appendingPathComponent(localTextFile, isDirectory: false))!;
110-
let request = RenderPageOnlineRequest(document: requestDocument, pageIndex: 1, format: "bmp");
110+
let request = RenderPageOnlineRequest(document: requestDocument, pageIndex: 1, format: "jpg");
111111
_ = try super.getApi().renderPageOnline(request: request);
112112
}
113113
}

0 commit comments

Comments
 (0)