cloudmersive-convert-api-client 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27d46a6abe0ad94225498397053d7829689aecfc130a553f4b00ed2d42f555cf
4
- data.tar.gz: 387bde3c1416a29ba3303f6023fe77a496870a8721afaeff6e31b9fd68b31814
3
+ metadata.gz: 8af4db4d5d0384f9d40d9b2b77c0d3a6cf656e702ae860030316dba745c6134c
4
+ data.tar.gz: b2cb08fa6a248f7cb91a585c18fb5da694690078930b0ed878329ea2e61bd2ea
5
5
  SHA512:
6
- metadata.gz: 890e6550dc45dea261052060700531e5b082e012b122f93013aaccf3088bcb2128719cfeece5107be7bc3a73cb633b672c8239ef672a1b2d44a1fdbba221f38b
7
- data.tar.gz: df57d4dfa512e10444f1ee4f96e627135631c4c86de0f4b66d1851af27ea5c691504d3f601edb9bddfd8b56fc5eaef0c1f8fa4e9f16694daf3d8b8cc2666c740
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.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.4.gem
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.4.gem` to install the development dependencies)
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.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
@@ -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.
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module CloudmersiveConvertApiClient
14
- VERSION = "1.4.4"
14
+ VERSION = "1.4.5"
15
15
  end
@@ -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 \&quot;tall\&quot; 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
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-26 00:00:00.000000000 Z
11
+ date: 2019-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus