aspose_pdf_cloud 24.4.0 → 24.6.0

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: dee09851c2f85db607abea25ef5a964d41b9183386b79e14663bbbf6035f58f2
4
- data.tar.gz: e08a5bc8c25ee5dbf7cce19b9d24cce437719ac4ae5d605bb94ab8fa7d52d275
3
+ metadata.gz: ce5561e1f047eeb6c20a0f78c48c96d1328396acdd1bed62587320e9be3c25d4
4
+ data.tar.gz: bd884154e996faf2a2a6630ecf5813684f7f26d26e39921b608e1f6eab7fbaaa
5
5
  SHA512:
6
- metadata.gz: 45f0ce9fa3b50f9108a35eeb76438674a4f0471aeee9896875acc3be439fd5eb7ddcb64c2d22e0b993d56f66f56d9ba8cd650fea7e723f05d3f13652a9e5c21c
7
- data.tar.gz: b2522d0dc3727aea6a3307962fe419e1c1ef03c747da5cb12c27813215b3af6ee068cc82f467e07aa75ab3256f74b050688027f392c075aae1b91d7d71e8e295
6
+ metadata.gz: eb49765f0dd907253e4ecf9930a929d570c3e5ae3f12bdc5975154e04de78e3f9d43e397c62a50bed91c820173814bdd637c087110098290d30cff2ce419cf98
7
+ data.tar.gz: 5293539e93c1fef544619d096088fee841b5311379ec6dfad543ca3fc6b8f04a2da9626501988b9e69561335df86061852933537b5ea74e6c70567088511d59c
data/README.md CHANGED
@@ -29,9 +29,7 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
29
29
  ## Read PDF Formats
30
30
  MHT, PCL, PS, XSLFO, MD
31
31
 
32
- ## Enhancements in Version 24.4
33
- - Convert PDF to optimized Text.
34
- - Convert PDF to EXCEL without Cloud Storage.
32
+ ## Enhancements in Version 24.6
35
33
  - A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
36
34
 
37
35
  ## Installation
@@ -47,15 +45,15 @@ gem build aspose_pdf_cloud.gemspec
47
45
  Then either install the gem locally:
48
46
 
49
47
  ```shell
50
- gem install ./aspose_pdf_cloud-24.4.0.gem
48
+ gem install ./aspose_pdf_cloud-24.6.0.gem
51
49
  ```
52
- (for development, run `gem install --dev ./aspose_pdf_cloud-24.4.0.gem` to install the development dependencies)
50
+ (for development, run `gem install --dev ./aspose_pdf_cloud-24.6.0.gem` to install the development dependencies)
53
51
 
54
52
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
55
53
 
56
54
  Finally add this to the Gemfile:
57
55
 
58
- gem 'aspose_pdf_cloud', '~> 24.4.0'
56
+ gem 'aspose_pdf_cloud', '~> 24.6.0'
59
57
 
60
58
  ### Install from Git
61
59
 
