@@ -48,7 +48,10 @@ class PreviewOptions(object):
4848 'page_numbers' : 'list[int]' ,
4949 'width' : 'int' ,
5050 'height' : 'int' ,
51- 'render_comments' : 'bool'
51+ 'resolution' : 'int' ,
52+ 'render_comments' : 'bool' ,
53+ 'render_annotations' : 'bool' ,
54+ 'fonts_path' : 'str'
5255 }
5356
5457 attribute_map = {
@@ -57,18 +60,24 @@ class PreviewOptions(object):
5760 'page_numbers' : 'PageNumbers' ,
5861 'width' : 'Width' ,
5962 'height' : 'Height' ,
60- 'render_comments' : 'RenderComments'
63+ 'resolution' : 'Resolution' ,
64+ 'render_comments' : 'RenderComments' ,
65+ 'render_annotations' : 'RenderAnnotations' ,
66+ 'fonts_path' : 'FontsPath'
6167 }
6268
63- def __init__ (self , file_info = None , format = None , page_numbers = None , width = None , height = None , render_comments = None , ** kwargs ): # noqa: E501
69+ def __init__ (self , file_info = None , format = None , page_numbers = None , width = None , height = None , resolution = None , render_comments = None , render_annotations = None , fonts_path = None , ** kwargs ): # noqa: E501
6470 """Initializes new instance of PreviewOptions""" # noqa: E501
6571
6672 self ._file_info = None
6773 self ._format = None
6874 self ._page_numbers = None
6975 self ._width = None
7076 self ._height = None
77+ self ._resolution = None
7178 self ._render_comments = None
79+ self ._render_annotations = None
80+ self ._fonts_path = None
7281
7382 if file_info is not None :
7483 self .file_info = file_info
@@ -80,8 +89,14 @@ def __init__(self, file_info=None, format=None, page_numbers=None, width=None, h
8089 self .width = width
8190 if height is not None :
8291 self .height = height
92+ if resolution is not None :
93+ self .resolution = resolution
8394 if render_comments is not None :
8495 self .render_comments = render_comments
96+ if render_annotations is not None :
97+ self .render_annotations = render_annotations
98+ if fonts_path is not None :
99+ self .fonts_path = fonts_path
85100
86101 @property
87102 def file_info (self ):
@@ -217,6 +232,32 @@ def height(self, height):
217232 raise ValueError ("Invalid value for `height`, must not be `None`" ) # noqa: E501
218233 self ._height = height
219234
235+ @property
236+ def resolution (self ):
237+ """
238+ Gets the resolution. # noqa: E501
239+
240+ Gets or sets the resolution for generated images, in dots per inch. The default value is 96. # noqa: E501
241+
242+ :return: The resolution. # noqa: E501
243+ :rtype: int
244+ """
245+ return self ._resolution
246+
247+ @resolution .setter
248+ def resolution (self , resolution ):
249+ """
250+ Sets the resolution.
251+
252+ Gets or sets the resolution for generated images, in dots per inch. The default value is 96. # noqa: E501
253+
254+ :param resolution: The resolution. # noqa: E501
255+ :type: int
256+ """
257+ if resolution is None :
258+ raise ValueError ("Invalid value for `resolution`, must not be `None`" ) # noqa: E501
259+ self ._resolution = resolution
260+
220261 @property
221262 def render_comments (self ):
222263 """
@@ -242,6 +283,56 @@ def render_comments(self, render_comments):
242283 if render_comments is None :
243284 raise ValueError ("Invalid value for `render_comments`, must not be `None`" ) # noqa: E501
244285 self ._render_comments = render_comments
286+
287+ @property
288+ def render_annotations (self ):
289+ """
290+ Gets the render_annotations. # noqa: E501
291+
292+ The property that controls whether annotations will be generated on the preview. Default State - true. # noqa: E501
293+
294+ :return: The render_annotations. # noqa: E501
295+ :rtype: bool
296+ """
297+ return self ._render_annotations
298+
299+ @render_annotations .setter
300+ def render_annotations (self , render_annotations ):
301+ """
302+ Sets the render_annotations.
303+
304+ The property that controls whether annotations will be generated on the preview. Default State - true. # noqa: E501
305+
306+ :param render_annotations: The render_annotations. # noqa: E501
307+ :type: bool
308+ """
309+ if render_annotations is None :
310+ raise ValueError ("Invalid value for `render_annotations`, must not be `None`" ) # noqa: E501
311+ self ._render_annotations = render_annotations
312+
313+ @property
314+ def fonts_path (self ):
315+ """
316+ Gets the fonts_path. # noqa: E501
317+
318+ The path to directory containing custom fonts in storage # noqa: E501
319+
320+ :return: The fonts_path. # noqa: E501
321+ :rtype: str
322+ """
323+ return self ._fonts_path
324+
325+ @fonts_path .setter
326+ def fonts_path (self , fonts_path ):
327+ """
328+ Sets the fonts_path.
329+
330+ The path to directory containing custom fonts in storage # noqa: E501
331+
332+ :param fonts_path: The fonts_path. # noqa: E501
333+ :type: str
334+ """
335+ self ._fonts_path = fonts_path
245336
246337 def to_dict (self ):
247338 """Returns the model properties as a dict"""
0 commit comments