Skip to content

Commit e08a9ea

Browse files
add vectorization
1 parent e13a9d3 commit e08a9ea

29 files changed

+1189
-114
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Aspose.Html Cloud Node.js SDK
22
[Aspose.Html Cloud](https://products.aspose.cloud/html) is a true [REST API](https://apireference.aspose.cloud/html/) that enables you to perform a wide range of html processing operations including manipulation and conversion in the cloud, with zero initial costs. Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process html pages in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights.
33

4-
- API version: 22.11.2
5-
- Package version: 22.11.2
4+
- API version: 22.12.1
5+
- Package version: 22.12.1
66

77

88
### Possible conversions:
@@ -13,6 +13,7 @@
1313
- SVG -> PDF, XPS, JPEG, BMP, PNG, TIFF, GIF
1414
- JPEG, BMP, PNG, TIFF, GIF -> SVG
1515

16+
1617
## Installation
1718

1819
### Aspose.HTML Cloud SDK for Node.js
@@ -52,7 +53,7 @@ Please, add the following [nmp package](https://www.npmjs.com/package/@asposeclo
5253
```json
5354
{
5455
"dependencies": {
55-
"@asposecloud/aspose-html-cloud":"^22.11.2"
56+
"@asposecloud/aspose-html-cloud":"^22.12.1"
5657
}
5758
}
5859
```
@@ -181,8 +182,8 @@ All URIs are relative to *https://api.aspose.cloud/v4.0*
181182

182183
[Tests](./test/) contain various examples of using the Aspose.HTML SDK.
183184

184-
<a name="html_api"></a>
185-
### HTML API
185+
<a name="conversion_api"></a>
186+
### CONVERSION API
186187
- For conversion to images allowed formats is jpeg, png, bmp, tiff, gif. Input formats are html, epub, svg.
187188

188189
| Class | Method | Description |
@@ -195,6 +196,18 @@ All URIs are relative to *https://api.aspose.cloud/v4.0*
195196
| *Asposehtmlcloud.ConversionApi* | [**convertUrlToStorage**](docs/ConversionApi.md#converturltostorage) | Convert the HTML document by URL to user's storage. |
196197
| *Asposehtmlcloud.ConversionApi* | [**convert**](docs/ConversionApi.md#convert) | Convert a document to the specified format. |
197198

199+
200+
<a name="vectorization_api"></a>
201+
### VECTORIZATION API
202+
203+
| Class | Method | Description |
204+
|------------------------------------|-------------------------------------------------------------------------------------|---------------------------------------------------------------|
205+
| *Asposehtmlcloud.VectorizationApi* | [**vectorizeLocalToLocal**](docs/VectorizationApi.md#vectorizelocaltolocal) | Vectorization an image from local disk to a local disk. |
206+
| *Asposehtmlcloud.VectorizationApi* | [**vectorizeLocalToStorage**](docs/VectorizationApi.md#vectorizelocaltostorage) | Vectorization an image from local disk to user's storage. |
207+
| *Asposehtmlcloud.VectorizationApi* | [**vectorizeStorageToLocal**](docs/VectorizationApi.md#vectorizestoragetolocal) | Vectorization an image from user's storage to local disk. |
208+
| *Asposehtmlcloud.VectorizationApi* | [**vectorizeStorageToStorage**](docs/VectorizationApi.md#vectorizestoragetostorage) | Vectorization an image from user's storage to user's storage. |
209+
| *Asposehtmlcloud.VectorizationApi* | [**vectorize**](docs/VectorizationApi.md#vectorize) | Vectorization an image to the specified format. |
210+
198211
<a name="storage_api"></a>
199212
## STORAGE API
200213

@@ -212,7 +225,7 @@ All URIs are relative to *https://api.aspose.cloud/v4.0*
212225

213226
## Documentation for Models
214227

215-
- [Asposehtmlcloud.ConversionResult](docs/ConversionResult.md)
228+
- [Asposehtmlcloud.OperationResult](docs/OperationResult.md)
216229
- [Asposehtmlcloud.DiscUsage](docs/DiscUsage.md)
217230
- [Asposehtmlcloud.Error](docs/Error.md)
218231
- [Asposehtmlcloud.ErrorDetails](docs/ErrorDetails.md)

docs/ConversionApi.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ apiInstance.convertLocalToLocal(src, dst, opts, function (err, data, res) {
9090

9191
**(err, data, res)**
9292

93-
| Name | Type | Description |
94-
|----------|---------------------------------------------|----------------------------------|
95-
| **err** | **String** | Error if conversion is failed |
96-
| **data** | **[ConversionResult](ConversionResult.md)** | Result of conversion |
97-
| **res** | **Object** | Http response for conversion API |
93+
| Name | Type | Description |
94+
|----------|-------------------------------------------|----------------------------------|
95+
| **err** | **String** | Error if conversion is failed |
96+
| **data** | **[OperationResult](OperationResult.md)** | Result of conversion |
97+
| **res** | **Object** | Http response for conversion API |
9898

9999
### HTTP request headers
100100

@@ -164,11 +164,11 @@ apiInstance.convertLocalToStorage(src, dst, storage, opts, function (err, data,
164164

165165
**(err, data, res)**
166166

167-
| Name | Type | Description |
168-
|----------|---------------------------------------------|----------------------------------|
169-
| **err** | **String** | Error if conversion is failed |
170-
| **data** | **[ConversionResult](ConversionResult.md)** | Result of conversion |
171-
| **res** | **Object** | Http response for conversion API |
167+
| Name | Type | Description |
168+
|----------|-------------------------------------------|----------------------------------|
169+
| **err** | **String** | Error if conversion is failed |
170+
| **data** | **[OperationResult](OperationResult.md)** | Result of conversion |
171+
| **res** | **Object** | Http response for conversion API |
172172

173173
### HTTP request headers
174174

@@ -239,11 +239,11 @@ apiInstance.convertStorageToLocal(src, dst, storage, opts_A4, function (err, dat
239239

240240
**(err, data, res)**
241241

242-
| Name | Type | Description |
243-
|----------|---------------------------------------------|----------------------------------|
244-
| **err** | **String** | Error if conversion is failed |
245-
| **data** | **[ConversionResult](ConversionResult.md)** | Result of conversion |
246-
| **res** | **Object** | Http response for conversion API |
242+
| Name | Type | Description |
243+
|----------|-------------------------------------------|----------------------------------|
244+
| **err** | **String** | Error if conversion is failed |
245+
| **data** | **[OperationResult](OperationResult.md)** | Result of conversion |
246+
| **res** | **Object** | Http response for conversion API |
247247

248248
### HTTP request headers
249249

@@ -314,11 +314,11 @@ apiInstance.convertStorageToStorage(src, dst, storage, opts_A5, function (err, d
314314

315315
**(err, data, res)**
316316

317-
| Name | Type | Description |
318-
|----------|---------------------------------------------|----------------------------------|
319-
| **err** | **String** | Error if conversion is failed |
320-
| **data** | **[ConversionResult](ConversionResult.md)** | Result of conversion |
321-
| **res** | **Object** | Http response for conversion API |
317+
| Name | Type | Description |
318+
|----------|-------------------------------------------|----------------------------------|
319+
| **err** | **String** | Error if conversion is failed |
320+
| **data** | **[OperationResult](OperationResult.md)** | Result of conversion |
321+
| **res** | **Object** | Http response for conversion API |
322322

323323
### HTTP request headers
324324

@@ -387,11 +387,11 @@ apiInstance.convertUrlToLocal(src, dst, opts_letter, function (err, data, res) {
387387

388388
**(err, data, res)**
389389

390-
| Name | Type | Description |
391-
|----------|---------------------------------------------|----------------------------------|
392-
| **err** | **String** | Error if conversion is failed |
393-
| **data** | **[ConversionResult](ConversionResult.md)** | Result of conversion |
394-
| **res** | **Object** | Http response for conversion API |
390+
| Name | Type | Description |
391+
|----------|-------------------------------------------|----------------------------------|
392+
| **err** | **String** | Error if conversion is failed |
393+
| **data** | **[OperationResult](OperationResult.md)** | Result of conversion |
394+
| **res** | **Object** | Http response for conversion API |
395395

396396
### HTTP request headers
397397

@@ -461,11 +461,11 @@ apiInstance.convertUrlToStorage(src, dst, storage, opts_A4, function (err, data,
461461

462462
**(err, data, res)**
463463

464-
| Name | Type | Description |
465-
|----------|---------------------------------------------|----------------------------------|
466-
| **err** | **String** | Error if conversion is failed |
467-
| **data** | **[ConversionResult](ConversionResult.md)** | Result of conversion |
468-
| **res** | **Object** | Http response for conversion API |
464+
| Name | Type | Description |
465+
|----------|-------------------------------------------|----------------------------------|
466+
| **err** | **String** | Error if conversion is failed |
467+
| **data** | **[OperationResult](OperationResult.md)** | Result of conversion |
468+
| **res** | **Object** | Http response for conversion API |
469469

470470
### HTTP request headers
471471

@@ -538,11 +538,11 @@ apiInstance.convert(src, dst, false, false, true, opts_A3, storage, function (er
538538

539539
**(err, data, res)**
540540

541-
| Name | Type | Description |
542-
|----------|---------------------------------------------|----------------------------------|
543-
| **err** | **String** | Error if conversion is failed |
544-
| **data** | **[ConversionResult](ConversionResult.md)** | Result of conversion |
545-
| **res** | **Object** | Http response for conversion API |
541+
| Name | Type | Description |
542+
|----------|-------------------------------------------|----------------------------------|
543+
| **err** | **String** | Error if conversion is failed |
544+
| **data** | **[OperationResult](OperationResult.md)** | Result of conversion |
545+
| **res** | **Object** | Http response for conversion API |
546546

547547
### HTTP request headers
548548

docs/ConversionOptions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
| **bottommargin** | Number | Bottom margin in inches | Optional |
4949

5050
### SvgOptions
51-
| Field | Type | Description | Note |
52-
|---------------------|--------|----------------------------------------------------------------------------------------------------------|----------|
53-
| **error_threshold** | Number | This parameter defines maximum deviation of poNumbers to fitted curve. By default it is 30. | Optional |
54-
| **max_iterations** | Number | This parameter defines number of iteration for least-squares approximation method. By default it is 30. | Optional |
55-
| **colors_limit** | Number | The maximum number of colors used to quantize an image. Default value is 25. | Optional |
56-
| **line_width** | Number | The value of this parameter is affected by the graphics scale. Default value is 1. | Optional |
51+
| Field | Type | Description | Note |
52+
|---------------------|--------|---------------------------------------------------------------------------------------------------------|----------|
53+
| **error_threshold** | Number | This parameter defines maximum deviation of points to fitted curve. By default it is 30. | Optional |
54+
| **max_iterations** | Number | This parameter defines number of iteration for least-squares approximation method. By default it is 30. | Optional |
55+
| **colors_limit** | Number | The maximum number of colors used to quantize an image. Default value is 25. | Optional |
56+
| **line_width** | Number | The value of this parameter is affected by the graphics scale. Default value is 1. | Optional |
5757

5858

5959
### MarkdownOptions

docs/ConversionResult.md renamed to docs/OperationResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ConversionResult
1+
# OperationResult
22

33
## Properties
44
| Name | Type | Description | Notes |

0 commit comments

Comments
 (0)