Skip to content

Commit af2f1cc

Browse files
Merge branch 'master' into release
2 parents 2ff593e + f6435fe commit af2f1cc

File tree

366 files changed

+11586
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

366 files changed

+11586
-325
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ 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.8
17+
18+
- Added the support of OpenType standard. It is usefull for languages required advanced typography.
19+
20+
1621
## Enhancements in Version 24.7
1722

1823
- Added support for azw3 (Amazon Kindle Format) documents.
24+
- Added 'MaxImageResolution' property for SvgSaveOptionsData class.
1925

2026

2127
## Enhancements in Version 24.6

examples/AcceptAllRevisions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
*/
2323
$myVar3 = $fileName;
2424
$request = new AcceptAllRevisionsRequest(
25-
$myVar3, NULL, NULL, NULL, NULL, NULL, NULL
25+
$myVar3, NULL, NULL, NULL, NULL, NULL, NULL, NULL
2626
);
2727
$wordsApi->acceptAllRevisions($request);

examples/AcceptAllRevisionsOnline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
$requestDocument = $fileName;
1111
$request = new AcceptAllRevisionsOnlineRequest(
12-
$requestDocument, NULL, NULL, NULL, NULL
12+
$requestDocument, NULL, NULL, NULL, NULL, NULL
1313
);
1414
$acceptAllRevisionsOnlineResult = $wordsApi->acceptAllRevisionsOnline($request);
1515
$doc = $acceptAllRevisionsOnlineResult->getDocument();

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.7';
137+
protected $clientVersion = '24.8';
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.7' . PHP_EOL;
542+
$report .= ' OpenAPI Spec Version: 24.8' . PHP_EOL;
543543
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
544544

545545
return $report;

src/Aspose/Words/Model/Requests/AcceptAllRevisionsOnlineRequest.php

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ class AcceptAllRevisionsOnlineRequest extends BaseApiRequest
6464
*/
6565
public $encrypted_password;
6666

67+
/*
68+
* The value indicates whether OpenType support is on.
69+
*/
70+
public $open_type_support;
71+
6772
/*
6873
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
6974
*/
@@ -76,14 +81,16 @@ class AcceptAllRevisionsOnlineRequest extends BaseApiRequest
7681
* @param string $load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
7782
* @param string $password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
7883
* @param string $encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
84+
* @param bool $open_type_support The value indicates whether OpenType support is on.
7985
* @param string $dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
8086
*/
81-
public function __construct($document, $load_encoding = null, $password = null, $encrypted_password = null, $dest_file_name = null)
87+
public function __construct($document, $load_encoding = null, $password = null, $encrypted_password = null, $open_type_support = null, $dest_file_name = null)
8288
{
8389
$this->document = $document;
8490
$this->load_encoding = $load_encoding;
8591
$this->password = $password;
8692
$this->encrypted_password = $encrypted_password;
93+
$this->open_type_support = $open_type_support;
8794
$this->dest_file_name = $dest_file_name;
8895
}
8996

@@ -155,6 +162,23 @@ public function set_encrypted_password($value)
155162
return $this;
156163
}
157164

