@@ -46,8 +46,17 @@ class PreviewOptions
4646 # Preview image height. Not required. Default width used if not specified or 0.
4747 attr_accessor :height
4848
49+ # Gets or sets the resolution for generated images, in dots per inch. The default value is 96.
50+ attr_accessor :resolution
51+
4952 # Render document comments. Default value is 'false'.
5053 attr_accessor :render_comments
54+
55+ # The property that controls whether annotations will be generated on the preview. Default State - true.
56+ attr_accessor :render_annotations
57+
58+ # The path to directory containing custom fonts in storage
59+ attr_accessor :fonts_path
5160 class EnumAttributeValidator
5261 attr_reader :datatype
5362 attr_reader :allowable_values
@@ -78,7 +87,10 @@ def self.attribute_map
7887 :'page_numbers' => :'PageNumbers' ,
7988 :'width' => :'Width' ,
8089 :'height' => :'Height' ,
81- :'render_comments' => :'RenderComments'
90+ :'resolution' => :'Resolution' ,
91+ :'render_comments' => :'RenderComments' ,
92+ :'render_annotations' => :'RenderAnnotations' ,
93+ :'fonts_path' => :'FontsPath'
8294 }
8395 end
8496
@@ -90,7 +102,10 @@ def self.swagger_types
90102 :'page_numbers' => :'Array<Integer>' ,
91103 :'width' => :'Integer' ,
92104 :'height' => :'Integer' ,
93- :'render_comments' => :'BOOLEAN'
105+ :'resolution' => :'Integer' ,
106+ :'render_comments' => :'BOOLEAN' ,
107+ :'render_annotations' => :'BOOLEAN' ,
108+ :'fonts_path' => :'String'
94109 }
95110 end
96111
@@ -124,10 +139,22 @@ def initialize(attributes = {})
124139 self . height = attributes [ :'Height' ]
125140 end
126141
142+ if attributes . key? ( :'Resolution' )
143+ self . resolution = attributes [ :'Resolution' ]
144+ end
145+
127146 if attributes . key? ( :'RenderComments' )
128147 self . render_comments = attributes [ :'RenderComments' ]
129148 end
130149
150+ if attributes . key? ( :'RenderAnnotations' )
151+ self . render_annotations = attributes [ :'RenderAnnotations' ]
152+ end
153+
154+ if attributes . key? ( :'FontsPath' )
155+ self . fonts_path = attributes [ :'FontsPath' ]
156+ end
157+
131158 end
132159
133160 # Show invalid properties with the reasons. Usually used together with valid?
@@ -146,10 +173,18 @@ def list_invalid_properties
146173 invalid_properties . push ( "invalid value for 'height', height cannot be nil." )
147174 end
148175
176+ if @resolution . nil?
177+ invalid_properties . push ( "invalid value for 'resolution', resolution cannot be nil." )
178+ end
179+
149180 if @render_comments . nil?
150181 invalid_properties . push ( "invalid value for 'render_comments', render_comments cannot be nil." )
151182 end
152183
184+ if @render_annotations . nil?
185+ invalid_properties . push ( "invalid value for 'render_annotations', render_annotations cannot be nil." )
186+ end
187+
153188 return invalid_properties
154189 end
155190
@@ -161,7 +196,9 @@ def valid?
161196 return false unless format_validator . valid? ( @format )
162197 return false if @width . nil?
163198 return false if @height . nil?
199+ return false if @resolution . nil?
164200 return false if @render_comments . nil?
201+ return false if @render_annotations . nil?
165202 return true
166203 end
167204
@@ -190,7 +227,10 @@ def ==(other)
190227 page_numbers == other . page_numbers &&
191228 width == other . width &&
192229 height == other . height &&
193- render_comments == other . render_comments
230+ resolution == other . resolution &&
231+ render_comments == other . render_comments &&
232+ render_annotations == other . render_annotations &&
233+ fonts_path == other . fonts_path
194234 end
195235
196236 # @see the `==` method
@@ -202,7 +242,7 @@ def eql?(other)
202242 # Calculates hash code according to all attributes.
203243 # @return [Fixnum] Hash code
204244 def hash
205- [ file_info , format , page_numbers , width , height , render_comments ] . hash
245+ [ file_info , format , page_numbers , width , height , resolution , render_comments , render_annotations , fonts_path ] . hash
206246 end
207247
208248 # Downcases first letter.
0 commit comments