Skip to content

Commit 3fc7e12

Browse files
Merge branch 'master' into release
2 parents 430e2fd + f8a5bb7 commit 3fc7e12

File tree

6 files changed

+300
-45
lines changed

6 files changed

+300
-45
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ This repository contains Aspose.Words Cloud SDK for PHP source code. This SDK al
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 24.7
17+
18+
- Added support for azw3 (Amazon Kindle Format) documents.
19+
20+
1621
## Enhancements in Version 24.6
1722

1823
- Added the 'TranslateNodeId' method to transalate a node id to a node path.

composer-test.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/Aspose/Words/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class Configuration
134134
* Version of Aspose.Words Cloud API
135135
*
136136
*/
137-
protected $clientVersion = '24.6';
137+
protected $clientVersion = '24.7';
138138

139139
/*
140140
* Stores timeout in seconds
@@ -539,7 +539,7 @@ public static function toDebugReport()
539539
$report = 'PHP SDK (Aspose\Words) Debug Report:' . PHP_EOL;
540540
$report .= ' OS: ' . php_uname() . PHP_EOL;
541541
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
542-
$report .= ' OpenAPI Spec Version: 24.6' . PHP_EOL;
542+
$report .= ' OpenAPI Spec Version: 24.7' . PHP_EOL;
543543
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
544544

545545
return $report;
Lines changed: 285 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,285 @@
1+
<?php
2+
/*
3+
* --------------------------------------------------------------------------------
4+
* <copyright company="Aspose" file="Azw3SaveOptionsData.php">
5+
* Copyright (c) 2024 Aspose.Words for Cloud
6+
* </copyright>
7+
* <summary>
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in all
16+
* copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
* SOFTWARE.
25+
* </summary>
26+
* --------------------------------------------------------------------------------
27+
*/
28+
29+
namespace Aspose\Words\Model;
30+
use \Aspose\Words\ObjectSerializer;
31+
32+
/*
33+
* Azw3SaveOptionsData
34+
*
35+
* @description Container class for azw3 save options.
36+
*/
37+
class Azw3SaveOptionsData extends HtmlSaveOptionsData
38+
{
39+
const DISCRIMINATOR = null;
40+
41+
/*
42+
* The original name of the model.
43+
*
44+
* @var string
45+
*/
46+
protected static $swaggerModelName = "Azw3SaveOptionsData";
47+
48+
/*
49+
* Array of property to type mappings. Used for (de)serialization
50+
*
51+
* @var string[]
52+
*/
53+
protected static $swaggerTypes = [
54+
'navigation_map_level' => 'int'
55+
];
56+
57+
/*
58+
* Array of property to format mappings. Used for (de)serialization
59+
*
60+
* @var string[]
61+
*/
62+
protected static $swaggerFormats = [
63+
'navigation_map_level' => 'null'
64+
];
65+
66+
/*
67+
* Array of property to type mappings. Used for (de)serialization
68+
*
69+
* @return array
70+
*/
71+
public static function swaggerTypes()
72+
{
73+
return self::$swaggerTypes + parent::swaggerTypes();
74+
}
75+
76+
/*
77+
* Array of property to format mappings. Used for (de)serialization
78+
*
79+
* @return array
80+
*/
81+
public static function swaggerFormats()
82+
{
83+
return self::$swaggerFormats + parent::swaggerFormats();
84+
}
85+
86+
/*
87+
* Array of attributes where the key is the local name,
88+
* and the value is the original name
89+
*
90+
* @var string[]
91+
*/
92+
protected static $attributeMap = [
93+
'navigation_map_level' => 'NavigationMapLevel'
94+
];
95+
96+
/*
97+
* Array of attributes to setter functions (for deserialization of responses)
98+
*
99+
* @var string[]
100+
*/
101+
protected static $setters = [
102+
'navigation_map_level' => 'setNavigationMapLevel'
103+
];
104+
105+
/*
106+
* Array of attributes to getter functions (for serialization of requests)
107+
*
108+
* @var string[]
109+
*/
110+
protected static $getters = [
111+
'navigation_map_level' => 'getNavigationMapLevel'
112+
];
113+
114+
/*
115+
* Array of attributes where the key is the local name,
116+
* and the value is the original name
117+
*
118+
* @return array
119+
*/
120+
public static function attributeMap()
121+
{
122+
return parent::attributeMap() + self::$attributeMap;
123+
}
124+
125+
/*
126+
* Array of attributes to setter functions (for deserialization of responses)
127+
*
128+
* @return array
129+
*/
130+
public static function setters()
131+
{
132+
return parent::setters() + self::$setters;
133+
}
134+
135+
/*
136+
* Array of attributes to getter functions (for serialization of requests)
137+
*
138+
* @return array
139+
*/
140+
public static function getters()
141+
{
142+
return parent::getters() + self::$getters;
143+
}
144+
145+
/*
146+
* The original name of the model.
147+
*
148+
* @return string
149+
*/
150+
public function getModelName()
151+
{
152+
return self::$swaggerModelName;
153+
}
154+
155+
156+
157+
/*
158+
* Constructor
159+
*
160+
* @param mixed[] $data Associated array of property values
161+
* initializing the model
162+
*/
163+
public function __construct(array $data = null)
164+
{
165+
parent::__construct($data);
166+
$this->container['navigation_map_level'] = isset($data['navigation_map_level']) ? $data['navigation_map_level'] : null;
167+
$this->container['save_format'] = "azw3";
168+
}
169+
170+
/*
171+
* Validate all the properties in the model
172+
*/
173+
public function validate()
174+
{
175+
parent::validate();
176+
177+
}
178+
179+
/*
180+
* Gets navigation_map_level
181+
*
182+
* @return int
183+
*/
184+
public function getNavigationMapLevel()
185+
{
186+
return $this->container['navigation_map_level'];
187+
}
188+
189+
/*
190+
* Sets navigation_map_level
191+
*
192+
* @param int $navigation_map_level Gets or sets the maximum level of headings populated to the navigation map when exporting.
193+
*
194+
* @return $this
195+
*/
196+
public function setNavigationMapLevel($navigation_map_level)
197+
{
198+
$this->container['navigation_map_level'] = $navigation_map_level;
199+
return $this;
200+
}
201+
202+
203+
/*
204+
* Returns true if offset exists. False otherwise.
205+
*
206+
* @param integer $offset Offset
207+
*
208+
* @return boolean
209+
*/
210+
#[\ReturnTypeWillChange]
211+
public function offsetExists($offset)
212+
{
213+
return isset($this->container[$offset]);
214+
}
215+
216+
/*
217+
* Gets offset.
218+
*
219+
* @param integer $offset Offset
220+
*
221+
* @return mixed
222+
*/
223+
#[\ReturnTypeWillChange]
224+
public function offsetGet($offset)
225+
{
226+
return isset($this->container[$offset]) ? $this->container[$offset] : null;
227+
}
228+
229+
/*
230+
* Sets value based on offset.
231+
*
232+
* @param integer $offset Offset
233+
* @param mixed $value Value to be set
234+
*
235+
* @return void
236+
*/
237+
#[\ReturnTypeWillChange]
238+
public function offsetSet($offset, $value)
239+
{
240+
if (is_null($offset)) {
241+
$this->container[] = $value;
242+
} else {
243+
$this->container[$offset] = $value;
244+
}
245+
}
246+
247+
/*
248+
* Unsets offset.
249+
*
250+
* @param integer $offset Offset
251+
*
252+
* @return void
253+
*/
254+
#[\ReturnTypeWillChange]
255+
public function offsetUnset($offset)
256+
{
257+
unset($this->container[$offset]);
258+
}
259+
260+
/*
261+
* Collect all FileReference variables to list
262+
*/
263+
public function collectFilesContent($resultFilesContent)
264+
{
265+
return $resultFilesContent;
266+
}
267+
268+
/*
269+
* Gets the string presentation of the object
270+
*
271+
* @return string
272+
*/
273+
public function __toString()
274+
{
275+
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
276+
return json_encode(
277+
ObjectSerializer::sanitizeForSerialization($this),
278+
JSON_PRETTY_PRINT
279+
);
280+
}
281+
282+
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
283+
}
284+
}
285+

