groupdocs-conversion-cloud 25.5__py3-none-any.whl → 25.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,34 +46,59 @@ class WebLoadOptions(LoadOptions):
46
46
  """
47
47
  swagger_types = {
48
48
  'page_numbering': 'bool',
49
+ 'base_path': 'str',
49
50
  'encoding': 'str',
51
+ 'skip_external_resources': 'bool',
50
52
  'use_pdf': 'bool',
51
- 'rendering_mode': 'str'
53
+ 'rendering_mode': 'str',
54
+ 'zoom': 'int',
55
+ 'page_layout': 'str',
56
+ 'custom_css_style': 'str'
52
57
  }
53
58
 
54
59
  attribute_map = {
55
60
  'page_numbering': 'PageNumbering',
61
+ 'base_path': 'BasePath',
56
62
  'encoding': 'Encoding',
63
+ 'skip_external_resources': 'SkipExternalResources',
57
64
  'use_pdf': 'UsePdf',
58
- 'rendering_mode': 'RenderingMode'
65
+ 'rendering_mode': 'RenderingMode',
66
+ 'zoom': 'Zoom',
67
+ 'page_layout': 'PageLayout',
68
+ 'custom_css_style': 'CustomCssStyle'
59
69
  }
60
70
 
61
- def __init__(self, page_numbering=None, encoding=None, use_pdf=None, rendering_mode=None, **kwargs): # noqa: E501
71
+ def __init__(self, page_numbering=None, base_path=None, encoding=None, skip_external_resources=None, use_pdf=None, rendering_mode=None, zoom=None, page_layout=None, custom_css_style=None, **kwargs): # noqa: E501
62
72
  """Initializes new instance of WebLoadOptions""" # noqa: E501
63
73
 
64
74
  self._page_numbering = None
75
+ self._base_path = None
65
76
  self._encoding = None
77
+ self._skip_external_resources = None
66
78
  self._use_pdf = None
67
79
  self._rendering_mode = None
80
+ self._zoom = None
81
+ self._page_layout = None
82
+ self._custom_css_style = None
68
83
 
69
84
  if page_numbering is not None:
70
85
  self.page_numbering = page_numbering
86
+ if base_path is not None:
87
+ self.base_path = base_path
71
88
  if encoding is not None:
72
89
  self.encoding = encoding
90
+ if skip_external_resources is not None:
91
+ self.skip_external_resources = skip_external_resources
73
92
  if use_pdf is not None:
74
93
  self.use_pdf = use_pdf
75
94
  if rendering_mode is not None:
76
95
  self.rendering_mode = rendering_mode
96
+ if zoom is not None:
97
+ self.zoom = zoom
98
+ if page_layout is not None:
99
+ self.page_layout = page_layout
100
+ if custom_css_style is not None:
101
+ self.custom_css_style = custom_css_style
77
102
 
78
103
  base = super(WebLoadOptions, self)
79
104
  base.__init__(**kwargs)
@@ -107,6 +132,30 @@ class WebLoadOptions(LoadOptions):
107
132
  raise ValueError("Invalid value for `page_numbering`, must not be `None`") # noqa: E501
108
133
  self._page_numbering = page_numbering
109
134
 
135
+ @property
136
+ def base_path(self):
137
+ """
138
+ Gets the base_path. # noqa: E501
139
+
140
+ The base path/url for the html # noqa: E501
141
+
142
+ :return: The base_path. # noqa: E501
143
+ :rtype: str
144
+ """
145
+ return self._base_path
146
+
147
+ @base_path.setter
148
+ def base_path(self, base_path):
149
+ """
150
+ Sets the base_path.
151
+
152
+ The base path/url for the html # noqa: E501
153
+
154
+ :param base_path: The base_path. # noqa: E501
155
+ :type: str
156
+ """
157
+ self._base_path = base_path
158
+
110
159
  @property
111
160
  def encoding(self):
112
161
  """
