Skip to content

Commit a9f588b

Browse files
SDK regenerated by CI server [ci skip]
1 parent 32d238c commit a9f588b

File tree

3 files changed

+126
-0
lines changed

3 files changed

+126
-0
lines changed

Sources/AsposeWordsCloud/Api/ObjectSerializer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ class ObjectSerializer {
109109
"DrawingObjectsResponse, _": DrawingObjectsResponse.self,
110110
"DrawingObjectUpdate, _": DrawingObjectUpdate.self,
111111
"EmfSaveOptionsData, _": EmfSaveOptionsData.self,
112+
"EpsSaveOptionsData, _": EpsSaveOptionsData.self,
112113
"EpubSaveOptionsData, _": EpubSaveOptionsData.self,
113114
"InternalError, _": InternalError.self,
114115
"ErrorDetails, _": ErrorDetails.self,
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="EpsSaveOptionsData.swift">
4+
* Copyright (c) 2023 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 eps save options.
31+
@available(macOS 10.12, iOS 10.3, watchOS 3.3, tvOS 12.0, *)
32+
public class EpsSaveOptionsData : ImageSaveOptionsData {
33+
// Field of saveFormat. Container class for eps save options.
34+
private final let _saveFormat : String? = "eps";
35+
36+
override public var saveFormat : String? {
37+
get {
38+
return self._saveFormat;
39+
}
40+
}
41+
42+
private enum CodingKeys: String, CodingKey {
43+
case invalidCodingKey;
44+
}
45+
46+
public override init() {
47+
super.init();
48+
}
49+
50+
public required init(from json: [String: Any]) throws {
51+
try super.init(from: json);
52+
}
53+
54+
public required init(from decoder: Decoder) throws {
55+
try super.init(from: decoder);
56+
}
57+
58+
public override func encode(to encoder: Encoder) throws {
59+
try super.encode(to: encoder);
60+
}
61+
62+
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
63+
}
64+
65+
}

Sources/AsposeWordsCloud/Model/ImageSaveOptionsData.swift

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,30 @@ public class ImageSaveOptionsData : FixedPageSaveOptionsData {
212212
}
213213
}
214214

215+
// Field of imageHeight. Container abstract class for image save options.
216+
private var _imageHeight : Int? = nil;
217+
218+
public var imageHeight : Int? {
219+
get {
220+
return self._imageHeight;
221+
}
222+
set {
223+
self._imageHeight = newValue;
224+
}
225+
}
226+
227+
// Field of imageWidth. Container abstract class for image save options.
228+
private var _imageWidth : Int? = nil;
229+
230+
public var imageWidth : Int? {
231+
get {
232+
return self._imageWidth;
233+
}
234+
set {
235+
self._imageWidth = newValue;
236+
}
237+
}
238+
215239
// Field of useGdiEmfRenderer. Container abstract class for image save options.
216240
private var _useGdiEmfRenderer : Bool? = nil;
217241

@@ -236,6 +260,8 @@ public class ImageSaveOptionsData : FixedPageSaveOptionsData {
236260
case useAntiAliasing = "UseAntiAliasing";
237261
case useHighQualityRendering = "UseHighQualityRendering";
238262
case verticalResolution = "VerticalResolution";
263+
case imageHeight = "ImageHeight";
264+
case imageWidth = "ImageWidth";
239265
case useGdiEmfRenderer = "UseGdiEmfRenderer";
240266
case invalidCodingKey;
241267
}
@@ -263,6 +289,8 @@ public class ImageSaveOptionsData : FixedPageSaveOptionsData {
263289
self.useAntiAliasing = json["UseAntiAliasing"] as? Bool;
264290
self.useHighQualityRendering = json["UseHighQualityRendering"] as? Bool;
265291
self.verticalResolution = json["VerticalResolution"] as? Double;
292+
self.imageHeight = json["ImageHeight"] as? Int;
293+
self.imageWidth = json["ImageWidth"] as? Int;
266294
self.useGdiEmfRenderer = json["UseGdiEmfRenderer"] as? Bool;
267295
}
268296

@@ -280,6 +308,8 @@ public class ImageSaveOptionsData : FixedPageSaveOptionsData {
280308
self.useAntiAliasing = try container.decodeIfPresent(Bool.self, forKey: .useAntiAliasing);
281309
self.useHighQualityRendering = try container.decodeIfPresent(Bool.self, forKey: .useHighQualityRendering);
282310
self.verticalResolution = try container.decodeIfPresent(Double.self, forKey: .verticalResolution);
311+
self.imageHeight = try container.decodeIfPresent(Int.self, forKey: .imageHeight);
312+
self.imageWidth = try container.decodeIfPresent(Int.self, forKey: .imageWidth);
283313
self.useGdiEmfRenderer = try container.decodeIfPresent(Bool.self, forKey: .useGdiEmfRenderer);
284314
}
285315

@@ -319,6 +349,12 @@ public class ImageSaveOptionsData : FixedPageSaveOptionsData {
319349
if (self.verticalResolution != nil) {
320350
try container.encode(self.verticalResolution, forKey: .verticalResolution);
321351
}
352+
if (self.imageHeight != nil) {
353+
try container.encode(self.imageHeight, forKey: .imageHeight);
354+
}
355+
if (self.imageWidth != nil) {
356+
try container.encode(self.imageWidth, forKey: .imageWidth);
357+
}
322358
if (self.useGdiEmfRenderer != nil) {
323359
try container.encode(self.useGdiEmfRenderer, forKey: .useGdiEmfRenderer);
324360
}
@@ -459,6 +495,30 @@ public class ImageSaveOptionsData : FixedPageSaveOptionsData {
459495
}
460496

461497

498+
// Sets imageHeight. Gets or sets the height of a generated image in pixels.
499+
public func setImageHeight(imageHeight : Int?) -> ImageSaveOptionsData {
500+
self.imageHeight = imageHeight;
501+
return self;
502+
}
503+
504+
// Gets imageHeight. Gets or sets the height of a generated image in pixels.
505+
public func getImageHeight() -> Int? {
506+
return self.imageHeight;
507+
}
508+
509+
510+
// Sets imageWidth. Gets or sets the width of a generated image in pixels.
511+
public func setImageWidth(imageWidth : Int?) -> ImageSaveOptionsData {
512+
self.imageWidth = imageWidth;
513+
return self;
514+
}
515+
516+
// Gets imageWidth. Gets or sets the width of a generated image in pixels.
517+
public func getImageWidth() -> Int? {
518+
return self.imageWidth;
519+
}
520+
521+
462522
// Sets useGdiEmfRenderer. Gets or sets a value indicating whether to use GDI+ or Aspose.Words metafile renderer when saving to EMF.
463523
public func setUseGdiEmfRenderer(useGdiEmfRenderer : Bool?) -> ImageSaveOptionsData {
464524
self.useGdiEmfRenderer = useGdiEmfRenderer;

0 commit comments

Comments
 (0)