Skip to content

Commit f59ad92

Browse files
SDK regenerated by CI server [ci skip]
1 parent 3b86878 commit f59ad92

File tree

6 files changed

+29
-12
lines changed

6 files changed

+29
-12
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.11
17+
18+
- Added 'EmbedAttachments' property for PdfSaveOptionsData class.
19+
20+
1621
## Enhancements in Version 22.10
1722

1823
- Added 'CacheHeaderFooterShapes' property for PdfSaveOptionsData class.
@@ -239,7 +244,7 @@ To use Aspose Words for Cloud Ruby SDK you need to register an account with [Asp
239244
To install this package do the following:
240245
update your Gemfile
241246
```ruby
242-
gem 'aspose_words_cloud', '~> 22.10'
247+
gem 'aspose_words_cloud', '~> 22.11'
243248
```
244249
or install directly
245250
```bash

lib/aspose_words_cloud/models/csv_data_load_options.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
module AsposeWordsCloud
2929

3030
# Represents options for parsing CSV data.
31+
# To learn more, visit the LINQ Reporting Engine documentation article.
3132
class CsvDataLoadOptions
3233
# Gets or sets the character that is used to comment lines of CSV data.
3334
attr_accessor :comment_char

lib/aspose_words_cloud/models/pdf_save_options_data.rb

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ class PdfSaveOptionsData
9595
# Gets or sets the 0-based index of the first page to render.
9696
attr_accessor :page_index
9797

98-
# Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document.
99-
attr_accessor :cache_header_footer_shapes
98+
# Gets or sets a value determining whether or not to cache graphics placed in document's background.
99+
attr_accessor :cache_background_graphics
100100

101101
# Gets or sets the PDF standards compliance level for output documents.
102102
attr_accessor :compliance
@@ -119,6 +119,9 @@ class PdfSaveOptionsData
119119
# Gets or sets the downsample options.
120120
attr_accessor :downsample_options
121121

122+
# Gets or sets a value determining whether or not to embed attachments to the PDF document.
123+
attr_accessor :embed_attachments
124+
122125
# Gets or sets a value indicating whether fonts are embedded into the resulting PDF documents.
123126
attr_accessor :embed_full_fonts
124127

@@ -225,13 +228,14 @@ def self.attribute_map
225228
:'optimize_output' => :'OptimizeOutput',
226229
:'page_count' => :'PageCount',
227230
:'page_index' => :'PageIndex',
228-
:'cache_header_footer_shapes' => :'CacheHeaderFooterShapes',
231+
:'cache_background_graphics' => :'CacheBackgroundGraphics',
229232
:'compliance' => :'Compliance',
230233
:'create_note_hyperlinks' => :'CreateNoteHyperlinks',
231234
:'custom_properties_export' => :'CustomPropertiesExport',
232235
:'digital_signature_details' => :'DigitalSignatureDetails',
233236
:'display_doc_title' => :'DisplayDocTitle',
234237
:'downsample_options' => :'DownsampleOptions',
238+
:'embed_attachments' => :'EmbedAttachments',
235239
:'embed_full_fonts' => :'EmbedFullFonts',
236240
:'encryption_details' => :'EncryptionDetails',
237241
:'export_document_structure' => :'ExportDocumentStructure',
@@ -278,13 +282,14 @@ def self.swagger_types
278282
:'optimize_output' => :'BOOLEAN',
279283
:'page_count' => :'Integer',
280284
:'page_index' => :'Integer',
281-
:'cache_header_footer_shapes' => :'BOOLEAN',
285+
:'cache_background_graphics' => :'BOOLEAN',
282286
:'compliance' => :'String',
283287
:'create_note_hyperlinks' => :'BOOLEAN',
284288
:'custom_properties_export' => :'String',
285289
:'digital_signature_details' => :'PdfDigitalSignatureDetailsData',
286290
:'display_doc_title' => :'BOOLEAN',
287291
:'downsample_options' => :'DownsampleOptionsData',
292+
:'embed_attachments' => :'BOOLEAN',
288293
:'embed_full_fonts' => :'BOOLEAN',
289294
:'encryption_details' => :'PdfEncryptionDetailsData',
290295
:'export_document_structure' => :'BOOLEAN',
@@ -398,8 +403,8 @@ def initialize(attributes = {})
398403
self.page_index = attributes[:'PageIndex']
399404
end
400405

401-
if attributes.key?(:'CacheHeaderFooterShapes')
402-
self.cache_header_footer_shapes = attributes[:'CacheHeaderFooterShapes']
406+
if attributes.key?(:'CacheBackgroundGraphics')
407+
self.cache_background_graphics = attributes[:'CacheBackgroundGraphics']
403408
end
404409

405410
if attributes.key?(:'Compliance')
@@ -426,6 +431,10 @@ def initialize(attributes = {})
426431
self.downsample_options = attributes[:'DownsampleOptions']
427432
end
428433

434+
if attributes.key?(:'EmbedAttachments')
435+
self.embed_attachments = attributes[:'EmbedAttachments']
436+
end
437+
429438
if attributes.key?(:'EmbedFullFonts')
430439
self.embed_full_fonts = attributes[:'EmbedFullFonts']
431440
end
@@ -767,13 +776,14 @@ def ==(other)
767776
optimize_output == other.optimize_output &&
768777
page_count == other.page_count &&
769778
page_index == other.page_index &&
770-
cache_header_footer_shapes == other.cache_header_footer_shapes &&
779+
cache_background_graphics == other.cache_background_graphics &&
771780
compliance == other.compliance &&
772781
create_note_hyperlinks == other.create_note_hyperlinks &&
773782
custom_properties_export == other.custom_properties_export &&
774783
digital_signature_details == other.digital_signature_details &&
775784
display_doc_title == other.display_doc_title &&
776785
downsample_options == other.downsample_options &&
786+
embed_attachments == other.embed_attachments &&
777787
embed_full_fonts == other.embed_full_fonts &&
778788
encryption_details == other.encryption_details &&
779789
export_document_structure == other.export_document_structure &&
@@ -805,7 +815,7 @@ def eql?(other)
805815
# Calculates hash code according to all attributes.
806816
# @return [Fixnum] Hash code
807817
def hash
808-
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, cache_header_footer_shapes, compliance, create_note_hyperlinks, custom_properties_export, digital_signature_details, display_doc_title, downsample_options, embed_full_fonts, encryption_details, export_document_structure, export_language_to_span_tag, font_embedding_mode, header_footer_bookmarks_export_mode, image_color_space_export_mode, image_compression, interpolate_images, open_hyperlinks_in_new_window, outline_options, page_mode, preblend_images, preserve_form_fields, save_format, text_compression, use_book_fold_printing_settings, use_core_fonts, zoom_behavior, zoom_factor].hash
818+
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, cache_background_graphics, compliance, create_note_hyperlinks, custom_properties_export, digital_signature_details, display_doc_title, downsample_options, embed_attachments, embed_full_fonts, encryption_details, export_document_structure, export_language_to_span_tag, font_embedding_mode, header_footer_bookmarks_export_mode, image_color_space_export_mode, image_compression, interpolate_images, open_hyperlinks_in_new_window, outline_options, page_mode, preblend_images, preserve_form_fields, save_format, text_compression, use_book_fold_printing_settings, use_core_fonts, zoom_behavior, zoom_factor].hash
809819
end
810820

811821
# Builds the object from hash

lib/aspose_words_cloud/models/xml_data_load_options.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
module AsposeWordsCloud
2929

3030
# Represents options for XML data loading.
31+
# To learn more, visit the LINQ Reporting Engine documentation article.
3132
class XmlDataLoadOptions
3233
# Gets or sets a flag indicating whether a generated data source will always contain an object for an XML root
3334
# element. If an XML root element has no attributes and all its child elements have same names, such an object

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.10".freeze
27+
VERSION = "22.11".freeze
2828
end

tests/PageSetup/page_setup_tests.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_get_render_page
102102

103103
upload_file File.join(local_test_folder, local_text_file), remote_data_folder + '/' + remote_file_name
104104

105-
request = RenderPageRequest.new(name: remote_file_name, page_index: 1, format: 'bmp', folder: remote_data_folder)
105+
request = RenderPageRequest.new(name: remote_file_name, page_index: 1, format: 'jpg', folder: remote_data_folder)
106106

107107
result = @words_api.render_page(request)
108108
assert_equal false, result.nil?
@@ -113,7 +113,7 @@ def test_get_render_page
113113
#
114114
def test_get_render_page_online
115115
request_document = File.open(File.join(local_test_folder, local_text_file))
116-
request = RenderPageOnlineRequest.new(document: request_document, page_index: 1, format: 'bmp')
116+
request = RenderPageOnlineRequest.new(document: request_document, page_index: 1, format: 'jpg')
117117

118118
result = @words_api.render_page_online(request)
119119
assert_equal false, result.nil?

0 commit comments

Comments
 (0)