cloudmersive-convert-api-client 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8af4db4d5d0384f9d40d9b2b77c0d3a6cf656e702ae860030316dba745c6134c
|
4
|
+
data.tar.gz: b2cb08fa6a248f7cb91a585c18fb5da694690078930b0ed878329ea2e61bd2ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60b3555ef1224a9b55bcec2105427035ca866031305c9ff2c9aec471027beb7e831e09588218598019fbe1f0120b5ebb14c98eb583ef56186be5202de2999682
|
7
|
+
data.tar.gz: b4e57feca16a15b6404160884d0e40dfbeacbd954e90e391eeba7f47d5958e363aa2bd58acd9f4f8ce104fad4e437c53731f4a01386337a23b3784306e3d171f
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 1.4.
|
10
|
+
- Package version: 1.4.5
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-convert-api-client-1.4.
|
26
|
+
gem install ./cloudmersive-convert-api-client-1.4.5.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-convert-api-client-1.4.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-convert-api-client-1.4.5.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-convert-api-client', '~> 1.4.
|
34
|
+
gem 'cloudmersive-convert-api-client', '~> 1.4.5'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -103,6 +103,7 @@ Class | Method | HTTP request | Description
|
|
103
103
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_html_to_png**](docs/ConvertDocumentApi.md#convert_document_html_to_png) | **POST** /convert/html/to/png | HTML to PNG array
|
104
104
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pdf_to_docx**](docs/ConvertDocumentApi.md#convert_document_pdf_to_docx) | **POST** /convert/pdf/to/docx | PDF to Word DOCX
|
105
105
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pdf_to_png_array**](docs/ConvertDocumentApi.md#convert_document_pdf_to_png_array) | **POST** /convert/pdf/to/png | PDF to PNG Array
|
106
|
+
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pdf_to_png_single**](docs/ConvertDocumentApi.md#convert_document_pdf_to_png_single) | **POST** /convert/pdf/to/png/merge-single | PDF to Single PNG image
|
106
107
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pdf_to_pptx**](docs/ConvertDocumentApi.md#convert_document_pdf_to_pptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX
|
107
108
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_pdf_to_txt**](docs/ConvertDocumentApi.md#convert_document_pdf_to_txt) | **POST** /convert/pdf/to/txt | PDF to Text
|
108
109
|
*CloudmersiveConvertApiClient::ConvertDocumentApi* | [**convert_document_ppt_to_pdf**](docs/ConvertDocumentApi.md#convert_document_ppt_to_pdf) | **POST** /convert/ppt/to/pdf | PowerPoint PPT (97-03) to PDF
|
data/docs/ConvertDocumentApi.md
CHANGED
@@ -17,6 +17,7 @@ Method | HTTP request | Description
|
|
17
17
|
[**convert_document_html_to_png**](ConvertDocumentApi.md#convert_document_html_to_png) | **POST** /convert/html/to/png | HTML to PNG array
|
18
18
|
[**convert_document_pdf_to_docx**](ConvertDocumentApi.md#convert_document_pdf_to_docx) | **POST** /convert/pdf/to/docx | PDF to Word DOCX
|
19
19
|
[**convert_document_pdf_to_png_array**](ConvertDocumentApi.md#convert_document_pdf_to_png_array) | **POST** /convert/pdf/to/png | PDF to PNG Array
|
20
|
+
[**convert_document_pdf_to_png_single**](ConvertDocumentApi.md#convert_document_pdf_to_png_single) | **POST** /convert/pdf/to/png/merge-single | PDF to Single PNG image
|
20
21
|
[**convert_document_pdf_to_pptx**](ConvertDocumentApi.md#convert_document_pdf_to_pptx) | **POST** /convert/pdf/to/pptx | PDF to PowerPoint PPTX
|
21
22
|
[**convert_document_pdf_to_txt**](ConvertDocumentApi.md#convert_document_pdf_to_txt) | **POST** /convert/pdf/to/txt | PDF to Text
|
22
23
|
[**convert_document_ppt_to_pdf**](ConvertDocumentApi.md#convert_document_ppt_to_pdf) | **POST** /convert/ppt/to/pdf | PowerPoint PPT (97-03) to PDF
|
@@ -733,6 +734,60 @@ Name | Type | Description | Notes
|
|
733
734
|
|
734
735
|
|
735
736
|
|
737
|
+
# **convert_document_pdf_to_png_single**
|
738
|
+
> String convert_document_pdf_to_png_single(input_file)
|
739
|
+
|
740
|
+
PDF to Single PNG image
|
741
|
+
|
742
|
+
Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
|
743
|
+
|
744
|
+
### Example
|
745
|
+
```ruby
|
746
|
+
# load the gem
|
747
|
+
require 'cloudmersive-convert-api-client'
|
748
|
+
# setup authorization
|
749
|
+
CloudmersiveConvertApiClient.configure do |config|
|
750
|
+
# Configure API key authorization: Apikey
|
751
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
752
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
753
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
754
|
+
end
|
755
|
+
|
756
|
+
api_instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new
|
757
|
+
|
758
|
+
input_file = File.new("/path/to/file.txt") # File | Input file to perform the operation on.
|
759
|
+
|
760
|
+
|
761
|
+
begin
|
762
|
+
#PDF to Single PNG image
|
763
|
+
result = api_instance.convert_document_pdf_to_png_single(input_file)
|
764
|
+
p result
|
765
|
+
rescue CloudmersiveConvertApiClient::ApiError => e
|
766
|
+
puts "Exception when calling ConvertDocumentApi->convert_document_pdf_to_png_single: #{e}"
|
767
|
+
end
|
768
|
+
```
|
769
|
+
|
770
|
+
### Parameters
|
771
|
+
|
772
|
+
Name | Type | Description | Notes
|
773
|
+
------------- | ------------- | ------------- | -------------
|
774
|
+
**input_file** | **File**| Input file to perform the operation on. |
|
775
|
+
|
776
|
+
### Return type
|
777
|
+
|
778
|
+
**String**
|
779
|
+
|
780
|
+
### Authorization
|
781
|
+
|
782
|
+
[Apikey](../README.md#Apikey)
|
783
|
+
|
784
|
+
### HTTP request headers
|
785
|
+
|
786
|
+
- **Content-Type**: multipart/form-data
|
787
|
+
- **Accept**: application/octet-stream
|
788
|
+
|
789
|
+
|
790
|
+
|
736
791
|
# **convert_document_pdf_to_pptx**
|
737
792
|
> String convert_document_pdf_to_pptx(input_file)
|
738
793
|
|
@@ -748,6 +748,62 @@ module CloudmersiveConvertApiClient
|
|
748
748
|
return data, status_code, headers
|
749
749
|
end
|
750
750
|
|
751
|
+
# PDF to Single PNG image
|
752
|
+
# Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
|
753
|
+
# @param input_file Input file to perform the operation on.
|
754
|
+
# @param [Hash] opts the optional parameters
|
755
|
+
# @return [String]
|
756
|
+
def convert_document_pdf_to_png_single(input_file, opts = {})
|
757
|
+
data, _status_code, _headers = convert_document_pdf_to_png_single_with_http_info(input_file, opts)
|
758
|
+
return data
|
759
|
+
end
|
760
|
+
|
761
|
+
# PDF to Single PNG image
|
762
|
+
# Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
|
763
|
+
# @param input_file Input file to perform the operation on.
|
764
|
+
# @param [Hash] opts the optional parameters
|
765
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
766
|
+
def convert_document_pdf_to_png_single_with_http_info(input_file, opts = {})
|
767
|
+
if @api_client.config.debugging
|
768
|
+
@api_client.config.logger.debug "Calling API: ConvertDocumentApi.convert_document_pdf_to_png_single ..."
|
769
|
+
end
|
770
|
+
# verify the required parameter 'input_file' is set
|
771
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
772
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_png_single"
|
773
|
+
end
|
774
|
+
# resource path
|
775
|
+
local_var_path = "/convert/pdf/to/png/merge-single"
|
776
|
+
|
777
|
+
# query parameters
|
778
|
+
query_params = {}
|
779
|
+
|
780
|
+
# header parameters
|
781
|
+
header_params = {}
|
782
|
+
# HTTP header 'Accept' (if needed)
|
783
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
784
|
+
# HTTP header 'Content-Type'
|
785
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
786
|
+
|
787
|
+
# form parameters
|
788
|
+
form_params = {}
|
789
|
+
form_params["inputFile"] = input_file
|
790
|
+
|
791
|
+
# http body (model)
|
792
|
+
post_body = nil
|
793
|
+
auth_names = ['Apikey']
|
794
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
795
|
+
:header_params => header_params,
|
796
|
+
:query_params => query_params,
|
797
|
+
:form_params => form_params,
|
798
|
+
:body => post_body,
|
799
|
+
:auth_names => auth_names,
|
800
|
+
:return_type => 'String')
|
801
|
+
if @api_client.config.debugging
|
802
|
+
@api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_png_single\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
803
|
+
end
|
804
|
+
return data, status_code, headers
|
805
|
+
end
|
806
|
+
|
751
807
|
# PDF to PowerPoint PPTX
|
752
808
|
# Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed.
|
753
809
|
# @param input_file Input file to perform the operation on.
|
@@ -188,6 +188,18 @@ describe 'ConvertDocumentApi' do
|
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
191
|
+
# unit tests for convert_document_pdf_to_png_single
|
192
|
+
# PDF to Single PNG image
|
193
|
+
# Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
|
194
|
+
# @param input_file Input file to perform the operation on.
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @return [String]
|
197
|
+
describe 'convert_document_pdf_to_png_single test' do
|
198
|
+
it "should work" do
|
199
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
191
203
|
# unit tests for convert_document_pdf_to_pptx
|
192
204
|
# PDF to PowerPoint PPTX
|
193
205
|
# Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-convert-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|