Skip to content

Commit db4070a

Browse files
SDK regenerated by CI server [ci skip]
1 parent 686e443 commit db4070a

File tree

6 files changed

+59
-6
lines changed

6 files changed

+59
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This repository contains Aspose.Words Cloud SDK for Ruby source code. This SDK a
1616
## Enhancements in Version 25.6
1717

1818
- Added support for SVG images format in Watermark API.
19+
- Added 'RemoveJavaScriptFromLinks' property for HtmlSaveOptionsData class.
1920

2021

2122
## Enhancements in Version 25.5
@@ -392,7 +393,7 @@ To use Aspose Words for Cloud Ruby SDK you need to register an account with [Asp
392393
To install this package do the following:
393394
update your Gemfile
394395
```ruby
395-
gem 'aspose_words_cloud', '~> 25.5'
396+
gem 'aspose_words_cloud', '~> 25.6'
396397
```
397398
or install directly
398399
```bash

lib/aspose_words_cloud/models/azw3_save_options_data.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ class Azw3SaveOptionsData
195195
# Gets or sets a value indicating whether to use pretty formats output.
196196
attr_accessor :pretty_format
197197

198+
# Gets or sets the flag that indicates whether JavaScript will be removed from links.
199+
# Default is false.
200+
# If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
201+
# will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
202+
attr_accessor :remove_java_script_from_links
203+
198204
# Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
199205
# Default value is false.
200206
# By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
@@ -295,6 +301,7 @@ def self.attribute_map
295301
:'metafile_format' => :'MetafileFormat',
296302
:'office_math_output_mode' => :'OfficeMathOutputMode',
297303
:'pretty_format' => :'PrettyFormat',
304+
:'remove_java_script_from_links' => :'RemoveJavaScriptFromLinks',
298305
:'replace_backslash_with_yen_sign' => :'ReplaceBackslashWithYenSign',
299306
:'resolve_font_names' => :'ResolveFontNames',
300307
:'resource_folder' => :'ResourceFolder',
@@ -355,6 +362,7 @@ def self.swagger_types
355362
:'metafile_format' => :'String',
356363
:'office_math_output_mode' => :'String',
357364
:'pretty_format' => :'BOOLEAN',
365+
:'remove_java_script_from_links' => :'BOOLEAN',
358366
:'replace_backslash_with_yen_sign' => :'BOOLEAN',
359367
:'resolve_font_names' => :'BOOLEAN',
360368
:'resource_folder' => :'String',
@@ -560,6 +568,10 @@ def initialize(attributes = {})
560568
self.pretty_format = attributes[:'PrettyFormat']
561569
end
562570

571+
if attributes.key?(:'RemoveJavaScriptFromLinks')
572+
self.remove_java_script_from_links = attributes[:'RemoveJavaScriptFromLinks']
573+
end
574+
563575
if attributes.key?(:'ReplaceBackslashWithYenSign')
564576
self.replace_backslash_with_yen_sign = attributes[:'ReplaceBackslashWithYenSign']
565577
end
@@ -840,6 +852,7 @@ def ==(other)
840852
metafile_format == other.metafile_format &&
841853
office_math_output_mode == other.office_math_output_mode &&
842854
pretty_format == other.pretty_format &&
855+
remove_java_script_from_links == other.remove_java_script_from_links &&
843856
replace_backslash_with_yen_sign == other.replace_backslash_with_yen_sign &&
844857
resolve_font_names == other.resolve_font_names &&
845858
resource_folder == other.resource_folder &&
@@ -859,7 +872,7 @@ def eql?(other)
859872
# Calculates hash code according to all attributes.
860873
# @return [Fixnum] Hash code
861874
def hash
862-
[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_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, replace_backslash_with_yen_sign, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, navigation_map_level, save_format].hash
875+
[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_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, remove_java_script_from_links, replace_backslash_with_yen_sign, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, navigation_map_level, save_format].hash
863876
end
864877

865878
# Builds the object from hash

lib/aspose_words_cloud/models/epub_save_options_data.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ class EpubSaveOptionsData
195195
# Gets or sets a value indicating whether to use pretty formats output.
196196
attr_accessor :pretty_format
197197

198+
# Gets or sets the flag that indicates whether JavaScript will be removed from links.
199+
# Default is false.
200+
# If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
201+
# will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
202+
attr_accessor :remove_java_script_from_links
203+
198204
# Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
199205
# Default value is false.
200206
# By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
@@ -295,6 +301,7 @@ def self.attribute_map
295301
:'metafile_format' => :'MetafileFormat',
296302
:'office_math_output_mode' => :'OfficeMathOutputMode',
297303
:'pretty_format' => :'PrettyFormat',
304+
:'remove_java_script_from_links' => :'RemoveJavaScriptFromLinks',
298305
:'replace_backslash_with_yen_sign' => :'ReplaceBackslashWithYenSign',
299306
:'resolve_font_names' => :'ResolveFontNames',
300307
:'resource_folder' => :'ResourceFolder',
@@ -355,6 +362,7 @@ def self.swagger_types
355362
:'metafile_format' => :'String',
356363
:'office_math_output_mode' => :'String',
357364
:'pretty_format' => :'BOOLEAN',
365+
:'remove_java_script_from_links' => :'BOOLEAN',
358366
:'replace_backslash_with_yen_sign' => :'BOOLEAN',
359367
:'resolve_font_names' => :'BOOLEAN',
360368
:'resource_folder' => :'String',
@@ -560,6 +568,10 @@ def initialize(attributes = {})
560568
self.pretty_format = attributes[:'PrettyFormat']
561569
end
562570

571+
if attributes.key?(:'RemoveJavaScriptFromLinks')
572+
self.remove_java_script_from_links = attributes[:'RemoveJavaScriptFromLinks']
573+
end
574+
563575
if attributes.key?(:'ReplaceBackslashWithYenSign')
564576
self.replace_backslash_with_yen_sign = attributes[:'ReplaceBackslashWithYenSign']
565577
end
@@ -840,6 +852,7 @@ def ==(other)
840852
metafile_format == other.metafile_format &&
841853
office_math_output_mode == other.office_math_output_mode &&
842854
pretty_format == other.pretty_format &&
855+
remove_java_script_from_links == other.remove_java_script_from_links &&
843856
replace_backslash_with_yen_sign == other.replace_backslash_with_yen_sign &&
844857
resolve_font_names == other.resolve_font_names &&
845858
resource_folder == other.resource_folder &&
@@ -859,7 +872,7 @@ def eql?(other)
859872
# Calculates hash code according to all attributes.
860873
# @return [Fixnum] Hash code
861874
def hash
862-
[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_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, replace_backslash_with_yen_sign, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, navigation_map_level, save_format].hash
875+
[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_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, remove_java_script_from_links, replace_backslash_with_yen_sign, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, navigation_map_level, save_format].hash
863876
end
864877

865878
# Builds the object from hash

lib/aspose_words_cloud/models/html_save_options_data.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ class HtmlSaveOptionsData
195195
# Gets or sets a value indicating whether to use pretty formats output.
196196
attr_accessor :pretty_format
197197

198+
# Gets or sets the flag that indicates whether JavaScript will be removed from links.
199+
# Default is false.
200+
# If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
201+
# will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
202+
attr_accessor :remove_java_script_from_links
203+
198204
# Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
199205
# Default value is false.
200206
# By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
@@ -292,6 +298,7 @@ def self.attribute_map
292298
:'metafile_format' => :'MetafileFormat',
293299
:'office_math_output_mode' => :'OfficeMathOutputMode',
294300
:'pretty_format' => :'PrettyFormat',
301+
:'remove_java_script_from_links' => :'RemoveJavaScriptFromLinks',
295302
:'replace_backslash_with_yen_sign' => :'ReplaceBackslashWithYenSign',
296303
:'resolve_font_names' => :'ResolveFontNames',
297304
:'resource_folder' => :'ResourceFolder',
@@ -351,6 +358,7 @@ def self.swagger_types
351358
:'metafile_format' => :'String',
352359
:'office_math_output_mode' => :'String',
353360
:'pretty_format' => :'BOOLEAN',
361+
:'remove_java_script_from_links' => :'BOOLEAN',
354362
:'replace_backslash_with_yen_sign' => :'BOOLEAN',
355363
:'resolve_font_names' => :'BOOLEAN',
356364
:'resource_folder' => :'String',
@@ -555,6 +563,10 @@ def initialize(attributes = {})
555563
self.pretty_format = attributes[:'PrettyFormat']
556564
end
557565

566+
if attributes.key?(:'RemoveJavaScriptFromLinks')
567+
self.remove_java_script_from_links = attributes[:'RemoveJavaScriptFromLinks']
568+
end
569+
558570
if attributes.key?(:'ReplaceBackslashWithYenSign')
559571
self.replace_backslash_with_yen_sign = attributes[:'ReplaceBackslashWithYenSign']
560572
end
@@ -831,6 +843,7 @@ def ==(other)
831843
metafile_format == other.metafile_format &&
832844
office_math_output_mode == other.office_math_output_mode &&
833845
pretty_format == other.pretty_format &&
846+
remove_java_script_from_links == other.remove_java_script_from_links &&
834847
replace_backslash_with_yen_sign == other.replace_backslash_with_yen_sign &&
835848
resolve_font_names == other.resolve_font_names &&
836849
resource_folder == other.resource_folder &&
@@ -849,7 +862,7 @@ def eql?(other)
849862
# Calculates hash code according to all attributes.
850863
# @return [Fixnum] Hash code
851864
def hash
852-
[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_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, replace_backslash_with_yen_sign, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, save_format].hash
865+
[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_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, remove_java_script_from_links, replace_backslash_with_yen_sign, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, save_format].hash
853866
end
854867

855868
# Builds the object from hash

0 commit comments

Comments
 (0)