diff --git a/README.md b/README.md index 1ce1eab..891d9ec 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types. [Cloudmersive Document and Data Conversion API](https://www.cloudmersive.com/convert-api) provides advanced document conversion, editing and generation capabilities. - API version: v1 -- Package version: 1.8.3 +- Package version: 1.8.4 ## Requirements diff --git a/composer.json b/composer.json index 01b3bf1..ba3b030 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "cloudmersive/cloudmersive_document_convert_api_client", - "version": "1.8.3", + "version": "1.8.4", "description": "", "keywords": [ "swagger", diff --git a/docs/Model/UrlToPdfRequest.md b/docs/Model/UrlToPdfRequest.md index fef5832..26b02d8 100644 --- a/docs/Model/UrlToPdfRequest.md +++ b/docs/Model/UrlToPdfRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **url** | **string** | URL address of the website to screenshot. HTTP and HTTPS are both supported, as are custom ports. | [optional] **extra_loading_wait** | **int** | Optional: Additional number of milliseconds to wait once the web page has finished loading before taking the screenshot. Can be helpful for highly asynchronous websites. Provide a value of 0 for the default of 5000 milliseconds (5 seconds) | [optional] **include_background_graphics** | **bool** | Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true. | [optional] +**scale_factor** | **int** | Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100% | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/Configuration.php b/lib/Configuration.php index e2664d3..ea45dc1 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -88,7 +88,7 @@ class Configuration * * @var string */ - protected $userAgent = 'Swagger-Codegen/1.8.3/php'; + protected $userAgent = 'Swagger-Codegen/1.8.4/php'; /** * Debug switch (default set to false) @@ -397,7 +397,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' OpenAPI Spec Version: v1' . PHP_EOL; - $report .= ' SDK Package Version: 1.8.3' . PHP_EOL; + $report .= ' SDK Package Version: 1.8.4' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/UrlToPdfRequest.php b/lib/Model/UrlToPdfRequest.php index a801d23..0cc7a92 100644 --- a/lib/Model/UrlToPdfRequest.php +++ b/lib/Model/UrlToPdfRequest.php @@ -60,7 +60,8 @@ class UrlToPdfRequest implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'url' => 'string', 'extra_loading_wait' => 'int', - 'include_background_graphics' => 'bool' + 'include_background_graphics' => 'bool', + 'scale_factor' => 'int' ]; /** @@ -71,7 +72,8 @@ class UrlToPdfRequest implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'url' => null, 'extra_loading_wait' => 'int32', - 'include_background_graphics' => null + 'include_background_graphics' => null, + 'scale_factor' => 'int32' ]; /** @@ -103,7 +105,8 @@ public static function swaggerFormats() protected static $attributeMap = [ 'url' => 'Url', 'extra_loading_wait' => 'ExtraLoadingWait', - 'include_background_graphics' => 'IncludeBackgroundGraphics' + 'include_background_graphics' => 'IncludeBackgroundGraphics', + 'scale_factor' => 'ScaleFactor' ]; /** @@ -114,7 +117,8 @@ public static function swaggerFormats() protected static $setters = [ 'url' => 'setUrl', 'extra_loading_wait' => 'setExtraLoadingWait', - 'include_background_graphics' => 'setIncludeBackgroundGraphics' + 'include_background_graphics' => 'setIncludeBackgroundGraphics', + 'scale_factor' => 'setScaleFactor' ]; /** @@ -125,7 +129,8 @@ public static function swaggerFormats() protected static $getters = [ 'url' => 'getUrl', 'extra_loading_wait' => 'getExtraLoadingWait', - 'include_background_graphics' => 'getIncludeBackgroundGraphics' + 'include_background_graphics' => 'getIncludeBackgroundGraphics', + 'scale_factor' => 'getScaleFactor' ]; /** @@ -191,6 +196,7 @@ public function __construct(array $data = null) $this->container['url'] = isset($data['url']) ? $data['url'] : null; $this->container['extra_loading_wait'] = isset($data['extra_loading_wait']) ? $data['extra_loading_wait'] : null; $this->container['include_background_graphics'] = isset($data['include_background_graphics']) ? $data['include_background_graphics'] : null; + $this->container['scale_factor'] = isset($data['scale_factor']) ? $data['scale_factor'] : null; } /** @@ -289,6 +295,30 @@ public function setIncludeBackgroundGraphics($include_background_graphics) return $this; } + + /** + * Gets scale_factor + * + * @return int + */ + public function getScaleFactor() + { + return $this->container['scale_factor']; + } + + /** + * Sets scale_factor + * + * @param int $scale_factor Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100% + * + * @return $this + */ + public function setScaleFactor($scale_factor) + { + $this->container['scale_factor'] = $scale_factor; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/packageconfig.json b/packageconfig.json index 0d971ec..cfd8e51 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,5 +1,5 @@ { - "artifactVersion": "1.8.3", + "artifactVersion": "1.8.4", "gitUserId": "Cloudmersive", "gitRepoId": "Cloudmersive.APIClient.PHP.DocumentAndDataConvert", "composerVendorName": "cloudmersive", diff --git a/test/Model/UrlToPdfRequestTest.php b/test/Model/UrlToPdfRequestTest.php index 1113056..9356283 100644 --- a/test/Model/UrlToPdfRequestTest.php +++ b/test/Model/UrlToPdfRequestTest.php @@ -97,4 +97,11 @@ public function testPropertyExtraLoadingWait() public function testPropertyIncludeBackgroundGraphics() { } + + /** + * Test attribute "scale_factor" + */ + public function testPropertyScaleFactor() + { + } }