Skip to content

Commit

Permalink
1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Mar 30, 2020
1 parent ff3e80a commit 12d83ab
Show file tree
Hide file tree
Showing 12 changed files with 524 additions and 30 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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: 1.8.4
- Package version: 1.8.5


## Requirements
Expand Down Expand Up @@ -230,7 +230,8 @@ Class | Method | HTTP request | Description
*MergeDocumentApi* | [**mergeDocumentDocxMulti**](docs/Api/MergeDocumentApi.md#mergedocumentdocxmulti) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together
*MergeDocumentApi* | [**mergeDocumentPdf**](docs/Api/MergeDocumentApi.md#mergedocumentpdf) | **POST** /convert/merge/pdf | Merge Two PDF Files Together
*MergeDocumentApi* | [**mergeDocumentPdfMulti**](docs/Api/MergeDocumentApi.md#mergedocumentpdfmulti) | **POST** /convert/merge/pdf/multi | Merge Multple PDF Files Together
*MergeDocumentApi* | [**mergeDocumentPng**](docs/Api/MergeDocumentApi.md#mergedocumentpng) | **POST** /convert/merge/png/vertical | Merge Multple PNG Files Together
*MergeDocumentApi* | [**mergeDocumentPng**](docs/Api/MergeDocumentApi.md#mergedocumentpng) | **POST** /convert/merge/png/vertical | Merge Two PNG Files Together
*MergeDocumentApi* | [**mergeDocumentPngMulti**](docs/Api/MergeDocumentApi.md#mergedocumentpngmulti) | **POST** /convert/merge/png/vertical/multi | Merge Multple PNG Files Together
*MergeDocumentApi* | [**mergeDocumentPptx**](docs/Api/MergeDocumentApi.md#mergedocumentpptx) | **POST** /convert/merge/pptx | Merge Two PowerPoint PPTX Together
*MergeDocumentApi* | [**mergeDocumentPptxMulti**](docs/Api/MergeDocumentApi.md#mergedocumentpptxmulti) | **POST** /convert/merge/pptx/multi | Merge Multple PowerPoint PPTX Together
*MergeDocumentApi* | [**mergeDocumentTxt**](docs/Api/MergeDocumentApi.md#mergedocumenttxt) | **POST** /convert/merge/txt | Merge Two Text (TXT) Files Together
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmersive/cloudmersive_document_convert_api_client",
"version": "1.8.4",
"version": "1.8.5",
"description": "",
"keywords": [
"swagger",
Expand Down
6 changes: 4 additions & 2 deletions docs/Api/EditPdfApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **editPdfGetPdfTextByPages**
> \Swagger\Client\Model\PdfTextByPageResult editPdfGetPdfTextByPages($input_file)
> \Swagger\Client\Model\PdfTextByPageResult editPdfGetPdfTextByPages($input_file, $text_formatting_mode)
Get text in a PDF document by page

Expand All @@ -445,9 +445,10 @@ $apiInstance = new Swagger\Client\Api\EditPdfApi(
$config
);
$input_file = "/path/to/file.txt"; // \SplFileObject | Input file to perform the operation on.
$text_formatting_mode = "text_formatting_mode_example"; // string | Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'.

try {
$result = $apiInstance->editPdfGetPdfTextByPages($input_file);
$result = $apiInstance->editPdfGetPdfTextByPages($input_file, $text_formatting_mode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EditPdfApi->editPdfGetPdfTextByPages: ', $e->getMessage(), PHP_EOL;
Expand All @@ -460,6 +461,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**input_file** | **\SplFileObject**| Input file to perform the operation on. |
**text_formatting_mode** | **string**| Optional; specify how whitespace should be handled when converting the document to text. Possible values are 'preserveWhitespace' which will attempt to preserve whitespace in the document and relative positioning of text within the document, and 'minimizeWhitespace' which will not insert additional spaces into the document in most cases. Default is 'preserveWhitespace'. | [optional]

### Return type

Expand Down
80 changes: 77 additions & 3 deletions docs/Api/MergeDocumentApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Method | HTTP request | Description
[**mergeDocumentDocxMulti**](MergeDocumentApi.md#mergeDocumentDocxMulti) | **POST** /convert/merge/docx/multi | Merge Multple Word DOCX Together
[**mergeDocumentPdf**](MergeDocumentApi.md#mergeDocumentPdf) | **POST** /convert/merge/pdf | Merge Two PDF Files Together
[**mergeDocumentPdfMulti**](MergeDocumentApi.md#mergeDocumentPdfMulti) | **POST** /convert/merge/pdf/multi | Merge Multple PDF Files Together
[**mergeDocumentPng**](MergeDocumentApi.md#mergeDocumentPng) | **POST** /convert/merge/png/vertical | Merge Multple PNG Files Together
[**mergeDocumentPng**](MergeDocumentApi.md#mergeDocumentPng) | **POST** /convert/merge/png/vertical | Merge Two PNG Files Together
[**mergeDocumentPngMulti**](MergeDocumentApi.md#mergeDocumentPngMulti) | **POST** /convert/merge/png/vertical/multi | Merge Multple PNG Files Together
[**mergeDocumentPptx**](MergeDocumentApi.md#mergeDocumentPptx) | **POST** /convert/merge/pptx | Merge Two PowerPoint PPTX Together
[**mergeDocumentPptxMulti**](MergeDocumentApi.md#mergeDocumentPptxMulti) | **POST** /convert/merge/pptx/multi | Merge Multple PowerPoint PPTX Together
[**mergeDocumentTxt**](MergeDocumentApi.md#mergeDocumentTxt) | **POST** /convert/merge/txt | Merge Two Text (TXT) Files Together
Expand Down Expand Up @@ -280,9 +281,9 @@ Name | Type | Description | Notes
# **mergeDocumentPng**
> string mergeDocumentPng($input_file1, $input_file2)
Merge Multple PNG Files Together
Merge Two PNG Files Together

Combine multiple PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically
Combine two PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically

### Example
```php
Expand Down Expand Up @@ -334,6 +335,79 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **mergeDocumentPngMulti**
> string mergeDocumentPngMulti($input_file1, $input_file2, $input_file3, $input_file4, $input_file5, $input_file6, $input_file7, $input_file8, $input_file9, $input_file10)
Merge Multple PNG Files Together

Combine multiple PNG files into a single PNG document, preserving the order of the input documents in the combined document by stacking them vertically

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');

$apiInstance = new Swagger\Client\Api\MergeDocumentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$input_file1 = "/path/to/file.txt"; // \SplFileObject | First input file to perform the operation on.
$input_file2 = "/path/to/file.txt"; // \SplFileObject | Second input file to perform the operation on.
$input_file3 = "/path/to/file.txt"; // \SplFileObject | Third input file to perform the operation on.
$input_file4 = "/path/to/file.txt"; // \SplFileObject | Fourth input file to perform the operation on.
$input_file5 = "/path/to/file.txt"; // \SplFileObject | Fifth input file to perform the operation on.
$input_file6 = "/path/to/file.txt"; // \SplFileObject | Sixth input file to perform the operation on.
$input_file7 = "/path/to/file.txt"; // \SplFileObject | Seventh input file to perform the operation on.
$input_file8 = "/path/to/file.txt"; // \SplFileObject | Eighth input file to perform the operation on.
$input_file9 = "/path/to/file.txt"; // \SplFileObject | Ninth input file to perform the operation on.
$input_file10 = "/path/to/file.txt"; // \SplFileObject | Tenth input file to perform the operation on.

try {
$result = $apiInstance->mergeDocumentPngMulti($input_file1, $input_file2, $input_file3, $input_file4, $input_file5, $input_file6, $input_file7, $input_file8, $input_file9, $input_file10);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MergeDocumentApi->mergeDocumentPngMulti: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**input_file1** | **\SplFileObject**| First input file to perform the operation on. |
**input_file2** | **\SplFileObject**| Second input file to perform the operation on. |
**input_file3** | **\SplFileObject**| Third input file to perform the operation on. | [optional]
**input_file4** | **\SplFileObject**| Fourth input file to perform the operation on. | [optional]
**input_file5** | **\SplFileObject**| Fifth input file to perform the operation on. | [optional]
**input_file6** | **\SplFileObject**| Sixth input file to perform the operation on. | [optional]
**input_file7** | **\SplFileObject**| Seventh input file to perform the operation on. | [optional]
**input_file8** | **\SplFileObject**| Eighth input file to perform the operation on. | [optional]
**input_file9** | **\SplFileObject**| Ninth input file to perform the operation on. | [optional]
**input_file10** | **\SplFileObject**| Tenth input file to perform the operation on. | [optional]

### Return type

**string**

### Authorization

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

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **mergeDocumentPptx**
> string mergeDocumentPptx($input_file1, $input_file2)
Expand Down
1 change: 1 addition & 0 deletions docs/Model/GetDocxPagesRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**input_file_bytes** | **string** | Optional: Bytes of the input file to operate on | [optional]
**input_file_url** | **string** | Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public). | [optional]
**maximum_pages** | **int** | Optional: Maximum number of pages to return; set to 0 or do not supply to return all pages | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
27 changes: 18 additions & 9 deletions lib/Api/EditPdfApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -2006,14 +2006,15 @@ protected function editPdfGetMetadataRequest($input_file)
* Get text in a PDF document by page
*
* @param \SplFileObject $input_file Input file to perform the operation on. (required)
* @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;. (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\PdfTextByPageResult
*/
public function editPdfGetPdfTextByPages($input_file)
public function editPdfGetPdfTextByPages($input_file, $text_formatting_mode = null)
{
list($response) = $this->editPdfGetPdfTextByPagesWithHttpInfo($input_file);
list($response) = $this->editPdfGetPdfTextByPagesWithHttpInfo($input_file, $text_formatting_mode);
return $response;
}

Expand All @@ -2023,15 +2024,16 @@ public function editPdfGetPdfTextByPages($input_file)
* Get text in a PDF document by page
*
* @param \SplFileObject $input_file Input file to perform the operation on. (required)
* @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;. (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\PdfTextByPageResult, HTTP status code, HTTP response headers (array of strings)
*/
public function editPdfGetPdfTextByPagesWithHttpInfo($input_file)
public function editPdfGetPdfTextByPagesWithHttpInfo($input_file, $text_formatting_mode = null)
{
$returnType = '\Swagger\Client\Model\PdfTextByPageResult';
$request = $this->editPdfGetPdfTextByPagesRequest($input_file);
$request = $this->editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -2098,13 +2100,14 @@ public function editPdfGetPdfTextByPagesWithHttpInfo($input_file)
* Get text in a PDF document by page
*
* @param \SplFileObject $input_file Input file to perform the operation on. (required)
* @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;. (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function editPdfGetPdfTextByPagesAsync($input_file)
public function editPdfGetPdfTextByPagesAsync($input_file, $text_formatting_mode = null)
{
return $this->editPdfGetPdfTextByPagesAsyncWithHttpInfo($input_file)
return $this->editPdfGetPdfTextByPagesAsyncWithHttpInfo($input_file, $text_formatting_mode)
->then(
function ($response) {
return $response[0];
Expand All @@ -2118,14 +2121,15 @@ function ($response) {
* Get text in a PDF document by page
*
* @param \SplFileObject $input_file Input file to perform the operation on. (required)
* @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;. (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function editPdfGetPdfTextByPagesAsyncWithHttpInfo($input_file)
public function editPdfGetPdfTextByPagesAsyncWithHttpInfo($input_file, $text_formatting_mode = null)
{
$returnType = '\Swagger\Client\Model\PdfTextByPageResult';
$request = $this->editPdfGetPdfTextByPagesRequest($input_file);
$request = $this->editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand Down Expand Up @@ -2168,11 +2172,12 @@ function ($exception) {
* Create request for operation 'editPdfGetPdfTextByPages'
*
* @param \SplFileObject $input_file Input file to perform the operation on. (required)
* @param string $text_formatting_mode Optional; specify how whitespace should be handled when converting the document to text. Possible values are &#39;preserveWhitespace&#39; which will attempt to preserve whitespace in the document and relative positioning of text within the document, and &#39;minimizeWhitespace&#39; which will not insert additional spaces into the document in most cases. Default is &#39;preserveWhitespace&#39;. (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
protected function editPdfGetPdfTextByPagesRequest($input_file)
protected function editPdfGetPdfTextByPagesRequest($input_file, $text_formatting_mode = null)
{
// verify the required parameter 'input_file' is set
if ($input_file === null) {
Expand All @@ -2188,6 +2193,10 @@ protected function editPdfGetPdfTextByPagesRequest($input_file)
$httpBody = '';
$multipart = false;

// header params
if ($text_formatting_mode !== null) {
$headerParams['textFormattingMode'] = ObjectSerializer::toHeaderValue($text_formatting_mode);
}


// form params
Expand Down
Loading

0 comments on commit 12d83ab

Please sign in to comment.