src/Aspose/Words/Model/Document.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ public function getModelName()
199199
const SOURCE_FORMAT_XPS = 'Xps';
200200
const SOURCE_FORMAT_TIFF = 'Tiff';
201201
const SOURCE_FORMAT_SVG = 'Svg';
202+
const SOURCE_FORMAT_AZW3 = 'Azw3';
202203

203204
/*
204205
* Gets allowable values of the enum
@@ -228,7 +229,8 @@ public function getSourceFormatAllowableValues()
228229
self::SOURCE_FORMAT_PDF,
229230
self::SOURCE_FORMAT_XPS,
230231
self::SOURCE_FORMAT_TIFF,
231-
self::SOURCE_FORMAT_SVG
232+
self::SOURCE_FORMAT_SVG,
233+
self::SOURCE_FORMAT_AZW3
232234
];
233235
}
234236

src/Aspose/Words/Model/PdfSaveOptionsData.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ public function getModelName()
289289
const COMPLIANCE_PDF_A2A = 'PdfA2a';
290290
const COMPLIANCE_PDF_A2U = 'PdfA2u';
291291
const COMPLIANCE_PDF_A4 = 'PdfA4';
292+
const COMPLIANCE_PDF_A4_UA2 = 'PdfA4Ua2';
292293
const COMPLIANCE_PDF_UA1 = 'PdfUa1';
294+
const COMPLIANCE_PDF_UA2 = 'PdfUa2';
293295
const CUSTOM_PROPERTIES_EXPORT_NONE = 'None';
294296
const CUSTOM_PROPERTIES_EXPORT_STANDARD = 'Standard';
295297
const CUSTOM_PROPERTIES_EXPORT_METADATA = 'Metadata';
@@ -331,7 +333,9 @@ public function getComplianceAllowableValues()
331333
self::COMPLIANCE_PDF_A2A,
332334
self::COMPLIANCE_PDF_A2U,
333335
self::COMPLIANCE_PDF_A4,
334-
self::COMPLIANCE_PDF_UA1
336+
self::COMPLIANCE_PDF_A4_UA2,
337+
self::COMPLIANCE_PDF_UA1,
338+
self::COMPLIANCE_PDF_UA2
335339
];
336340
}
337341
/*

0 commit comments

Comments
 (0)