Skip to content

Commit d088d23

Browse files
updated to v19.10: ML features removed
1 parent 6f663aa commit d088d23

File tree

5 files changed

+21
-63
lines changed

5 files changed

+21
-63
lines changed

README.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# asposehtmlcloud
1+
# Asposehtmlcloud
22

33
Asposehtmlcloud - JavaScript client for asposehtmlcloud
44

5-
- API version: 19.6.2
6-
- Package version: 19.6.2
5+
- API version: 19.7.0
6+
- Package version: 19.7.0
77

88
## Installation
99

@@ -18,7 +18,6 @@ The complete source code is available in this repository folder, you can either
1818
it in your project via npm package manager.
1919

2020
### Prerequisites
21-
2221
To use Aspose HTML for Cloud Node.js SDK you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
2322

2423
### Installation
@@ -27,7 +26,6 @@ To use Aspose HTML for Cloud Node.js SDK you need to register an account with [A
2726
### For [Node.js](https://nodejs.org/)
2827

2928
#### npm
30-
3129
To publish the library as a [npm](https://www.npmjs.com/),
3230
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
3331

@@ -62,7 +60,6 @@ You should now be able to `require('asposehtmlcloud')` in javascript files from
6260
command above from.
6361

6462
#### git
65-
#
6663
If the library is hosted at a git repository, e.g.
6764
https://github.com/GIT_USER_ID/GIT_REPO_ID
6865
then install it via:
@@ -72,7 +69,6 @@ then install it via:
7269
```
7370

7471
### For browser
75-
7672
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
7773
the above steps with Node.js and installing browserify with `npm install -g browserify`,
7874
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually
@@ -85,7 +81,6 @@ browserify main.js > bundle.js
8581
Then include *bundle.js* in the HTML pages.
8682

8783
### Webpack Configuration
88-
8984
Using Webpack you may encounter the following error: "Module not found: Error:
9085
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
9186
the following section to your webpack config:
@@ -103,7 +98,6 @@ module: {
10398
```
10499

105100
### Sample usage
106-
107101
Before fill all fields in configuration object (see tests)
108102

109103
Example:
@@ -121,7 +115,6 @@ var conf = {
121115
```
122116

123117
## Getting Started
124-
125118
Please follow the [installation](#installation) instruction and execute the following JS code:
126119

127120
NOTE: Use the helper from /test/helper.js for upload and save data.
@@ -196,14 +189,12 @@ conversionApi.GetConvertDocumentToImage(filename, outFormat, opts, callback);
196189
```
197190

198191
## Documentation for API Endpoints
199-
200192
All URIs are relative to *https://api.aspose.cloud/v3.0*
201193

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

204196
<a name="html_api"></a>
205197
### HTML API
206-
207198
- For conversion to images allowed formats is jpeg, png, bmp, tiff, gif. Input formats are html, epub, svg.
208199

209200
Class | Method | HTTP request | Description
@@ -234,12 +225,6 @@ Class | Method | HTTP request | Description
234225
*Asposehtmlcloud.DocumentApi* | [**GetDocumentFragmentsByCSSSelectorByUrl**](docs/DocumentApi.md#GetDocumentFragmentsByCSSSelectorByUrl) | **GET** /html/fragments/css/{outFormat} | Return list of HTML fragments matching the specified CSS selector by the source page URL.
235226
*Asposehtmlcloud.DocumentApi* | [**GetDocumentImages**](docs/DocumentApi.md#GetDocumentImages) | **GET** /html/{name}/images/all | Return all HTML document images packaged as a ZIP archive.
236227
*Asposehtmlcloud.DocumentApi* | [**GetDocumentImagesByUrl**](docs/DocumentApi.md#GetDocumentImagesByUrl) | **GET** /html/images/all | Return all HTML page images packaged as a ZIP archive by the source page URL.
237-
*Asposehtmlcloud.OcrApi* | [**GetRecognizeAndImportToHtml**](docs/OcrApi.md#GetRecognizeAndImportToHtml) | **GET** /html/{name}/ocr/import | Recognize text from the image file in the storage and import it to HTML format.
238-
*Asposehtmlcloud.OcrApi* | [**GetRecognizeAndTranslateToHtml**](docs/OcrApi.md#GetRecognizeAndTranslateToHtml) | **GET** /html/{name}/ocr/translate/{srcLang}/{resLang} | Recognize text from the image file in the storage, import it to HTML format and translate to specified language.
239-
*Asposehtmlcloud.TranslationApi* | [**GetTranslateDocument**](docs/TranslationApi.md#GetTranslateDocument) | **GET** /html/{name}/translate/{srcLang}/{resLang} | Translate the HTML document specified by the name from default or specified storage.
240-
*Asposehtmlcloud.TranslationApi* | [**GetTranslateDocumentByUrl**](docs/TranslationApi.md#GetTranslateDocumentByUrl) | **GET** /html/translate/{srcLang}/{resLang} | Translate the HTML document from Web specified by its URL.
241-
*Asposehtmlcloud.SummarizationApi* | [**GetDetectHtmlKeywords**](docs/SummarizationApi.md#GetDetectHtmlKeywords) | **GET** /html/{name}/summ/keywords | Get the HTML document keywords using the keyword detection service.
242-
*Asposehtmlcloud.SummarizationApi* | [**GetDetectHtmlKeywordsByUrl**](docs/SummarizationApi.md#GetDetectHtmlKeywordsByUrl) | **GET** /html/summ/keywords | Get the keywords from HTML document from Web specified by its URL using the keyword detection service
243228
*Asposehtmlcloud.TemplateMergeApi* | [**GetMergeHtmlTemplate**](docs/TemplateMergeApi.md#GetMergeHtmlTemplate) | **GET** /html/{templateName}/merge | Populate HTML document template with data located as a file in the storage.
244229
*Asposehtmlcloud.TemplateMergeApi* | [**PostMergeHtmlTemplate**](docs/TemplateMergeApi.md#PostMergeHtmlTemplate) | **POST** /html/{templateName}/merge | Populate HTML document template with data from the request body. Result document will be saved to storage.
245230

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposehtmlcloud",
3-
"version": "19.6.2",
3+
"version": "19.7.0",
44
"description": "Aspose.HTML Cloud SDK for Javascript source code.",
55
"license": "MIT",
66
"main": "./src/index.js",
@@ -13,8 +13,8 @@
1313
"Cloud",
1414
"HTML",
1515
"Conversion",
16-
"Translate",
17-
"Recognize"
16+
"Css",
17+
"xPath"
1818
],
1919
"browser": {
2020
"fs": false

src/ApiClient.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,6 @@
370370
url = url.replace(/%2f/gi, '/');
371371
var request = superagent(httpMethod, url);
372372

373-
//ToDo: for local test
374-
queryParams['AppSid'] = 'html.cloud';
375-
376373
// set query parameters
377374
if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {
378375
queryParams['_'] = new Date().getTime();

src/index.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
'api/ConversionApi',
3333
'api/ImportApi',
3434
'api/DocumentApi',
35-
'api/OcrApi',
36-
'api/TranslationApi',
37-
'api/SummarizationApi',
3835
'api/TemplateMergeApi',
3936
'api/StorageApi'], factory);
4037
} else if (typeof module === 'object' && module.exports) {
@@ -43,14 +40,11 @@
4340
require('./api/ConversionApi'),
4441
require('./api/ImportApi'),
4542
require('./api/DocumentApi'),
46-
require('./api/OcrApi'),
47-
require('./api/TranslationApi'),
48-
require('./api/SummarizationApi'),
4943
require('./api/TemplateMergeApi'),
5044
require('./api/StorageApi')
5145
);
5246
}
53-
}(function (ApiClient, ConversionApi, ImportApi, DocumentApi, OcrApi, TranslationApi, SummarizationApi, TemplateMergeApi, StorageApi) {
47+
}(function (ApiClient, ConversionApi, ImportApi, DocumentApi, TemplateMergeApi, StorageApi) {
5448
'use strict';
5549

5650
/**
@@ -109,24 +103,6 @@
109103
*/
110104
DocumentApi: DocumentApi,
111105

112-
/**
113-
* The OcrApi service constructor.
114-
* @property {module:api/OcrApi}
115-
*/
116-
OcrApi: OcrApi,
117-
118-
/**
119-
* The TranslationApi service constructor.
120-
* @property {module:api/TranslationApi}
121-
*/
122-
TranslationApi: TranslationApi,
123-
124-
/**
125-
* The SummarizationApi service constructor.
126-
* @property {module:api/SummarizationApi}
127-
*/
128-
SummarizationApi: SummarizationApi,
129-
130106
/**
131107
* The TemplateMergeApi service constructor.
132108
* @property {module:api/TemplateMergeApi}

0 commit comments

Comments
 (0)