aspose_words_cloud 22.3.0 → 22.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose_words_cloud/api/words_api.rb +76 -0
- data/lib/aspose_words_cloud/models/epub_save_options_data.rb +11 -1
- data/lib/aspose_words_cloud/models/html_save_options_data.rb +11 -1
- data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +11 -1
- data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +2 -2
- data/lib/aspose_words_cloud/models/requests/copy_styles_from_template_request.rb +201 -0
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 105d3df045869f649c9c84e87c32c111a65ace7530b44a8aa47a0e589c1259c8
|
4
|
+
data.tar.gz: 2945151b836223d2eab114d9bb71cf767fb0bfc94fb204a166923795c4ed9f8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17300dc2314b9e4d45b017272cd196e1e8304cc860e537efe8c4794402f9d3c6b423691816a58355e639bfd226fe1b41819b914fe1dd1766fdac38213242e30b
|
7
|
+
data.tar.gz: 82fd5faec2ab2e60f9632712fcd970da636448ef645370e05cef715848d5f39b94d7f63b74f8c4701bb68f20227874d0353475d46e798339e5162a15d5b877ef
|
@@ -1395,6 +1395,82 @@ module AsposeWordsCloud
|
|
1395
1395
|
[mp_data, status_code, headers]
|
1396
1396
|
end
|
1397
1397
|
|
1398
|
+
# Copies styles from the origin document to the target document.
|
1399
|
+
# @param request CopyStylesFromTemplateRequest
|
1400
|
+
# @return [WordsResponse]
|
1401
|
+
def copy_styles_from_template(request)
|
1402
|
+
begin
|
1403
|
+
data, _status_code, _headers = copy_styles_from_template_with_http_info(request)
|
1404
|
+
rescue ApiError => e
|
1405
|
+
if e.code == 401
|
1406
|
+
request_token
|
1407
|
+
data, _status_code, _headers = copy_styles_from_template_with_http_info(request)
|
1408
|
+
else
|
1409
|
+
raise
|
1410
|
+
end
|
1411
|
+
end
|
1412
|
+
data
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
# Copies styles from the origin document to the target document.
|
1416
|
+
# @param request CopyStylesFromTemplateRequest
|
1417
|
+
# @return [Array<(WordsResponse, Fixnum, Hash)>]
|
1418
|
+
# WordsResponse, response status code and response headers
|
1419
|
+
private def copy_styles_from_template_with_http_info(request)
|
1420
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? CopyStylesFromTemplateRequest
|
1421
|
+
|
1422
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.copy_styles_from_template ...' if @api_client.config.debugging
|
1423
|
+
# verify the required parameter 'name' is set
|
1424
|
+
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.copy_styles_from_template' if @api_client.config.client_side_validation && request.name.nil?
|
1425
|
+
# verify the required parameter 'template_name' is set
|
1426
|
+
raise ArgumentError, 'Missing the required parameter template_name when calling WordsApi.copy_styles_from_template' if @api_client.config.client_side_validation && request.template_name.nil?
|
1427
|
+
|
1428
|
+
# resource path
|
1429
|
+
local_var_path = '/words/{name}/styles/copy_from'[1..-1]
|
1430
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.nil? ? '' : request.name.to_s)
|
1431
|
+
local_var_path = local_var_path.sub('//', '/')
|
1432
|
+
|
1433
|
+
# query parameters
|
1434
|
+
query_params = {}
|
1435
|
+
query_params[downcase_first_letter('TemplateName')] = request.template_name
|
1436
|
+
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1437
|
+
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1438
|
+
query_params[downcase_first_letter('LoadEncoding')] = request.load_encoding unless request.load_encoding.nil?
|
1439
|
+
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1440
|
+
query_params[downcase_first_letter('EncryptedPassword')] = request.encrypted_password unless request.encrypted_password.nil?
|
1441
|
+
query_params[downcase_first_letter('DestFileName')] = request.dest_file_name unless request.dest_file_name.nil?
|
1442
|
+
query_params[downcase_first_letter('RevisionAuthor')] = request.revision_author unless request.revision_author.nil?
|
1443
|
+
query_params[downcase_first_letter('RevisionDateTime')] = request.revision_date_time unless request.revision_date_time.nil?
|
1444
|
+
|
1445
|
+
# header parameters
|
1446
|
+
header_params = {}
|
1447
|
+
# HTTP header 'Accept' (if needed)
|
1448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/xml', 'application/json'])
|
1449
|
+
# HTTP header 'Content-Type'
|
1450
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/xml', 'application/json'])
|
1451
|
+
|
1452
|
+
# form parameters
|
1453
|
+
form_params = {}
|
1454
|
+
|
1455
|
+
# http body (model)
|
1456
|
+
post_body = nil
|
1457
|
+
auth_names = ['JWT']
|
1458
|
+
|
1459
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1460
|
+
header_params: header_params,
|
1461
|
+
query_params: query_params,
|
1462
|
+
form_params: form_params,
|
1463
|
+
body: post_body,
|
1464
|
+
auth_names: auth_names,
|
1465
|
+
return_type: 'WordsResponse')
|
1466
|
+
if @api_client.config.debugging
|
1467
|
+
@api_client.config.logger.debug "API called:
|
1468
|
+
WordsApi#copy_styles_from_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
[data, status_code, headers]
|
1472
|
+
end
|
1473
|
+
|
1398
1474
|
# Supported extensions: ".doc", ".docx", ".docm", ".dot", ".dotm", ".dotx", ".flatopc", ".fopc", ".flatopc_macro", ".fopc_macro", ".flatopc_template", ".fopc_template", ".flatopc_template_macro", ".fopc_template_macro", ".wordml", ".wml", ".rtf".
|
1399
1475
|
# @param request CreateDocumentRequest
|
1400
1476
|
# @return [DocumentResponse]
|
@@ -140,6 +140,9 @@ module AsposeWordsCloud
|
|
140
140
|
# Gets or sets a value indicating whether to write the roundtrip information when saving to HTML. The default value is true.
|
141
141
|
attr_accessor :export_roundtrip_information
|
142
142
|
|
143
|
+
# Gets or sets the flag, that controls whether Aspose.Words.Drawing.Shape nodes are converted to SVG images when saving to HTML, MHTML or EPUB. Default value is false.
|
144
|
+
attr_accessor :export_shapes_as_svg
|
145
|
+
|
143
146
|
# Gets or sets the flag, that controls how textboxes represented by Aspose.Words.Drawing.Shape are saved to HTML, MHTML or EPUB. The default value is false.
|
144
147
|
# When set to true, exports textboxes as inline "svg" elements. When false, exports as "image" elements.
|
145
148
|
attr_accessor :export_text_box_as_svg
|
@@ -268,6 +271,7 @@ module AsposeWordsCloud
|
|
268
271
|
:'export_page_setup' => :'ExportPageSetup',
|
269
272
|
:'export_relative_font_size' => :'ExportRelativeFontSize',
|
270
273
|
:'export_roundtrip_information' => :'ExportRoundtripInformation',
|
274
|
+
:'export_shapes_as_svg' => :'ExportShapesAsSvg',
|
271
275
|
:'export_text_box_as_svg' => :'ExportTextBoxAsSvg',
|
272
276
|
:'export_text_input_form_field_as_text' => :'ExportTextInputFormFieldAsText',
|
273
277
|
:'export_toc_page_numbers' => :'ExportTocPageNumbers',
|
@@ -329,6 +333,7 @@ module AsposeWordsCloud
|
|
329
333
|
:'export_page_setup' => :'BOOLEAN',
|
330
334
|
:'export_relative_font_size' => :'BOOLEAN',
|
331
335
|
:'export_roundtrip_information' => :'BOOLEAN',
|
336
|
+
:'export_shapes_as_svg' => :'BOOLEAN',
|
332
337
|
:'export_text_box_as_svg' => :'BOOLEAN',
|
333
338
|
:'export_text_input_form_field_as_text' => :'BOOLEAN',
|
334
339
|
:'export_toc_page_numbers' => :'BOOLEAN',
|
@@ -499,6 +504,10 @@ module AsposeWordsCloud
|
|
499
504
|
self.export_roundtrip_information = attributes[:'ExportRoundtripInformation']
|
500
505
|
end
|
501
506
|
|
507
|
+
if attributes.key?(:'ExportShapesAsSvg')
|
508
|
+
self.export_shapes_as_svg = attributes[:'ExportShapesAsSvg']
|
509
|
+
end
|
510
|
+
|
502
511
|
if attributes.key?(:'ExportTextBoxAsSvg')
|
503
512
|
self.export_text_box_as_svg = attributes[:'ExportTextBoxAsSvg']
|
504
513
|
end
|
@@ -826,6 +835,7 @@ module AsposeWordsCloud
|
|
826
835
|
export_page_setup == other.export_page_setup &&
|
827
836
|
export_relative_font_size == other.export_relative_font_size &&
|
828
837
|
export_roundtrip_information == other.export_roundtrip_information &&
|
838
|
+
export_shapes_as_svg == other.export_shapes_as_svg &&
|
829
839
|
export_text_box_as_svg == other.export_text_box_as_svg &&
|
830
840
|
export_text_input_form_field_as_text == other.export_text_input_form_field_as_text &&
|
831
841
|
export_toc_page_numbers == other.export_toc_page_numbers &&
|
@@ -858,7 +868,7 @@ module AsposeWordsCloud
|
|
858
868
|
# Calculates hash code according to all attributes.
|
859
869
|
# @return [Fixnum] Hash code
|
860
870
|
def hash
|
861
|
-
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, 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_box_as_svg, 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, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, epub_navigation_map_level, save_format].hash
|
871
|
+
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, 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_shapes_as_svg, export_text_box_as_svg, 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, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, epub_navigation_map_level, save_format].hash
|
862
872
|
end
|
863
873
|
|
864
874
|
# Builds the object from hash
|
@@ -140,6 +140,9 @@ module AsposeWordsCloud
|
|
140
140
|
# Gets or sets a value indicating whether to write the roundtrip information when saving to HTML. The default value is true.
|
141
141
|
attr_accessor :export_roundtrip_information
|
142
142
|
|
143
|
+
# Gets or sets the flag, that controls whether Aspose.Words.Drawing.Shape nodes are converted to SVG images when saving to HTML, MHTML or EPUB. Default value is false.
|
144
|
+
attr_accessor :export_shapes_as_svg
|
145
|
+
|
143
146
|
# Gets or sets the flag, that controls how textboxes represented by Aspose.Words.Drawing.Shape are saved to HTML, MHTML or EPUB. The default value is false.
|
144
147
|
# When set to true, exports textboxes as inline "svg" elements. When false, exports as "image" elements.
|
145
148
|
attr_accessor :export_text_box_as_svg
|
@@ -265,6 +268,7 @@ module AsposeWordsCloud
|
|
265
268
|
:'export_page_setup' => :'ExportPageSetup',
|
266
269
|
:'export_relative_font_size' => :'ExportRelativeFontSize',
|
267
270
|
:'export_roundtrip_information' => :'ExportRoundtripInformation',
|
271
|
+
:'export_shapes_as_svg' => :'ExportShapesAsSvg',
|
268
272
|
:'export_text_box_as_svg' => :'ExportTextBoxAsSvg',
|
269
273
|
:'export_text_input_form_field_as_text' => :'ExportTextInputFormFieldAsText',
|
270
274
|
:'export_toc_page_numbers' => :'ExportTocPageNumbers',
|
@@ -325,6 +329,7 @@ module AsposeWordsCloud
|
|
325
329
|
:'export_page_setup' => :'BOOLEAN',
|
326
330
|
:'export_relative_font_size' => :'BOOLEAN',
|
327
331
|
:'export_roundtrip_information' => :'BOOLEAN',
|
332
|
+
:'export_shapes_as_svg' => :'BOOLEAN',
|
328
333
|
:'export_text_box_as_svg' => :'BOOLEAN',
|
329
334
|
:'export_text_input_form_field_as_text' => :'BOOLEAN',
|
330
335
|
:'export_toc_page_numbers' => :'BOOLEAN',
|
@@ -494,6 +499,10 @@ module AsposeWordsCloud
|
|
494
499
|
self.export_roundtrip_information = attributes[:'ExportRoundtripInformation']
|
495
500
|
end
|
496
501
|
|
502
|
+
if attributes.key?(:'ExportShapesAsSvg')
|
503
|
+
self.export_shapes_as_svg = attributes[:'ExportShapesAsSvg']
|
504
|
+
end
|
505
|
+
|
497
506
|
if attributes.key?(:'ExportTextBoxAsSvg')
|
498
507
|
self.export_text_box_as_svg = attributes[:'ExportTextBoxAsSvg']
|
499
508
|
end
|
@@ -817,6 +826,7 @@ module AsposeWordsCloud
|
|
817
826
|
export_page_setup == other.export_page_setup &&
|
818
827
|
export_relative_font_size == other.export_relative_font_size &&
|
819
828
|
export_roundtrip_information == other.export_roundtrip_information &&
|
829
|
+
export_shapes_as_svg == other.export_shapes_as_svg &&
|
820
830
|
export_text_box_as_svg == other.export_text_box_as_svg &&
|
821
831
|
export_text_input_form_field_as_text == other.export_text_input_form_field_as_text &&
|
822
832
|
export_toc_page_numbers == other.export_toc_page_numbers &&
|
@@ -848,7 +858,7 @@ module AsposeWordsCloud
|
|
848
858
|
# Calculates hash code according to all attributes.
|
849
859
|
# @return [Fixnum] Hash code
|
850
860
|
def hash
|
851
|
-
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, 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_box_as_svg, 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, resolve_font_names, resource_folder, resource_folder_alias, save_format, scale_image_to_shape_size, table_width_output_mode].hash
|
861
|
+
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, 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_shapes_as_svg, export_text_box_as_svg, 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, resolve_font_names, resource_folder, resource_folder_alias, save_format, scale_image_to_shape_size, table_width_output_mode].hash
|
852
862
|
end
|
853
863
|
|
854
864
|
# Builds the object from hash
|
@@ -140,6 +140,9 @@ module AsposeWordsCloud
|
|
140
140
|
# Gets or sets a value indicating whether to write the roundtrip information when saving to HTML. The default value is true.
|
141
141
|
attr_accessor :export_roundtrip_information
|
142
142
|
|
143
|
+
# Gets or sets the flag, that controls whether Aspose.Words.Drawing.Shape nodes are converted to SVG images when saving to HTML, MHTML or EPUB. Default value is false.
|
144
|
+
attr_accessor :export_shapes_as_svg
|
145
|
+
|
143
146
|
# Gets or sets the flag, that controls how textboxes represented by Aspose.Words.Drawing.Shape are saved to HTML, MHTML or EPUB. The default value is false.
|
144
147
|
# When set to true, exports textboxes as inline "svg" elements. When false, exports as "image" elements.
|
145
148
|
attr_accessor :export_text_box_as_svg
|
@@ -268,6 +271,7 @@ module AsposeWordsCloud
|
|
268
271
|
:'export_page_setup' => :'ExportPageSetup',
|
269
272
|
:'export_relative_font_size' => :'ExportRelativeFontSize',
|
270
273
|
:'export_roundtrip_information' => :'ExportRoundtripInformation',
|
274
|
+
:'export_shapes_as_svg' => :'ExportShapesAsSvg',
|
271
275
|
:'export_text_box_as_svg' => :'ExportTextBoxAsSvg',
|
272
276
|
:'export_text_input_form_field_as_text' => :'ExportTextInputFormFieldAsText',
|
273
277
|
:'export_toc_page_numbers' => :'ExportTocPageNumbers',
|
@@ -329,6 +333,7 @@ module AsposeWordsCloud
|
|
329
333
|
:'export_page_setup' => :'BOOLEAN',
|
330
334
|
:'export_relative_font_size' => :'BOOLEAN',
|
331
335
|
:'export_roundtrip_information' => :'BOOLEAN',
|
336
|
+
:'export_shapes_as_svg' => :'BOOLEAN',
|
332
337
|
:'export_text_box_as_svg' => :'BOOLEAN',
|
333
338
|
:'export_text_input_form_field_as_text' => :'BOOLEAN',
|
334
339
|
:'export_toc_page_numbers' => :'BOOLEAN',
|
@@ -499,6 +504,10 @@ module AsposeWordsCloud
|
|
499
504
|
self.export_roundtrip_information = attributes[:'ExportRoundtripInformation']
|
500
505
|
end
|
501
506
|
|
507
|
+
if attributes.key?(:'ExportShapesAsSvg')
|
508
|
+
self.export_shapes_as_svg = attributes[:'ExportShapesAsSvg']
|
509
|
+
end
|
510
|
+
|
502
511
|
if attributes.key?(:'ExportTextBoxAsSvg')
|
503
512
|
self.export_text_box_as_svg = attributes[:'ExportTextBoxAsSvg']
|
504
513
|
end
|
@@ -826,6 +835,7 @@ module AsposeWordsCloud
|
|
826
835
|
export_page_setup == other.export_page_setup &&
|
827
836
|
export_relative_font_size == other.export_relative_font_size &&
|
828
837
|
export_roundtrip_information == other.export_roundtrip_information &&
|
838
|
+
export_shapes_as_svg == other.export_shapes_as_svg &&
|
829
839
|
export_text_box_as_svg == other.export_text_box_as_svg &&
|
830
840
|
export_text_input_form_field_as_text == other.export_text_input_form_field_as_text &&
|
831
841
|
export_toc_page_numbers == other.export_toc_page_numbers &&
|
@@ -858,7 +868,7 @@ module AsposeWordsCloud
|
|
858
868
|
# Calculates hash code according to all attributes.
|
859
869
|
# @return [Fixnum] Hash code
|
860
870
|
def hash
|
861
|
-
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, 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_box_as_svg, 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, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, export_cid_urls_for_mhtml_resources, save_format].hash
|
871
|
+
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, 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_shapes_as_svg, export_text_box_as_svg, 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, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, export_cid_urls_for_mhtml_resources, save_format].hash
|
862
872
|
end
|
863
873
|
|
864
874
|
# Builds the object from hash
|
@@ -526,7 +526,7 @@ module AsposeWordsCloud
|
|
526
526
|
return false unless color_mode_validator.valid?(@color_mode)
|
527
527
|
numeral_format_validator = EnumAttributeValidator.new('String', ["European", "ArabicIndic", "EasternArabicIndic", "Context", "System"])
|
528
528
|
return false unless numeral_format_validator.valid?(@numeral_format)
|
529
|
-
compliance_validator = EnumAttributeValidator.new('String', ["Pdf17", "Pdf20", "PdfA1a", "PdfA1b", "PdfA2a", "PdfA2u", "PdfUa1"])
|
529
|
+
compliance_validator = EnumAttributeValidator.new('String', ["Pdf17", "Pdf20", "PdfA1a", "PdfA1b", "PdfA2a", "PdfA2u", "PdfA4", "PdfUa1"])
|
530
530
|
return false unless compliance_validator.valid?(@compliance)
|
531
531
|
custom_properties_export_validator = EnumAttributeValidator.new('String', ["None", "Standard", "Metadata"])
|
532
532
|
return false unless custom_properties_export_validator.valid?(@custom_properties_export)
|
@@ -633,7 +633,7 @@ module AsposeWordsCloud
|
|
633
633
|
# Custom attribute writer method checking allowed values (enum).
|
634
634
|
# @param [Object] compliance Object to be assigned
|
635
635
|
def compliance=(compliance)
|
636
|
-
validator = EnumAttributeValidator.new('String', ["Pdf17", "Pdf20", "PdfA1a", "PdfA1b", "PdfA2a", "PdfA2u", "PdfUa1"])
|
636
|
+
validator = EnumAttributeValidator.new('String', ["Pdf17", "Pdf20", "PdfA1a", "PdfA1b", "PdfA2a", "PdfA2u", "PdfA4", "PdfUa1"])
|
637
637
|
if compliance.to_i == 0
|
638
638
|
unless validator.valid?(compliance)
|
639
639
|
raise ArgumentError, "invalid value for 'compliance', must be one of #{validator.allowable_values}."
|
@@ -0,0 +1,201 @@
|
|
1
|
+
# ------------------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="copy_styles_from_template_request.rb">
|
3
|
+
# Copyright (c) 2022 Aspose.Words for Cloud
|
4
|
+
# </copyright>
|
5
|
+
# <summary>
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
11
|
+
# furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
14
|
+
# copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
# SOFTWARE.
|
23
|
+
# </summary>
|
24
|
+
# ------------------------------------------------------------------------------------
|
25
|
+
|
26
|
+
module AsposeWordsCloud
|
27
|
+
|
28
|
+
#
|
29
|
+
# Request model for copy_styles_from_template operation.
|
30
|
+
#
|
31
|
+
class CopyStylesFromTemplateRequest
|
32
|
+
# The filename of the target document.
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
|
+
# The filename of the origin document.
|
36
|
+
attr_accessor :template_name
|
37
|
+
|
38
|
+
# Original document folder.
|
39
|
+
attr_accessor :folder
|
40
|
+
|
41
|
+
# Original document storage.
|
42
|
+
attr_accessor :storage
|
43
|
+
|
44
|
+
# Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
45
|
+
attr_accessor :load_encoding
|
46
|
+
|
47
|
+
# 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.
|
48
|
+
attr_accessor :password
|
49
|
+
|
50
|
+
# Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
|
51
|
+
attr_accessor :encrypted_password
|
52
|
+
|
53
|
+
# Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
54
|
+
attr_accessor :dest_file_name
|
55
|
+
|
56
|
+
# Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
57
|
+
attr_accessor :revision_author
|
58
|
+
|
59
|
+
# The date and time to use for revisions.
|
60
|
+
attr_accessor :revision_date_time
|
61
|
+
|
62
|
+
#
|
63
|
+
# Initializes a new instance.
|
64
|
+
# @param name The filename of the target document.
|
65
|
+
# @param template_name The filename of the origin document.
|
66
|
+
# @param folder Original document folder.
|
67
|
+
# @param storage Original document storage.
|
68
|
+
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
69
|
+
# @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.
|
70
|
+
# @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.
|
71
|
+
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
72
|
+
# @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
73
|
+
# @param revision_date_time The date and time to use for revisions.
|
74
|
+
|
75
|
+
def initialize(name:, template_name:, folder: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil, dest_file_name: nil, revision_author: nil, revision_date_time: nil)
|
76
|
+
self.name = name
|
77
|
+
self.template_name = template_name
|
78
|
+
self.folder = folder
|
79
|
+
self.storage = storage
|
80
|
+
self.load_encoding = load_encoding
|
81
|
+
self.password = password
|
82
|
+
self.encrypted_password = encrypted_password
|
83
|
+
self.dest_file_name = dest_file_name
|
84
|
+
self.revision_author = revision_author
|
85
|
+
self.revision_date_time = revision_date_time
|
86
|
+
end
|
87
|
+
|
88
|
+
# Creating batch part from request
|
89
|
+
def to_batch_part(api_client, guid)
|
90
|
+
# verify the required parameter 'name' is set
|
91
|
+
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.copy_styles_from_template' if api_client.config.client_side_validation && self.name.nil?
|
92
|
+
# verify the required parameter 'template_name' is set
|
93
|
+
raise ArgumentError, 'Missing the required parameter template_name when calling WordsApi.copy_styles_from_template' if api_client.config.client_side_validation && self.template_name.nil?
|
94
|
+
|
95
|
+
# resource path
|
96
|
+
local_var_path = '/words/{name}/styles/copy_from'[7..-1]
|
97
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
|
98
|
+
local_var_path = local_var_path.sub('//', '/')
|
99
|
+
|
100
|
+
# query parameters
|
101
|
+
query_params = {}
|
102
|
+
query_params[downcase_first_letter('TemplateName')] = self.template_name
|
103
|
+
query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
|
104
|
+
query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
|
105
|
+
query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
|
106
|
+
query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
|
107
|
+
query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
|
108
|
+
query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
|
109
|
+
query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
|
110
|
+
query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
|
111
|
+
|
112
|
+
if query_params
|
113
|
+
query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
|
114
|
+
end
|
115
|
+
|
116
|
+
header_params = {}
|
117
|
+
header_params['RequestId'] = guid
|
118
|
+
|
119
|
+
# form parameters
|
120
|
+
form_params = {}
|
121
|
+
|
122
|
+
# http body (model)
|
123
|
+
post_body = nil
|
124
|
+
body = nil
|
125
|
+
part = ""
|
126
|
+
part.concat("PUT".force_encoding('UTF-8'))
|
127
|
+
part.concat(" ".force_encoding('UTF-8'))
|
128
|
+
part.concat(local_var_path.force_encoding('UTF-8'))
|
129
|
+
part.concat(" \r\n".force_encoding('UTF-8'))
|
130
|
+
|
131
|
+
header_params.each_pair {|key, value| part.concat(key.dup.force_encoding('UTF-8') , ": ".force_encoding('UTF-8'), value.dup.force_encoding('UTF-8'), "\r\n".force_encoding('UTF-8')) }
|
132
|
+
part.concat("\r\n".force_encoding('UTF-8'))
|
133
|
+
if body
|
134
|
+
if body.is_a?(Hash)
|
135
|
+
body.each do |key, value|
|
136
|
+
part.concat(value, "\r\n")
|
137
|
+
end
|
138
|
+
else
|
139
|
+
part.concat(body)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
part
|
143
|
+
end
|
144
|
+
|
145
|
+
def create_http_request(api_client)
|
146
|
+
# verify the required parameter 'name' is set
|
147
|
+
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.copy_styles_from_template' if api_client.config.client_side_validation && self.name.nil?
|
148
|
+
# verify the required parameter 'template_name' is set
|
149
|
+
raise ArgumentError, 'Missing the required parameter template_name when calling WordsApi.copy_styles_from_template' if api_client.config.client_side_validation && self.template_name.nil?
|
150
|
+
|
151
|
+
# resource path
|
152
|
+
local_var_path = '/words/{name}/styles/copy_from'[1..-1]
|
153
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
|
154
|
+
local_var_path = local_var_path.sub('//', '/')
|
155
|
+
|
156
|
+
# query parameters
|
157
|
+
query_params = {}
|
158
|
+
query_params[downcase_first_letter('TemplateName')] = self.template_name
|
159
|
+
query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
|
160
|
+
query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
|
161
|
+
query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
|
162
|
+
query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
|
163
|
+
query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
|
164
|
+
query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
|
165
|
+
query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
|
166
|
+
query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
|
167
|
+
|
168
|
+
# header parameters
|
169
|
+
header_params = {}
|
170
|
+
# HTTP header 'Content-Type'
|
171
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
|
172
|
+
|
173
|
+
# form parameters
|
174
|
+
form_params = {}
|
175
|
+
|
176
|
+
# http body (model)
|
177
|
+
post_body = nil
|
178
|
+
body = api_client.build_request_body(header_params, form_params, post_body)
|
179
|
+
{
|
180
|
+
'method': :PUT,
|
181
|
+
'path': local_var_path,
|
182
|
+
'header_params': header_params,
|
183
|
+
'query_params': query_params,
|
184
|
+
'body': body,
|
185
|
+
'auth_names': ['JWT']
|
186
|
+
}
|
187
|
+
end
|
188
|
+
|
189
|
+
#
|
190
|
+
# Helper method to convert first letter to downcase
|
191
|
+
#
|
192
|
+
def downcase_first_letter(str)
|
193
|
+
str[0].downcase + str[1..-1]
|
194
|
+
end
|
195
|
+
|
196
|
+
# Get response type
|
197
|
+
def get_response_type
|
198
|
+
'WordsResponse'
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
data/lib/aspose_words_cloud.rb
CHANGED
@@ -304,6 +304,7 @@ require_relative 'aspose_words_cloud/models/requests/copy_file_request'
|
|
304
304
|
require_relative 'aspose_words_cloud/models/requests/copy_folder_request'
|
305
305
|
require_relative 'aspose_words_cloud/models/requests/copy_style_request'
|
306
306
|
require_relative 'aspose_words_cloud/models/requests/copy_style_online_request'
|
307
|
+
require_relative 'aspose_words_cloud/models/requests/copy_styles_from_template_request'
|
307
308
|
require_relative 'aspose_words_cloud/models/requests/create_document_request'
|
308
309
|
require_relative 'aspose_words_cloud/models/requests/create_folder_request'
|
309
310
|
require_relative 'aspose_words_cloud/models/requests/create_or_update_document_property_request'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_words_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 22.
|
4
|
+
version: 22.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YaroslawEkimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -285,6 +285,7 @@ files:
|
|
285
285
|
- lib/aspose_words_cloud/models/requests/copy_folder_request.rb
|
286
286
|
- lib/aspose_words_cloud/models/requests/copy_style_online_request.rb
|
287
287
|
- lib/aspose_words_cloud/models/requests/copy_style_request.rb
|
288
|
+
- lib/aspose_words_cloud/models/requests/copy_styles_from_template_request.rb
|
288
289
|
- lib/aspose_words_cloud/models/requests/create_document_request.rb
|
289
290
|
- lib/aspose_words_cloud/models/requests/create_folder_request.rb
|
290
291
|
- lib/aspose_words_cloud/models/requests/create_or_update_document_property_online_request.rb
|