@@ -131,6 +180,32 @@ class WebLoadOptions(LoadOptions):
131
180
  """
132
181
  self._encoding = encoding
133
182
 
183
+ @property
184
+ def skip_external_resources(self):
185
+ """
186
+ Gets the skip_external_resources. # noqa: E501
187
+
188
+ If true all external resource will not be loading # noqa: E501
189
+
190
+ :return: The skip_external_resources. # noqa: E501
191
+ :rtype: bool
192
+ """
193
+ return self._skip_external_resources
194
+
195
+ @skip_external_resources.setter
196
+ def skip_external_resources(self, skip_external_resources):
197
+ """
198
+ Sets the skip_external_resources.
199
+
200
+ If true all external resource will not be loading # noqa: E501
201
+
202
+ :param skip_external_resources: The skip_external_resources. # noqa: E501
203
+ :type: bool
204
+ """
205
+ if skip_external_resources is None:
206
+ raise ValueError("Invalid value for `skip_external_resources`, must not be `None`") # noqa: E501
207
+ self._skip_external_resources = skip_external_resources
208
+
134
209
  @property
135
210
  def use_pdf(self):
136
211
  """
@@ -190,6 +265,86 @@ class WebLoadOptions(LoadOptions):
190
265
  self._rendering_mode = rendering_mode
191
266
  else:
192
267
  self._rendering_mode = allowed_values[int(rendering_mode) if six.PY3 else long(rendering_mode)]
268
+
269
+ @property
270
+ def zoom(self):
271
+ """
272
+ Gets the zoom. # noqa: E501
273
+
274
+
275
+ :return: The zoom. # noqa: E501
276
+ :rtype: int
277
+ """
278
+ return self._zoom
279
+
280
+ @zoom.setter
281
+ def zoom(self, zoom):
282
+ """
283
+ Sets the zoom.
284
+
285
+
286
+ :param zoom: The zoom. # noqa: E501
287
+ :type: int
288
+ """
289
+ if zoom is None:
290
+ raise ValueError("Invalid value for `zoom`, must not be `None`") # noqa: E501
291
+ self._zoom = zoom
292
+
293
+ @property
294
+ def page_layout(self):
295
+ """
296
+ Gets the page_layout. # noqa: E501
297
+
298
+ Specifies the page layout options when loading web documents # noqa: E501
299
+
300
+ :return: The page_layout. # noqa: E501
301
+ :rtype: str
302
+ """
303
+ return self._page_layout
304
+
305
+ @page_layout.setter
306
+ def page_layout(self, page_layout):
307
+ """
308
+ Sets the page_layout.
309
+
310
+ Specifies the page layout options when loading web documents # noqa: E501
311
+
312
+ :param page_layout: The page_layout. # noqa: E501
313
+ :type: str
314
+ """
315
+ if page_layout is None:
316
+ raise ValueError("Invalid value for `page_layout`, must not be `None`") # noqa: E501
317
+ allowed_values = ["None", "ScaleToPageWidth", "ScaleToPageHeight"] # noqa: E501
318
+ if not page_layout.isdigit():
319
+ if page_layout not in allowed_values:
320
+ raise ValueError(
321
+ "Invalid value for `page_layout` ({0}), must be one of {1}" # noqa: E501
322
+ .format(page_layout, allowed_values))
323
+ self._page_layout = page_layout
324
+ else:
325
+ self._page_layout = allowed_values[int(page_layout) if six.PY3 else long(page_layout)]
326
+
327
+ @property
328
+ def custom_css_style(self):
329
+ """
330
+ Gets the custom_css_style. # noqa: E501
331
+
332
+
333
+ :return: The custom_css_style. # noqa: E501
334
+ :rtype: str
335
+ """
336
+ return self._custom_css_style
337
+
338
+ @custom_css_style.setter
339
+ def custom_css_style(self, custom_css_style):
340
+ """
341
+ Sets the custom_css_style.
342
+
343
+
344
+ :param custom_css_style: The custom_css_style. # noqa: E501
345
+ :type: str
346
+ """
347
+ self._custom_css_style = custom_css_style
193
348
 
194
349
  def to_dict(self):
195
350
  """Returns the model properties as a dict"""