Skip to content

Commit 391877c

Browse files
SDK regenerated by CI server [ci skip]
1 parent 7312479 commit 391877c

File tree

5 files changed

+33
-4
lines changed

5 files changed

+33
-4
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ This repository contains Aspose.Words Cloud SDK for Ruby source code. This SDK a
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 22.8
17+
18+
- Added optional loadEncoding and password parameters for ConvertDocument API method.
19+
20+
1621
## Enhancements in Version 22.7
1722

1823
- Expand 'AppendDocument' API method to support 'ImageEntryList' for directly appending images to documents and another images.
@@ -219,7 +224,7 @@ To use Aspose Words for Cloud Ruby SDK you need to register an account with [Asp
219224
To install this package do the following:
220225
update your Gemfile
221226
```ruby
222-
gem 'aspose_words_cloud', '~> 22.8'
227+
gem 'aspose_words_cloud', '~> 22.9'
223228
```
224229
or install directly
225230
```bash

lib/aspose_words_cloud/api/words_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,9 @@ def convert_document(request)
12191219
query_params[downcase_first_letter('OutPath')] = request.out_path unless request.out_path.nil?
12201220
query_params[downcase_first_letter('FileNameFieldValue')] = request.file_name_field_value unless request.file_name_field_value.nil?
12211221
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
1222+
query_params[downcase_first_letter('LoadEncoding')] = request.load_encoding unless request.load_encoding.nil?
1223+
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
1224+
query_params[downcase_first_letter('EncryptedPassword')] = request.encrypted_password unless request.encrypted_password.nil?
12221225
query_params[downcase_first_letter('FontsLocation')] = request.fonts_location unless request.fonts_location.nil?
12231226

12241227
# header parameters

lib/aspose_words_cloud/models/requests/convert_document_request.rb

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ class ConvertDocumentRequest
4444
# Original document storage.
4545
attr_accessor :storage
4646

47+
# Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
48+
attr_accessor :load_encoding
49+
50+
# Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
51+
attr_accessor :password
52+
53+
# Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
54+
attr_accessor :encrypted_password
55+
4756
# Folder in filestorage with custom fonts.
4857
attr_accessor :fonts_location
4958

@@ -54,14 +63,20 @@ class ConvertDocumentRequest
5463
# @param out_path The path to the output document on a local storage.
5564
# @param file_name_field_value The filename of the output document, that will be used when the resulting document has a dynamic field {filename}. If it is not set, the "sourceFilename" will be used instead.
5665
# @param storage Original document storage.
66+
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
67+
# @param password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
68+
# @param encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
5769
# @param fonts_location Folder in filestorage with custom fonts.
5870

59-
def initialize(document:, format:, out_path: nil, file_name_field_value: nil, storage: nil, fonts_location: nil)
71+
def initialize(document:, format:, out_path: nil, file_name_field_value: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil, fonts_location: nil)
6072
self.document = document
6173
self.format = format
6274
self.out_path = out_path
6375
self.file_name_field_value = file_name_field_value
6476
self.storage = storage
77+
self.load_encoding = load_encoding
78+
self.password = password
79+
self.encrypted_password = encrypted_password
6580
self.fonts_location = fonts_location
6681
end
6782

@@ -82,6 +97,9 @@ def to_batch_part(api_client, requestId, parentRequestId = nil)
8297
query_params[downcase_first_letter('OutPath')] = self.out_path unless self.out_path.nil?
8398
query_params[downcase_first_letter('FileNameFieldValue')] = self.file_name_field_value unless self.file_name_field_value.nil?
8499
query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
100+
query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
101+
query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
102+
query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
85103
query_params[downcase_first_letter('FontsLocation')] = self.fonts_location unless self.fonts_location.nil?
86104

87105
if query_params
@@ -141,6 +159,9 @@ def create_http_request(api_client)
141159
query_params[downcase_first_letter('OutPath')] = self.out_path unless self.out_path.nil?
142160
query_params[downcase_first_letter('FileNameFieldValue')] = self.file_name_field_value unless self.file_name_field_value.nil?
143161
query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
162+
query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
163+
query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
164+
query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
144165
query_params[downcase_first_letter('FontsLocation')] = self.fonts_location unless self.fonts_location.nil?
145166

146167
# header parameters

lib/aspose_words_cloud/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
# ------------------------------------------------------------------------------------
2525

2626
module AsposeWordsCloud
27-
VERSION = "22.8.0".freeze
27+
VERSION = "22.9".freeze
2828
end

tests/base_test_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module AsposeWordsCloud
2727
require "minitest/autorun"
2828
require "minitest/unit"
2929
require 'securerandom'
30-
require 'aspose_words_cloud'
30+
require_relative '../lib/aspose_words_cloud'
3131
class BaseTestContext < Minitest::Test
3232
include MiniTest::Assertions
3333
def setup

0 commit comments

Comments
 (0)