data/docs/PdfApi.md CHANGED
@@ -209,6 +209,7 @@ Method | HTTP request | Description
209
209
  [**post_document_text_replace**](PdfApi.md#post_document_text_replace) | **POST** /pdf/\{name}/text/replace | Document's replace text method.
210
210
  [**post_encrypt_document_in_storage**](PdfApi.md#post_encrypt_document_in_storage) | **POST** /pdf/\{name}/encrypt | Encrypt document in storage.
211
211
  [**post_flatten_document**](PdfApi.md#post_flatten_document) | **POST** /pdf/\{name}/flatten | Flatten the document.
212
+ [**post_html_to_pdf**](PdfApi.md#post_html_to_pdf) | **POST** /pdf/create/html | Convert HTML file (zip archive in request content) to PDF format and return resulting file in response.
212
213
  [**post_import_fields_from_fdf**](PdfApi.md#post_import_fields_from_fdf) | **POST** /pdf/\{name}/import/fdf | Update fields from FDF file in request.
213
214
  [**post_import_fields_from_xfdf**](PdfApi.md#post_import_fields_from_xfdf) | **POST** /pdf/\{name}/import/xfdf | Update fields from XFDF file in request.
214
215
  [**post_import_fields_from_xml**](PdfApi.md#post_import_fields_from_xml) | **POST** /pdf/\{name}/import/xml | Update fields from XML file in request.
@@ -5571,6 +5572,35 @@ Name | Type | Description | Notes
5571
5572
 
5572
5573
 
5573
5574
 
5575
+ # **post_html_to_pdf**
5576
+ > File post_html_to_pdf(opts)
5577
+
5578
+ Convert HTML file (zip archive in request content) to PDF format and return resulting file in response.
5579
+
5580
+ ### Parameters
5581
+
5582
+ Name | Type | Description | Notes
5583
+ ------------- | ------------- | ------------- | -------------
5584
+ **html_file_name** | **String**| Name of HTML file in ZIP. | [optional]
5585
+ **height** | **Float**| Page height | [optional]
5586
+ **width** | **Float**| Page width | [optional]
5587
+ **is_landscape** | **BOOLEAN**| Is page landscaped | [optional]
5588
+ **margin_left** | **Float**| Page margin left | [optional]
5589
+ **margin_bottom** | **Float**| Page margin bottom | [optional]
5590
+ **margin_right** | **Float**| Page margin right | [optional]
5591
+ **margin_top** | **Float**| Page margin top | [optional]
5592
+
5593
+ ### Return type
5594
+
5595
+ **File**
5596
+
5597
+ ### HTTP request headers
5598
+
5599
+ - **Content-Type**: multipart/form-data
5600
+ - **Accept**: multipart/form-data
5601
+
5602
+
5603
+
5574
5604
  # **post_import_fields_from_fdf**
5575
5605
  > AsposeResponse post_import_fields_from_fdf(name, opts)
5576
5606
 
@@ -16121,6 +16121,90 @@ module AsposePdfCloud
16121
16121
  return data, status_code, headers
16122
16122
  end
16123
16123
 
16124
+ # Convert HTML file (zip archive in request content) to PDF format and return resulting file in response.
16125
+ #
16126
+ # @param [Hash] opts the optional parameters
16127
+ # @option opts [String] :html_file_name Name of HTML file in ZIP.
16128
+ # @option opts [Float] :height Page height
16129
+ # @option opts [Float] :width Page width
16130
+ # @option opts [BOOLEAN] :is_landscape Is page landscaped
16131
+ # @option opts [Float] :margin_left Page margin left
16132
+ # @option opts [Float] :margin_bottom Page margin bottom
16133
+ # @option opts [Float] :margin_right Page margin right
16134
+ # @option opts [Float] :margin_top Page margin top
16135
+ # @return [File]
16136
+ def post_html_to_pdf(opts = {})
16137
+ @api_client.request_token_if_needed
16138
+ data, _status_code, _headers = post_html_to_pdf_with_http_info(opts)
16139
+ rescue ApiError => error
16140
+ if error.code == 401
16141
+ @api_client.request_token_if_needed
16142
+ data, _status_code, _headers = post_html_to_pdf_with_http_info(opts)
16143
+ else
16144
+ raise
16145
+ end
16146
+ return data
16147
+ end
16148
+
16149
+ # Convert HTML file (zip archive in request content) to PDF format and return resulting file in response.
16150
+ #
16151
+ # @param [Hash] opts the optional parameters
16152
+ # @option opts [String] :html_file_name Name of HTML file in ZIP.
16153
+ # @option opts [Float] :height Page height
16154
+ # @option opts [Float] :width Page width
16155
+ # @option opts [BOOLEAN] :is_landscape Is page landscaped
16156
+ # @option opts [Float] :margin_left Page margin left
16157
+ # @option opts [Float] :margin_bottom Page margin bottom
16158
+ # @option opts [Float] :margin_right Page margin right
16159
+ # @option opts [Float] :margin_top Page margin top
16160
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
16161
+ def post_html_to_pdf_with_http_info(opts = {})
16162
+ if @api_client.config.debugging
16163
+ @api_client.config.logger.debug "Calling API: PdfApi.post_html_to_pdf ..."
16164
+ end
16165
+ # resource path
16166
+ local_var_path = "/pdf/create/html"
16167
+
16168
+ # query parameters
16169
+ query_params = {}
16170
+ query_params[:'htmlFileName'] = opts[:'html_file_name'] if !opts[:'html_file_name'].nil?
16171
+ query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
16172
+ query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
16173
+ query_params[:'isLandscape'] = opts[:'is_landscape'] if !opts[:'is_landscape'].nil?
16174
+ query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
16175
+ query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
16176
+ query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
16177
+ query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
16178
+
16179
+ # header parameters
16180
+ header_params = {}
16181
+ # HTTP header 'Accept' (if needed)
16182
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
16183
+ # HTTP header 'Content-Type'
16184
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
16185
+
16186
+ # form parameters
16187
+ form_params = {}
16188
+ # Fix header in file
16189
+ post_body = nil
16190
+
16191
+ # http body (model)
16192
+ # Fix header in file
16193
+ # post_body = nil
16194
+ auth_names = ['JWT']
16195
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
16196
+ :header_params => header_params,
16197
+ :query_params => query_params,
16198
+ :form_params => form_params,
16199
+ :body => post_body,
16200
+ :auth_names => auth_names,
16201
+ :return_type => 'File')
16202
+ if @api_client.config.debugging
16203
+ @api_client.config.logger.debug "API called: PdfApi#post_html_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16204
+ end
16205
+ return data, status_code, headers
16206
+ end
16207
+
16124
16208
  # Update fields from FDF file in request.
16125
16209
  #
16126
16210
  # @param name The document name.
@@ -20,5 +20,5 @@ SOFTWARE.
20
20
  =end
21
21
 
22
22
  module AsposePdfCloud
23
- VERSION = "24.4.0"
23
+ VERSION = "24.6.0"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_pdf_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.4.0
4
+ version: 24.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose PDF Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-19 00:00:00.000000000 Z
11
+ date: 2024-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json