165+
/*
166+
* The value indicates whether OpenType support is on.
167+
*/
168+
public function get_open_type_support()
169+
{
170+
return $this->open_type_support;
171+
}
172+
173+
/*
174+
* The value indicates whether OpenType support is on.
175+
*/
176+
public function set_open_type_support($value)
177+
{
178+
$this->open_type_support = $value;
179+
return $this;
180+
}
181+
158182
/*
159183
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
160184
*/
@@ -225,6 +249,16 @@ public function createRequestData($config)
225249
}
226250
}
227251
// query params
252+
if ($this->open_type_support !== null) {
253+
$localName = lcfirst('OpenTypeSupport');
254+
$localValue = is_bool($this->open_type_support) ? ($this->open_type_support ? 'true' : 'false') : $this->open_type_support;
255+
if (strpos($resourcePath, '{' . $localName . '}') !== false) {
256+
$resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toQueryValue($localValue), $resourcePath);
257+
} else {
258+
$queryParams[$localName] = ObjectSerializer::toQueryValue($localValue);
259+
}
260+
}
261+
// query params
228262
if ($this->dest_file_name !== null) {
229263
$localName = lcfirst('DestFileName');
230264
$localValue = is_bool($this->dest_file_name) ? ($this->dest_file_name ? 'true' : 'false') : $this->dest_file_name;

src/Aspose/Words/Model/Requests/AcceptAllRevisionsRequest.php

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ class AcceptAllRevisionsRequest extends BaseApiRequest
7474
*/
7575
public $encrypted_password;
7676

77+
/*
78+
* The value indicates whether OpenType support is on.
79+
*/
80+
public $open_type_support;
81+
7782
/*
7883
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
7984
*/
@@ -88,16 +93,18 @@ class AcceptAllRevisionsRequest extends BaseApiRequest
8893
* @param string $load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
8994
* @param string $password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
9095
* @param string $encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
96+
* @param bool $open_type_support The value indicates whether OpenType support is on.
9197
* @param string $dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
9298
*/
93-
public function __construct($name, $folder = null, $storage = null, $load_encoding = null, $password = null, $encrypted_password = null, $dest_file_name = null)
99+
public function __construct($name, $folder = null, $storage = null, $load_encoding = null, $password = null, $encrypted_password = null, $open_type_support = null, $dest_file_name = null)
94100
{
95101
$this->name = $name;
96102
$this->folder = $folder;
97103
$this->storage = $storage;
98104
$this->load_encoding = $load_encoding;
99105
$this->password = $password;
100106
$this->encrypted_password = $encrypted_password;
107+
$this->open_type_support = $open_type_support;
101108
$this->dest_file_name = $dest_file_name;
102109
}
103110

@@ -203,6 +210,23 @@ public function set_encrypted_password($value)
203210
return $this;
204211
}
205212

