Skip to content

Commit

Permalink
Added 2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Aug 18, 2019
1 parent d3e26d7 commit f6cc33d
Show file tree
Hide file tree
Showing 95 changed files with 323 additions and 95 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,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: 2.0.5
- Package version: 2.0.6


## Installation
Expand Down Expand Up @@ -139,6 +139,8 @@ Class | Method | HTTP request | Description
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentDocToDocx**](docs/ConvertDocumentApi.md#convertDocumentDocToDocx) | **POST** /convert/doc/to/docx | Word DOC (97-03) to DOCX
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentDocToPdf**](docs/ConvertDocumentApi.md#convertDocumentDocToPdf) | **POST** /convert/doc/to/pdf | Word DOC (97-03) to PDF
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentDocxToPdf**](docs/ConvertDocumentApi.md#convertDocumentDocxToPdf) | **POST** /convert/docx/to/pdf | Word DOCX to PDF
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentHtmlToPdf**](docs/ConvertDocumentApi.md#convertDocumentHtmlToPdf) | **POST** /convert/html/to/pdf | HTML to PDF
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentHtmlToPng**](docs/ConvertDocumentApi.md#convertDocumentHtmlToPng) | **POST** /convert/html/to/png | HTML to PNG array
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentPdfToDocx**](docs/ConvertDocumentApi.md#convertDocumentPdfToDocx) | **POST** /convert/pdf/to/docx | PDF to Word DOCX
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentPdfToPngArray**](docs/ConvertDocumentApi.md#convertDocumentPdfToPngArray) | **POST** /convert/pdf/to/png | PDF to PNG Array
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentPdfToPptx**](docs/ConvertDocumentApi.md#convertDocumentPdfToPptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX
Expand Down
4 changes: 3 additions & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,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: 2.0.5
- Package version: 2.0.6


## Installation
Expand Down Expand Up @@ -139,6 +139,8 @@ Class | Method | HTTP request | Description
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentDocToDocx**](docs/ConvertDocumentApi.md#convertDocumentDocToDocx) | **POST** /convert/doc/to/docx | Word DOC (97-03) to DOCX
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentDocToPdf**](docs/ConvertDocumentApi.md#convertDocumentDocToPdf) | **POST** /convert/doc/to/pdf | Word DOC (97-03) to PDF
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentDocxToPdf**](docs/ConvertDocumentApi.md#convertDocumentDocxToPdf) | **POST** /convert/docx/to/pdf | Word DOCX to PDF
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentHtmlToPdf**](docs/ConvertDocumentApi.md#convertDocumentHtmlToPdf) | **POST** /convert/html/to/pdf | HTML to PDF
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentHtmlToPng**](docs/ConvertDocumentApi.md#convertDocumentHtmlToPng) | **POST** /convert/html/to/png | HTML to PNG array
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentPdfToDocx**](docs/ConvertDocumentApi.md#convertDocumentPdfToDocx) | **POST** /convert/pdf/to/docx | PDF to Word DOCX
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentPdfToPngArray**](docs/ConvertDocumentApi.md#convertDocumentPdfToPngArray) | **POST** /convert/pdf/to/png | PDF to PNG Array
*CloudmersiveConvertApiClient.ConvertDocumentApi* | [**convertDocumentPdfToPptx**](docs/ConvertDocumentApi.md#convertDocumentPdfToPptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX
Expand Down
110 changes: 109 additions & 1 deletion client/docs/ConvertDocumentApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Method | HTTP request | Description
[**convertDocumentDocToDocx**](ConvertDocumentApi.md#convertDocumentDocToDocx) | **POST** /convert/doc/to/docx | Word DOC (97-03) to DOCX
[**convertDocumentDocToPdf**](ConvertDocumentApi.md#convertDocumentDocToPdf) | **POST** /convert/doc/to/pdf | Word DOC (97-03) to PDF
[**convertDocumentDocxToPdf**](ConvertDocumentApi.md#convertDocumentDocxToPdf) | **POST** /convert/docx/to/pdf | Word DOCX to PDF
[**convertDocumentHtmlToPdf**](ConvertDocumentApi.md#convertDocumentHtmlToPdf) | **POST** /convert/html/to/pdf | HTML to PDF
[**convertDocumentHtmlToPng**](ConvertDocumentApi.md#convertDocumentHtmlToPng) | **POST** /convert/html/to/png | HTML to PNG array
[**convertDocumentPdfToDocx**](ConvertDocumentApi.md#convertDocumentPdfToDocx) | **POST** /convert/pdf/to/docx | PDF to Word DOCX
[**convertDocumentPdfToPngArray**](ConvertDocumentApi.md#convertDocumentPdfToPngArray) | **POST** /convert/pdf/to/png | PDF to PNG Array
[**convertDocumentPdfToPptx**](ConvertDocumentApi.md#convertDocumentPdfToPptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX
Expand Down Expand Up @@ -82,7 +84,7 @@ Name | Type | Description | Notes
Convert Document to PDF

Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats, over 100 image formats, and even multi-page TIFF files.
Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files.

### Example
```javascript
Expand Down Expand Up @@ -389,6 +391,112 @@ Name | Type | Description | Notes

[Apikey](../README.md#Apikey)

### HTTP request headers

- **Content-Type**: multipart/form-data
- **Accept**: application/octet-stream

<a name="convertDocumentHtmlToPdf"></a>
# **convertDocumentHtmlToPdf**
> &#39;Blob&#39; convertDocumentHtmlToPdf(inputFile)
HTML to PDF

Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file.

### Example
```javascript
var CloudmersiveConvertApiClient = require('cloudmersive-convert-api-client');
var defaultClient = CloudmersiveConvertApiClient.ApiClient.instance;

// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.apiKeyPrefix = 'Token';

var apiInstance = new CloudmersiveConvertApiClient.ConvertDocumentApi();

var inputFile = "/path/to/file.txt"; // File | Input file to perform the operation on.


var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.convertDocumentHtmlToPdf(inputFile, callback);
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**inputFile** | **File**| Input file to perform the operation on. |

### Return type

**&#39;Blob&#39;**

### Authorization

[Apikey](../README.md#Apikey)

### HTTP request headers

- **Content-Type**: multipart/form-data
- **Accept**: application/octet-stream

<a name="convertDocumentHtmlToPng"></a>
# **convertDocumentHtmlToPng**
> PdfToPngResult convertDocumentHtmlToPng(inputFile)
HTML to PNG array

Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to an array of PNG images, one for each page. To use external files in your HTML such as images, use an absolute URL to the file.

### Example
```javascript
var CloudmersiveConvertApiClient = require('cloudmersive-convert-api-client');
var defaultClient = CloudmersiveConvertApiClient.ApiClient.instance;

// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.apiKeyPrefix = 'Token';

var apiInstance = new CloudmersiveConvertApiClient.ConvertDocumentApi();

var inputFile = "/path/to/file.txt"; // File | Input file to perform the operation on.


var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.convertDocumentHtmlToPng(inputFile, callback);
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**inputFile** | **File**| Input file to perform the operation on. |

### Return type

[**PdfToPngResult**](PdfToPngResult.md)

### Authorization

[Apikey](../README.md#Apikey)

### HTTP request headers

- **Content-Type**: multipart/form-data
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmersive-convert-api-client",
"version": "2.0.5",
"version": "2.0.6",
"description": "Convert_API_lets_you_effortlessly_convert_file_formats_and_types_",
"license": "Unlicense",
"main": "src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion client/src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

/**
* @module ApiClient
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/CompareDocumentApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* CompareDocument service.
* @module api/CompareDocumentApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/ConvertDataApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* ConvertData service.
* @module api/ConvertDataApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
100 changes: 98 additions & 2 deletions client/src/api/ConvertDocumentApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* ConvertDocument service.
* @module api/ConvertDocumentApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down Expand Up @@ -105,7 +105,7 @@

/**
* Convert Document to PDF
* Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats, over 100 image formats, and even multi-page TIFF files.
* Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files.
* @param {File} inputFile Input file to perform the operation on.
* @param {module:api/ConvertDocumentApi~convertDocumentAutodetectToPdfCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link 'Blob'}
Expand Down Expand Up @@ -383,6 +383,102 @@
);
}

/**
* Callback function to receive the result of the convertDocumentHtmlToPdf operation.
* @callback module:api/ConvertDocumentApi~convertDocumentHtmlToPdfCallback
* @param {String} error Error message, if any.
* @param {'Blob'} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/

/**
* HTML to PDF
* Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file.
* @param {File} inputFile Input file to perform the operation on.
* @param {module:api/ConvertDocumentApi~convertDocumentHtmlToPdfCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link 'Blob'}
*/
this.convertDocumentHtmlToPdf = function(inputFile, callback) {
var postBody = null;

// verify the required parameter 'inputFile' is set
if (inputFile === undefined || inputFile === null) {
throw new Error("Missing the required parameter 'inputFile' when calling convertDocumentHtmlToPdf");
}


var pathParams = {
};
var queryParams = {
};
var collectionQueryParams = {
};
var headerParams = {
};
var formParams = {
'inputFile': inputFile
};

var authNames = ['Apikey'];
var contentTypes = ['multipart/form-data'];
var accepts = ['application/octet-stream'];
var returnType = 'Blob';

return this.apiClient.callApi(
'/convert/html/to/pdf', 'POST',
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, callback
);
}

/**
* Callback function to receive the result of the convertDocumentHtmlToPng operation.
* @callback module:api/ConvertDocumentApi~convertDocumentHtmlToPngCallback
* @param {String} error Error message, if any.
* @param {module:model/PdfToPngResult} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/

/**
* HTML to PNG array
* Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to an array of PNG images, one for each page. To use external files in your HTML such as images, use an absolute URL to the file.
* @param {File} inputFile Input file to perform the operation on.
* @param {module:api/ConvertDocumentApi~convertDocumentHtmlToPngCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/PdfToPngResult}
*/
this.convertDocumentHtmlToPng = function(inputFile, callback) {
var postBody = null;

// verify the required parameter 'inputFile' is set
if (inputFile === undefined || inputFile === null) {
throw new Error("Missing the required parameter 'inputFile' when calling convertDocumentHtmlToPng");
}


var pathParams = {
};
var queryParams = {
};
var collectionQueryParams = {
};
var headerParams = {
};
var formParams = {
'inputFile': inputFile
};

var authNames = ['Apikey'];
var contentTypes = ['multipart/form-data'];
var accepts = ['application/octet-stream'];
var returnType = PdfToPngResult;

return this.apiClient.callApi(
'/convert/html/to/png', 'POST',
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, callback
);
}

/**
* Callback function to receive the result of the convertDocumentPdfToDocx operation.
* @callback module:api/ConvertDocumentApi~convertDocumentPdfToDocxCallback
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/ConvertImageApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* ConvertImage service.
* @module api/ConvertImageApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/ConvertTemplateApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* ConvertTemplate service.
* @module api/ConvertTemplateApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/ConvertWebApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* ConvertWeb service.
* @module api/ConvertWebApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/EditDocumentApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* EditDocument service.
* @module api/EditDocumentApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/MergeDocumentApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* MergeDocument service.
* @module api/MergeDocumentApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/ValidateDocumentApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* ValidateDocument service.
* @module api/ValidateDocumentApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/ViewerToolsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* ViewerTools service.
* @module api/ViewerToolsApi
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
* </pre>
* </p>
* @module index
* @version 2.0.5
* @version 2.0.6
*/
var exports = {
/**
Expand Down
Loading

0 comments on commit f6cc33d

Please sign in to comment.