Skip to content

Commit 8bf9818

Browse files
SDK regenerated by CI server [ci skip]
1 parent 5c65ee5 commit 8bf9818

File tree

4 files changed

+99
-0
lines changed

4 files changed

+99
-0
lines changed

Sources/AsposeWordsCloud/Model/HtmlFixedSaveOptionsData.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
6868

6969
// Field of showPageBorder. Gets or sets specifies whether border around pages should be shown.
7070
private var showPageBorder : Bool?;
71+
72+
// Field of useTargetMachineFonts. Gets or sets flag indicates whether fonts from target machine must be used to display the document. If this flag is set to true, Aspose.Words.Saving.HtmlFixedSaveOptions.FontFormat and Aspose.Words.Saving.HtmlFixedSaveOptions.ExportEmbeddedFonts properties do not have effect, also Aspose.Words.Saving.HtmlFixedSaveOptions.ResourceSavingCallback is not fired for fonts. Default is false.
73+
private var useTargetMachineFonts : Bool?;
7174

7275
private enum CodingKeys: String, CodingKey {
7376
case cssClassNamesPrefix;
@@ -83,6 +86,7 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
8386
case resourcesFolderAlias;
8487
case saveFontFaceCssSeparately;
8588
case showPageBorder;
89+
case useTargetMachineFonts;
8690
case invalidCodingKey;
8791
}
8892

@@ -106,6 +110,7 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
106110
self.resourcesFolderAlias = try container.decodeIfPresent(String.self, forKey: .resourcesFolderAlias);
107111
self.saveFontFaceCssSeparately = try container.decodeIfPresent(Bool.self, forKey: .saveFontFaceCssSeparately);
108112
self.showPageBorder = try container.decodeIfPresent(Bool.self, forKey: .showPageBorder);
113+
self.useTargetMachineFonts = try container.decodeIfPresent(Bool.self, forKey: .useTargetMachineFonts);
109114
}
110115

111116
public override func encode(to encoder: Encoder) throws {
@@ -150,6 +155,9 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
150155
if (self.showPageBorder != nil) {
151156
try container.encode(self.showPageBorder, forKey: .showPageBorder);
152157
}
158+
if (self.useTargetMachineFonts != nil) {
159+
try container.encode(self.useTargetMachineFonts, forKey: .useTargetMachineFonts);
160+
}
153161
}
154162

155163
// Sets cssClassNamesPrefix. Gets or sets specifies prefix which is added to all class names in style.css file. Default value is \"aw\".
@@ -281,4 +289,14 @@ public class HtmlFixedSaveOptionsData : FixedPageSaveOptionsData {
281289
public func getShowPageBorder() -> Bool? {
282290
return self.showPageBorder;
283291
}
292+
293+
// Sets useTargetMachineFonts. Gets or sets flag indicates whether fonts from target machine must be used to display the document. If this flag is set to true, Aspose.Words.Saving.HtmlFixedSaveOptions.FontFormat and Aspose.Words.Saving.HtmlFixedSaveOptions.ExportEmbeddedFonts properties do not have effect, also Aspose.Words.Saving.HtmlFixedSaveOptions.ResourceSavingCallback is not fired for fonts. Default is false.
294+
public func setUseTargetMachineFonts(useTargetMachineFonts : Bool?) {
295+
self.useTargetMachineFonts = useTargetMachineFonts;
296+
}
297+
298+
// Gets useTargetMachineFonts. Gets or sets flag indicates whether fonts from target machine must be used to display the document. If this flag is set to true, Aspose.Words.Saving.HtmlFixedSaveOptions.FontFormat and Aspose.Words.Saving.HtmlFixedSaveOptions.ExportEmbeddedFonts properties do not have effect, also Aspose.Words.Saving.HtmlFixedSaveOptions.ResourceSavingCallback is not fired for fonts. Default is false.
299+
public func getUseTargetMachineFonts() -> Bool? {
300+
return self.useTargetMachineFonts;
301+
}
284302
}