213+
/*
214+
* The value indicates whether OpenType support is on.
215+
*/
216+
public function get_open_type_support()
217+
{
218+
return $this->open_type_support;
219+
}
220+
221+
/*
222+
* The value indicates whether OpenType support is on.
223+
*/
224+
public function set_open_type_support($value)
225+
{
226+
$this->open_type_support = $value;
227+
return $this;
228+
}
229+
206230
/*
207231
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
208232
*/
@@ -302,6 +326,16 @@ public function createRequestData($config)
302326
}
303327
}
304328
// query params
329+
if ($this->open_type_support !== null) {
330+
$localName = lcfirst('OpenTypeSupport');
331+
$localValue = is_bool($this->open_type_support) ? ($this->open_type_support ? 'true' : 'false') : $this->open_type_support;
332+
if (strpos($resourcePath, '{' . $localName . '}') !== false) {
333+
$resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toQueryValue($localValue), $resourcePath);
334+
} else {
335+
$queryParams[$localName] = ObjectSerializer::toQueryValue($localValue);
336+
}
337+
}
338+
// query params
305339
if ($this->dest_file_name !== null) {
306340
$localName = lcfirst('DestFileName');
307341
$localValue = is_bool($this->dest_file_name) ? ($this->dest_file_name ? 'true' : 'false') : $this->dest_file_name;

src/Aspose/Words/Model/Requests/AppendDocumentOnlineRequest.php

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ class AppendDocumentOnlineRequest extends BaseApiRequest
6969
*/
7070
public $encrypted_password;
7171

72+
/*
73+
* The value indicates whether OpenType support is on.
74+
*/
75+
public $open_type_support;
76+
7277
/*
7378
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
7479
*/
@@ -92,17 +97,19 @@ class AppendDocumentOnlineRequest extends BaseApiRequest
9297
* @param string $load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
9398
* @param string $password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
9499
* @param string $encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
100+
* @param bool $open_type_support The value indicates whether OpenType support is on.
95101
* @param string $dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
96102
* @param string $revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
97103
* @param string $revision_date_time The date and time to use for revisions.
98104
*/
99-
public function __construct($document, $document_list, $load_encoding = null, $password = null, $encrypted_password = null, $dest_file_name = null, $revision_author = null, $revision_date_time = null)
105+
public function __construct($document, $document_list, $load_encoding = null, $password = null, $encrypted_password = null, $open_type_support = null, $dest_file_name = null, $revision_author = null, $revision_date_time = null)
100106
{
101107
$this->document = $document;
102108
$this->document_list = $document_list;
103109
$this->load_encoding = $load_encoding;
104110
$this->password = $password;
105111
$this->encrypted_password = $encrypted_password;
112+
$this->open_type_support = $open_type_support;
106113
$this->dest_file_name = $dest_file_name;
107114
$this->revision_author = $revision_author;
108115
$this->revision_date_time = $revision_date_time;
@@ -193,6 +200,23 @@ public function set_encrypted_password($value)
193200
return $this;
194201
}
195202

203+
/*
204+
* The value indicates whether OpenType support is on.
205+
*/
206+
public function get_open_type_support()
207+
{
208+
return $this->open_type_support;
209+
}
210+
211+
/*
212+
* The value indicates whether OpenType support is on.
213+
*/
214+
public function set_open_type_support($value)
215+
{
216+
$this->open_type_support = $value;
217+
return $this;
218+
}
219+
196220
/*
197221
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
198222
*/
@@ -304,6 +328,16 @@ public function createRequestData($config)
304328
}
305329
}
306330
// query params
331+
if ($this->open_type_support !== null) {
332+
$localName = lcfirst('OpenTypeSupport');
333+
$localValue = is_bool($this->open_type_support) ? ($this->open_type_support ? 'true' : 'false') : $this->open_type_support;
334+
if (strpos($resourcePath, '{' . $localName . '}') !== false) {
335+
$resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toQueryValue($localValue), $resourcePath);
336+
} else {
337+
$queryParams[$localName] = ObjectSerializer::toQueryValue($localValue);
338+
}
339+
}
340+
// query params
307341
if ($this->dest_file_name !== null) {
308342
$localName = lcfirst('DestFileName');
309343
$localValue = is_bool($this->dest_file_name) ? ($this->dest_file_name ? 'true' : 'false') : $this->dest_file_name;

src/Aspose/Words/Model/Requests/AppendDocumentRequest.php

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ class AppendDocumentRequest extends BaseApiRequest
7979
*/
8080
public $encrypted_password;
8181

82+
/*
83+
* The value indicates whether OpenType support is on.
84+
*/
85+
public $open_type_support;
86+
8287
/*
8388
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
8489
*/
@@ -104,11 +109,12 @@ class AppendDocumentRequest extends BaseApiRequest
104109
* @param string $load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
105110
* @param string $password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
106111
* @param string $encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
112+
* @param bool $open_type_support The value indicates whether OpenType support is on.
107113
* @param string $dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
108114
* @param string $revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
109115
* @param string $revision_date_time The date and time to use for revisions.
110116
*/
111-
public function __construct($name, $document_list, $folder = null, $storage = null, $load_encoding = null, $password = null, $encrypted_password = null, $dest_file_name = null, $revision_author = null, $revision_date_time = null)
117+
public function __construct($name, $document_list, $folder = null, $storage = null, $load_encoding = null, $password = null, $encrypted_password = null, $open_type_support = null, $dest_file_name = null, $revision_author = null, $revision_date_time = null)
112118
{
113119
$this->name = $name;
114120
$this->document_list = $document_list;
@@ -117,6 +123,7 @@ public function __construct($name, $document_list, $folder = null, $storage = nu
117123
$this->load_encoding = $load_encoding;
118124
$this->password = $password;
119125
$this->encrypted_password = $encrypted_password;
126+
$this->open_type_support = $open_type_support;
120127
$this->dest_file_name = $dest_file_name;
121128
$this->revision_author = $revision_author;
122129
$this->revision_date_time = $revision_date_time;
@@ -241,6 +248,23 @@ public function set_encrypted_password($value)
241248
return $this;
242249
}
243250

251+
/*
252+
* The value indicates whether OpenType support is on.
253+
*/
254+
public function get_open_type_support()
255+
{
256+
return $this->open_type_support;
257+
}
258+
259+
/*
260+
* The value indicates whether OpenType support is on.
261+
*/
262+
public function set_open_type_support($value)
263+
{
264+
$this->open_type_support = $value;
265+
return $this;
266+
}
267+
244268
/*
245269
* Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
246270
*/
@@ -381,6 +405,16 @@ public function createRequestData($config)
381405
}
382406
}
383407
// query params
408+
if ($this->open_type_support !== null) {
409+
$localName = lcfirst('OpenTypeSupport');
410+
$localValue = is_bool($this->open_type_support) ? ($this->open_type_support ? 'true' : 'false') : $this->open_type_support;
411+
if (strpos($resourcePath, '{' . $localName . '}') !== false) {
412+
$resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toQueryValue($localValue), $resourcePath);
413+
} else {
414+
$queryParams[$localName] = ObjectSerializer::toQueryValue($localValue);
415+
}
416+
}
417+
// query params
384418
if ($this->dest_file_name !== null) {
385419
$localName = lcfirst('DestFileName');
386420
$localValue = is_bool($this->dest_file_name) ? ($this->dest_file_name ? 'true' : 'false') : $this->dest_file_name;

0 commit comments

Comments
 (0)