@@ -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