Sources/AsposeWordsCloud/Model/OdtSaveOptionsData.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ public class OdtSaveOptionsData : SaveOptionsData {
4545
// Field of measureUnit. Gets or sets allows to specify units of measure to apply to document content. The default value is Aspose.Words.Saving.OdtSaveMeasureUnit.Centimeters. Open Office uses centimeters when specifying lengths, widths and other measurable formatting and content properties in documents whereas MS Office uses inches.
4646
private var measureUnit : MeasureUnit?;
4747

48+
// Field of password. Gets or sets a password to encrypt document.
49+
private var password : String?;
50+
4851
// Field of prettyFormat. Gets or sets specifies whether or not use pretty formats output.
4952
private var prettyFormat : Bool?;
5053

5154
private enum CodingKeys: String, CodingKey {
5255
case isStrictSchema11;
5356
case measureUnit;
57+
case password;
5458
case prettyFormat;
5559
case invalidCodingKey;
5660
}
@@ -64,6 +68,7 @@ public class OdtSaveOptionsData : SaveOptionsData {
6468
let container = try decoder.container(keyedBy: CodingKeys.self);
6569
self.isStrictSchema11 = try container.decodeIfPresent(Bool.self, forKey: .isStrictSchema11);
6670
self.measureUnit = try container.decodeIfPresent(MeasureUnit.self, forKey: .measureUnit);
71+
self.password = try container.decodeIfPresent(String.self, forKey: .password);
6772
self.prettyFormat = try container.decodeIfPresent(Bool.self, forKey: .prettyFormat);
6873
}
6974

@@ -76,6 +81,9 @@ public class OdtSaveOptionsData : SaveOptionsData {
7681
if (self.measureUnit != nil) {
7782
try container.encode(self.measureUnit, forKey: .measureUnit);
7883
}
84+
if (self.password != nil) {
85+
try container.encode(self.password, forKey: .password);
86+
}
7987
if (self.prettyFormat != nil) {
8088
try container.encode(self.prettyFormat, forKey: .prettyFormat);
8189
}
@@ -101,6 +109,16 @@ public class OdtSaveOptionsData : SaveOptionsData {
101109
return self.measureUnit;
102110
}
103111

112+
// Sets password. Gets or sets a password to encrypt document.
113+
public func setPassword(password : String?) {
114+
self.password = password;
115+
}
116+
117+
// Gets password. Gets or sets a password to encrypt document.
118+
public func getPassword() -> String? {
119+
return self.password;
120+
}
121+
104122
// Sets prettyFormat. Gets or sets specifies whether or not use pretty formats output.
105123
public func setPrettyFormat(prettyFormat : Bool?) {
106124
self.prettyFormat = prettyFormat;

Sources/AsposeWordsCloud/Model/PdfSaveOptionsData.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
8484
// Field of imageCompression. Gets or sets specifies compression type to be used for all images in the document.
8585
private var imageCompression : String?;
8686

87+
// Field of interpolateImages. Gets or sets a flag indicating whether image interpolation shall be performed by a conforming reader. When false is specified, the flag is not written to the output document and the default behaviour of reader is used instead.
88+
private var interpolateImages : Bool?;
89+
8790
// Field of openHyperlinksInNewWindow. Gets or sets determines whether hyperlinks in the output Pdf document are forced to be opened in a new window (or tab) of a browser.
8891
private var openHyperlinksInNewWindow : Bool?;
8992

@@ -129,6 +132,7 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
129132
case headerFooterBookmarksExportMode;
130133
case imageColorSpaceExportMode;
131134
case imageCompression;
135+
case interpolateImages;
132136
case openHyperlinksInNewWindow;
133137
case outlineOptions;
134138
case pageMode;
@@ -163,6 +167,7 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
163167
self.headerFooterBookmarksExportMode = try container.decodeIfPresent(HeaderFooterBookmarksExportMode.self, forKey: .headerFooterBookmarksExportMode);
164168
self.imageColorSpaceExportMode = try container.decodeIfPresent(String.self, forKey: .imageColorSpaceExportMode);
165169
self.imageCompression = try container.decodeIfPresent(String.self, forKey: .imageCompression);
170+
self.interpolateImages = try container.decodeIfPresent(Bool.self, forKey: .interpolateImages);
166171
self.openHyperlinksInNewWindow = try container.decodeIfPresent(Bool.self, forKey: .openHyperlinksInNewWindow);
167172
self.outlineOptions = try container.decodeIfPresent(OutlineOptionsData.self, forKey: .outlineOptions);
168173
self.pageMode = try container.decodeIfPresent(String.self, forKey: .pageMode);
@@ -220,6 +225,9 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
220225
if (self.imageCompression != nil) {
221226
try container.encode(self.imageCompression, forKey: .imageCompression);
222227
}
228+
if (self.interpolateImages != nil) {
229+
try container.encode(self.interpolateImages, forKey: .interpolateImages);
230+
}
223231
if (self.openHyperlinksInNewWindow != nil) {
224232
try container.encode(self.openHyperlinksInNewWindow, forKey: .openHyperlinksInNewWindow);
225233
}
@@ -392,6 +400,16 @@ public class PdfSaveOptionsData : FixedPageSaveOptionsData {
392400
return self.imageCompression;
393401
}
394402

403+
// Sets interpolateImages. Gets or sets a flag indicating whether image interpolation shall be performed by a conforming reader. When false is specified, the flag is not written to the output document and the default behaviour of reader is used instead.
404+
public func setInterpolateImages(interpolateImages : Bool?) {
405+
self.interpolateImages = interpolateImages;
406+
}
407+
408+
// Gets interpolateImages. Gets or sets a flag indicating whether image interpolation shall be performed by a conforming reader. When false is specified, the flag is not written to the output document and the default behaviour of reader is used instead.
409+
public func getInterpolateImages() -> Bool? {
410+
return self.interpolateImages;
411+
}
412+
395413
// Sets openHyperlinksInNewWindow. Gets or sets determines whether hyperlinks in the output Pdf document are forced to be opened in a new window (or tab) of a browser.
396414
public func setOpenHyperlinksInNewWindow(openHyperlinksInNewWindow : Bool?) {
397415
self.openHyperlinksInNewWindow = openHyperlinksInNewWindow;

Sources/AsposeWordsCloud/Model/SaveOptionsData.swift

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ import Foundation
2929

3030
// base container class for save options data.
3131
public class SaveOptionsData : Codable, WordsApiModel {
32+
// Gets or sets a value determining how 3D effects are rendered.
33+
public enum Dml3DEffectsRenderingMode : String, Codable
34+
{
35+
// Enum value "basic"
36+
case basic = "Basic"
37+
38+
// Enum value "advanced"
39+
case advanced = "Advanced"
40+
}
3241

3342
// Field of saveFormat. Gets or sets format of save.
3443
private var saveFormat : String?;
@@ -53,6 +62,12 @@ public class SaveOptionsData : Codable, WordsApiModel {
5362

5463
// Field of updateFields. Gets or sets a value determining if fields should be updated before saving the document to a fixed page format. Default value for this property is. true
5564
private var updateFields : Bool?;
65+
66+
// Field of dml3DEffectsRenderingMode. Gets or sets a value determining how 3D effects are rendered.
67+
private var dml3DEffectsRenderingMode : Dml3DEffectsRenderingMode?;
68+
69+
// Field of updateLastPrintedProperty. Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastPrinted property is updated before saving.
70+
private var updateLastPrintedProperty : Bool?;
5671

5772
private enum CodingKeys: String, CodingKey {
5873
case saveFormat;
@@ -63,6 +78,8 @@ public class SaveOptionsData : Codable, WordsApiModel {
6378
case updateLastSavedTimeProperty;
6479
case updateSdtContent;
6580
case updateFields;
81+
case dml3DEffectsRenderingMode;
82+
case updateLastPrintedProperty;
6683
case invalidCodingKey;
6784
}
6885

@@ -81,6 +98,8 @@ public class SaveOptionsData : Codable, WordsApiModel {
8198
self.updateLastSavedTimeProperty = try container.decodeIfPresent(Bool.self, forKey: .updateLastSavedTimeProperty);
8299
self.updateSdtContent = try container.decodeIfPresent(Bool.self, forKey: .updateSdtContent);
83100
self.updateFields = try container.decodeIfPresent(Bool.self, forKey: .updateFields);
101+
self.dml3DEffectsRenderingMode = try container.decodeIfPresent(Dml3DEffectsRenderingMode.self, forKey: .dml3DEffectsRenderingMode);
102+
self.updateLastPrintedProperty = try container.decodeIfPresent(Bool.self, forKey: .updateLastPrintedProperty);
84103
}
85104

86105
public func encode(to encoder: Encoder) throws {
@@ -110,6 +129,12 @@ public class SaveOptionsData : Codable, WordsApiModel {
110129
if (self.updateFields != nil) {
111130
try container.encode(self.updateFields, forKey: .updateFields);
112131
}
132+
if (self.dml3DEffectsRenderingMode != nil) {
133+
try container.encode(self.dml3DEffectsRenderingMode, forKey: .dml3DEffectsRenderingMode);
134+
}
135+
if (self.updateLastPrintedProperty != nil) {
136+
try container.encode(self.updateLastPrintedProperty, forKey: .updateLastPrintedProperty);
137+
}
113138
}
114139

115140
// Sets saveFormat. Gets or sets format of save.
@@ -191,4 +216,24 @@ public class SaveOptionsData : Codable, WordsApiModel {
191216
public func getUpdateFields() -> Bool? {
192217
return self.updateFields;
193218
}
219+
220+
// Sets dml3DEffectsRenderingMode. Gets or sets a value determining how 3D effects are rendered.
221+
public func setDml3DEffectsRenderingMode(dml3DEffectsRenderingMode : Dml3DEffectsRenderingMode?) {
222+
self.dml3DEffectsRenderingMode = dml3DEffectsRenderingMode;
223+
}
224+
225+
// Gets dml3DEffectsRenderingMode. Gets or sets a value determining how 3D effects are rendered.
226+
public func getDml3DEffectsRenderingMode() -> Dml3DEffectsRenderingMode? {
227+
return self.dml3DEffectsRenderingMode;
228+
}
229+
230+
// Sets updateLastPrintedProperty. Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastPrinted property is updated before saving.
231+
public func setUpdateLastPrintedProperty(updateLastPrintedProperty : Bool?) {
232+
self.updateLastPrintedProperty = updateLastPrintedProperty;
233+
}
234+
235+
// Gets updateLastPrintedProperty. Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastPrinted property is updated before saving.
236+
public func getUpdateLastPrintedProperty() -> Bool? {
237+
return self.updateLastPrintedProperty;
238+
}
194239
}

0 commit comments

Comments
 (0)