Skip to content

Commit c5c8a81

Browse files
committed
Updated sources
1 parent 439c33e commit c5c8a81

3 files changed

Lines changed: 143 additions & 9 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "This repository contains GroupDocs.Conversion Cloud SDK for PHP source code.",
33
"name": "groupdocscloud/groupdocs-conversion-cloud",
4-
"version": "24.8",
4+
"version": "24.11",
55
"license": "MIT",
66
"type": "library",
77
"keywords": [

src/GroupDocs/Conversion/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Configuration
9595
* Version of client SDK
9696
*
9797
*/
98-
protected $clientVersion = '24.8';
98+
protected $clientVersion = '24.11';
9999

100100
/*
101101
* Constructor
@@ -290,7 +290,7 @@ public function getClientName()
290290
}
291291

292292
/*
293-
* Gets client version, default value is '24.8'
293+
* Gets client version, default value is '24.11'
294294
*
295295
*/
296296
public function getClientVersion()
@@ -308,7 +308,7 @@ public static function toDebugReport()
308308
$report = 'PHP SDK (GroupDocs\Conversion) Debug Report:' . PHP_EOL;
309309
$report .= ' OS: ' . php_uname() . PHP_EOL;
310310
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
311-
$report .= ' SDK Package Version: 24.8' . PHP_EOL;
311+
$report .= ' SDK Package Version: 24.11' . PHP_EOL;
312312
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
313313

314314
return $report;

src/GroupDocs/Conversion/Model/WebLoadOptions.php

Lines changed: 139 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ class WebLoadOptions extends LoadOptions
5151
* @var string[]
5252
*/
5353
protected static $swaggerTypes = [
54-
'pageNumbering' => 'bool'
54+
'pageNumbering' => 'bool',
55+
'encoding' => 'string',
56+
'usePdf' => 'bool',
57+
'renderingMode' => 'string'
5558
];
5659

5760
/*
@@ -60,7 +63,10 @@ class WebLoadOptions extends LoadOptions
6063
* @var string[]
6164
*/
6265
protected static $swaggerFormats = [
63-
'pageNumbering' => null
66+
'pageNumbering' => null,
67+
'encoding' => null,
68+
'usePdf' => null,
69+
'renderingMode' => null
6470
];
6571

6672
/*
@@ -90,7 +96,10 @@ public static function swaggerFormats()
9096
* @var string[]
9197
*/
9298
protected static $attributeMap = [
93-
'pageNumbering' => 'PageNumbering'
99+
'pageNumbering' => 'PageNumbering',
100+
'encoding' => 'Encoding',
101+
'usePdf' => 'UsePdf',
102+
'renderingMode' => 'RenderingMode'
94103
];
95104

96105
/*
@@ -99,7 +108,10 @@ public static function swaggerFormats()
99108
* @var string[]
100109
*/
101110
protected static $setters = [
102-
'pageNumbering' => 'setPageNumbering'
111+
'pageNumbering' => 'setPageNumbering',
112+
'encoding' => 'setEncoding',
113+
'usePdf' => 'setUsePdf',
114+
'renderingMode' => 'setRenderingMode'
103115
];
104116

105117
/*
@@ -108,7 +120,10 @@ public static function swaggerFormats()
108120
* @var string[]
109121
*/
110122
protected static $getters = [
111-
'pageNumbering' => 'getPageNumbering'
123+
'pageNumbering' => 'getPageNumbering',
124+
'encoding' => 'getEncoding',
125+
'usePdf' => 'getUsePdf',
126+
'renderingMode' => 'getRenderingMode'
112127
];
113128

114129
/*
@@ -152,9 +167,24 @@ public function getModelName()
152167
return self::$swaggerModelName;
153168
}
154169

170+
const RENDERING_MODE_FLOW = 'Flow';
171+
const RENDERING_MODE_ABSOLUTE_POSITIONING = 'AbsolutePositioning';
155172

156173

157174

175+
/*
176+
* Gets allowable values of the enum
177+
*
178+
* @return string[]
179+
*/
180+
public function getRenderingModeAllowableValues()
181+
{
182+
return [
183+
self::RENDERING_MODE_FLOW,
184+
self::RENDERING_MODE_ABSOLUTE_POSITIONING,
185+
];
186+
}
187+
158188

159189

160190
/*
@@ -168,6 +198,9 @@ public function __construct(array $data = null)
168198
parent::__construct($data);
169199

170200
$this->container['pageNumbering'] = isset($data['pageNumbering']) ? $data['pageNumbering'] : null;
201+
$this->container['encoding'] = isset($data['encoding']) ? $data['encoding'] : null;
202+
$this->container['usePdf'] = isset($data['usePdf']) ? $data['usePdf'] : null;
203+
$this->container['renderingMode'] = isset($data['renderingMode']) ? $data['renderingMode'] : null;
171204
}
172205

173206
/*
@@ -182,6 +215,20 @@ public function listInvalidProperties()
182215
if ($this->container['pageNumbering'] === null) {
183216
$invalidProperties[] = "'pageNumbering' can't be null";
184217
}
218+
if ($this->container['usePdf'] === null) {
219+
$invalidProperties[] = "'usePdf' can't be null";
220+
}
221+
if ($this->container['renderingMode'] === null) {
222+
$invalidProperties[] = "'renderingMode' can't be null";
223+
}
224+
$allowedValues = $this->getRenderingModeAllowableValues();
225+
if (!in_array($this->container['renderingMode'], $allowedValues)) {
226+
$invalidProperties[] = sprintf(
227+
"invalid value for 'renderingMode', must be one of '%s'",
228+
implode("', '", $allowedValues)
229+
);
230+
}
231+
185232
return $invalidProperties;
186233
}
187234

@@ -200,6 +247,16 @@ public function valid()
200247
if ($this->container['pageNumbering'] === null) {
201248
return false;
202249
}
250+
if ($this->container['usePdf'] === null) {
251+
return false;
252+
}
253+
if ($this->container['renderingMode'] === null) {
254+
return false;
255+
}
256+
$allowedValues = $this->getRenderingModeAllowableValues();
257+
if (!in_array($this->container['renderingMode'], $allowedValues)) {
258+
return false;
259+
}
203260
return true;
204261
}
205262

@@ -227,6 +284,83 @@ public function setPageNumbering($pageNumbering)
227284

228285
return $this;
229286
}
287+
288+
/*
289+
* Gets encoding
290+
*
291+
* @return string
292+
*/
293+
public function getEncoding()
294+
{
295+
return $this->container['encoding'];
296+
}
297+
298+
/*
299+
* Sets encoding
300+
*
301+
* @param string $encoding Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute
302+
*
303+
* @return $this
304+
*/
305+
public function setEncoding($encoding)
306+
{
307+
$this->container['encoding'] = $encoding;
308+
309+
return $this;
310+
}
311+
312+
/*
313+
* Gets usePdf
314+
*
315+
* @return bool
316+
*/
317+
public function getUsePdf()
318+
{
319+
return $this->container['usePdf'];
320+
}
321+
322+
/*
323+
* Sets usePdf
324+
*
325+
* @param bool $usePdf Use pdf for the conversion. Default: false
326+
*
327+
* @return $this
328+
*/
329+
public function setUsePdf($usePdf)
330+
{
331+
$this->container['usePdf'] = $usePdf;
332+
333+
return $this;
334+
}
335+
336+
/*
337+
* Gets renderingMode
338+
*
339+
* @return string
340+
*/
341+
public function getRenderingMode()
342+
{
343+
return $this->container['renderingMode'];
344+
}
345+
346+
/*
347+
* Sets renderingMode
348+
*
349+
* @param string $renderingMode Controls how HTML content is rendered. Default: AbsolutePositioning
350+
*
351+
* @return $this
352+
*/
353+
public function setRenderingMode($renderingMode)
354+
{
355+
$allowedValues = $this->getRenderingModeAllowableValues();
356+
if ((!is_numeric($renderingMode) && !in_array($renderingMode, $allowedValues)) || (is_numeric($renderingMode) && !in_array($allowedValues[$renderingMode], $allowedValues))) {
357+
throw new \InvalidArgumentException(sprintf("Invalid value for 'renderingMode', must be one of '%s'", implode("', '", $allowedValues)));
358+
}
359+
360+
$this->container['renderingMode'] = $renderingMode;
361+
362+
return $this;
363+
}
230364
/*
231365
* Returns true if offset exists. False otherwise.
232366
*

0 commit comments

Comments
 (0)