aspose_words_cloud 24.8.0 → 24.10.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 +260 -0
- data/lib/aspose_words_cloud/models/azw3_save_options_data.rb +15 -1
- data/lib/aspose_words_cloud/models/digital_signature_details.rb +218 -0
- data/lib/aspose_words_cloud/models/epub_save_options_data.rb +15 -1
- data/lib/aspose_words_cloud/models/html_save_options_data.rb +15 -1
- data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +15 -1
- data/lib/aspose_words_cloud/models/open_xps_save_options_data.rb +14 -1
- data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +13 -1
- data/lib/aspose_words_cloud/models/requests/execute_mail_merge_online_request.rb +8 -1
- data/lib/aspose_words_cloud/models/requests/execute_mail_merge_request.rb +8 -1
- data/lib/aspose_words_cloud/models/requests/get_signatures_online_request.rb +179 -0
- data/lib/aspose_words_cloud/models/requests/get_signatures_request.rb +178 -0
- data/lib/aspose_words_cloud/models/requests/remove_all_signatures_online_request.rb +186 -0
- data/lib/aspose_words_cloud/models/requests/remove_all_signatures_request.rb +185 -0
- data/lib/aspose_words_cloud/models/requests/sign_document_online_request.rb +208 -0
- data/lib/aspose_words_cloud/models/requests/sign_document_request.rb +207 -0
- data/lib/aspose_words_cloud/models/responses/remove_all_signatures_online_response.rb +47 -0
- data/lib/aspose_words_cloud/models/responses/sign_document_online_response.rb +47 -0
- data/lib/aspose_words_cloud/models/sign_options.rb +254 -0
- data/lib/aspose_words_cloud/models/signature.rb +267 -0
- data/lib/aspose_words_cloud/models/signature_collection_response.rb +236 -0
- data/lib/aspose_words_cloud/models/xaml_flow_pack_save_options_data.rb +15 -1
- data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +15 -1
- data/lib/aspose_words_cloud/models/xps_save_options_data.rb +14 -1
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +10 -0
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 708a038afd1c817a53eb1896b0d721eb06b7372a693e853be8b31ad7a869ec93
|
4
|
+
data.tar.gz: 06a7b814a3ce9154c0d3df5c4f16a761675e7281a845a5efe03fdd44e75ea867
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a837493e2e4832579472e3b43bfb9a77b3e2e9abe2661ee6fe7b3e89dd4c7c92b637390989173c6ddbd1e87dea5e9eb2bc730329acab8e778ccfd552d8f0773d
|
7
|
+
data.tar.gz: 84a10e8aec7aa8a402a6d092c8c66038b072971eeab9d294633c28bda25162ea303d2cc6c14df9c35d8a6b8ff3a43e51db15e4cedab894bab0d45ef008d36c27
|
@@ -7858,6 +7858,90 @@ module AsposeWordsCloud
|
|
7858
7858
|
[data, status_code, headers]
|
7859
7859
|
end
|
7860
7860
|
|
7861
|
+
# Gets signatures from the document.
|
7862
|
+
# @param request GetSignaturesRequest
|
7863
|
+
# @return [SignatureCollectionResponse]
|
7864
|
+
def get_signatures(request)
|
7865
|
+
begin
|
7866
|
+
data, _status_code, _headers = get_signatures_with_http_info(request)
|
7867
|
+
rescue ApiError => e
|
7868
|
+
if e.code == 401
|
7869
|
+
request_token
|
7870
|
+
data, _status_code, _headers = get_signatures_with_http_info(request)
|
7871
|
+
else
|
7872
|
+
raise
|
7873
|
+
end
|
7874
|
+
end
|
7875
|
+
data
|
7876
|
+
end
|
7877
|
+
|
7878
|
+
# Gets signatures from the document.
|
7879
|
+
# @param request GetSignaturesRequest
|
7880
|
+
# @return [Array<(SignatureCollectionResponse, Fixnum, Hash)>]
|
7881
|
+
# SignatureCollectionResponse, response status code and response headers
|
7882
|
+
private def get_signatures_with_http_info(request)
|
7883
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetSignaturesRequest
|
7884
|
+
|
7885
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.get_signatures ...' if @api_client.config.debugging
|
7886
|
+
request_data = request.create_http_request(@api_client)
|
7887
|
+
|
7888
|
+
data, status_code, headers = @api_client.call_api(
|
7889
|
+
request_data[:'method'],
|
7890
|
+
request_data[:'path'],
|
7891
|
+
header_params: request_data[:'header_params'],
|
7892
|
+
query_params: request_data[:'query_params'],
|
7893
|
+
body: request_data[:'body'],
|
7894
|
+
return_type: 'SignatureCollectionResponse')
|
7895
|
+
if @api_client.config.debugging
|
7896
|
+
@api_client.config.logger.debug "API called:
|
7897
|
+
WordsApi#get_signatures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7898
|
+
end
|
7899
|
+
|
7900
|
+
[data, status_code, headers]
|
7901
|
+
end
|
7902
|
+
|
7903
|
+
# Gets signatures from the document.
|
7904
|
+
# @param request GetSignaturesOnlineRequest
|
7905
|
+
# @return [SignatureCollectionResponse]
|
7906
|
+
def get_signatures_online(request)
|
7907
|
+
begin
|
7908
|
+
data, _status_code, _headers = get_signatures_online_with_http_info(request)
|
7909
|
+
rescue ApiError => e
|
7910
|
+
if e.code == 401
|
7911
|
+
request_token
|
7912
|
+
data, _status_code, _headers = get_signatures_online_with_http_info(request)
|
7913
|
+
else
|
7914
|
+
raise
|
7915
|
+
end
|
7916
|
+
end
|
7917
|
+
data
|
7918
|
+
end
|
7919
|
+
|
7920
|
+
# Gets signatures from the document.
|
7921
|
+
# @param request GetSignaturesOnlineRequest
|
7922
|
+
# @return [Array<(SignatureCollectionResponse, Fixnum, Hash)>]
|
7923
|
+
# SignatureCollectionResponse, response status code and response headers
|
7924
|
+
private def get_signatures_online_with_http_info(request)
|
7925
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetSignaturesOnlineRequest
|
7926
|
+
|
7927
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.get_signatures_online ...' if @api_client.config.debugging
|
7928
|
+
request_data = request.create_http_request(@api_client)
|
7929
|
+
|
7930
|
+
data, status_code, headers = @api_client.call_api(
|
7931
|
+
request_data[:'method'],
|
7932
|
+
request_data[:'path'],
|
7933
|
+
header_params: request_data[:'header_params'],
|
7934
|
+
query_params: request_data[:'query_params'],
|
7935
|
+
body: request_data[:'body'],
|
7936
|
+
return_type: 'SignatureCollectionResponse')
|
7937
|
+
if @api_client.config.debugging
|
7938
|
+
@api_client.config.logger.debug "API called:
|
7939
|
+
WordsApi#get_signatures_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7940
|
+
end
|
7941
|
+
|
7942
|
+
[data, status_code, headers]
|
7943
|
+
end
|
7944
|
+
|
7861
7945
|
# Reads a StructuredDocumentTag (SDT) from the document node.
|
7862
7946
|
# @param request GetStructuredDocumentTagRequest
|
7863
7947
|
# @return [StructuredDocumentTagResponse]
|
@@ -11311,6 +11395,94 @@ module AsposeWordsCloud
|
|
11311
11395
|
[mp_data, status_code, headers]
|
11312
11396
|
end
|
11313
11397
|
|
11398
|
+
# Removes all signatures of the document.
|
11399
|
+
# @param request RemoveAllSignaturesRequest
|
11400
|
+
# @return [SignatureCollectionResponse]
|
11401
|
+
def remove_all_signatures(request)
|
11402
|
+
begin
|
11403
|
+
data, _status_code, _headers = remove_all_signatures_with_http_info(request)
|
11404
|
+
rescue ApiError => e
|
11405
|
+
if e.code == 401
|
11406
|
+
request_token
|
11407
|
+
data, _status_code, _headers = remove_all_signatures_with_http_info(request)
|
11408
|
+
else
|
11409
|
+
raise
|
11410
|
+
end
|
11411
|
+
end
|
11412
|
+
data
|
11413
|
+
end
|
11414
|
+
|
11415
|
+
# Removes all signatures of the document.
|
11416
|
+
# @param request RemoveAllSignaturesRequest
|
11417
|
+
# @return [Array<(SignatureCollectionResponse, Fixnum, Hash)>]
|
11418
|
+
# SignatureCollectionResponse, response status code and response headers
|
11419
|
+
private def remove_all_signatures_with_http_info(request)
|
11420
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? RemoveAllSignaturesRequest
|
11421
|
+
|
11422
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.remove_all_signatures ...' if @api_client.config.debugging
|
11423
|
+
request_data = request.create_http_request(@api_client)
|
11424
|
+
|
11425
|
+
data, status_code, headers = @api_client.call_api(
|
11426
|
+
request_data[:'method'],
|
11427
|
+
request_data[:'path'],
|
11428
|
+
header_params: request_data[:'header_params'],
|
11429
|
+
query_params: request_data[:'query_params'],
|
11430
|
+
body: request_data[:'body'],
|
11431
|
+
return_type: 'SignatureCollectionResponse')
|
11432
|
+
if @api_client.config.debugging
|
11433
|
+
@api_client.config.logger.debug "API called:
|
11434
|
+
WordsApi#remove_all_signatures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11435
|
+
end
|
11436
|
+
|
11437
|
+
[data, status_code, headers]
|
11438
|
+
end
|
11439
|
+
|
11440
|
+
# Removes all signatures of the document.
|
11441
|
+
# @param request RemoveAllSignaturesOnlineRequest
|
11442
|
+
# @return [RemoveAllSignaturesOnlineResponse]
|
11443
|
+
def remove_all_signatures_online(request)
|
11444
|
+
begin
|
11445
|
+
data, _status_code, _headers = remove_all_signatures_online_with_http_info(request)
|
11446
|
+
rescue ApiError => e
|
11447
|
+
if e.code == 401
|
11448
|
+
request_token
|
11449
|
+
data, _status_code, _headers = remove_all_signatures_online_with_http_info(request)
|
11450
|
+
else
|
11451
|
+
raise
|
11452
|
+
end
|
11453
|
+
end
|
11454
|
+
data
|
11455
|
+
end
|
11456
|
+
|
11457
|
+
# Removes all signatures of the document.
|
11458
|
+
# @param request RemoveAllSignaturesOnlineRequest
|
11459
|
+
# @return [Array<(RemoveAllSignaturesOnlineResponse, Fixnum, Hash)>]
|
11460
|
+
# RemoveAllSignaturesOnlineResponse, response status code and response headers
|
11461
|
+
private def remove_all_signatures_online_with_http_info(request)
|
11462
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? RemoveAllSignaturesOnlineRequest
|
11463
|
+
|
11464
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.remove_all_signatures_online ...' if @api_client.config.debugging
|
11465
|
+
request_data = request.create_http_request(@api_client)
|
11466
|
+
|
11467
|
+
data, status_code, headers = @api_client.call_api(
|
11468
|
+
request_data[:'method'],
|
11469
|
+
request_data[:'path'],
|
11470
|
+
header_params: request_data[:'header_params'],
|
11471
|
+
query_params: request_data[:'query_params'],
|
11472
|
+
body: request_data[:'body'],
|
11473
|
+
multipart_response: true,
|
11474
|
+
return_type: 'RemoveAllSignaturesOnlineResponse')
|
11475
|
+
if @api_client.config.debugging
|
11476
|
+
@api_client.config.logger.debug "API called:
|
11477
|
+
WordsApi#remove_all_signatures_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
11478
|
+
end
|
11479
|
+
|
11480
|
+
mp_data = RemoveAllSignaturesOnlineResponse.new()
|
11481
|
+
mp_data.model = @api_client.deserialize(data['Model'][:data], data['Model'][:headers], 'SignatureCollectionResponse')
|
11482
|
+
mp_data.document = @api_client.parse_files_collection(data['Document'][:data], data['Document'][:headers])
|
11483
|
+
[mp_data, status_code, headers]
|
11484
|
+
end
|
11485
|
+
|
11314
11486
|
# Removes a range from the document.
|
11315
11487
|
# @param request RemoveRangeRequest
|
11316
11488
|
# @return [DocumentResponse]
|
@@ -12386,6 +12558,94 @@ module AsposeWordsCloud
|
|
12386
12558
|
[data, status_code, headers]
|
12387
12559
|
end
|
12388
12560
|
|
12561
|
+
# Signs the document with given certificate.
|
12562
|
+
# @param request SignDocumentRequest
|
12563
|
+
# @return [SignatureCollectionResponse]
|
12564
|
+
def sign_document(request)
|
12565
|
+
begin
|
12566
|
+
data, _status_code, _headers = sign_document_with_http_info(request)
|
12567
|
+
rescue ApiError => e
|
12568
|
+
if e.code == 401
|
12569
|
+
request_token
|
12570
|
+
data, _status_code, _headers = sign_document_with_http_info(request)
|
12571
|
+
else
|
12572
|
+
raise
|
12573
|
+
end
|
12574
|
+
end
|
12575
|
+
data
|
12576
|
+
end
|
12577
|
+
|
12578
|
+
# Signs the document with given certificate.
|
12579
|
+
# @param request SignDocumentRequest
|
12580
|
+
# @return [Array<(SignatureCollectionResponse, Fixnum, Hash)>]
|
12581
|
+
# SignatureCollectionResponse, response status code and response headers
|
12582
|
+
private def sign_document_with_http_info(request)
|
12583
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? SignDocumentRequest
|
12584
|
+
|
12585
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.sign_document ...' if @api_client.config.debugging
|
12586
|
+
request_data = request.create_http_request(@api_client)
|
12587
|
+
|
12588
|
+
data, status_code, headers = @api_client.call_api(
|
12589
|
+
request_data[:'method'],
|
12590
|
+
request_data[:'path'],
|
12591
|
+
header_params: request_data[:'header_params'],
|
12592
|
+
query_params: request_data[:'query_params'],
|
12593
|
+
body: request_data[:'body'],
|
12594
|
+
return_type: 'SignatureCollectionResponse')
|
12595
|
+
if @api_client.config.debugging
|
12596
|
+
@api_client.config.logger.debug "API called:
|
12597
|
+
WordsApi#sign_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12598
|
+
end
|
12599
|
+
|
12600
|
+
[data, status_code, headers]
|
12601
|
+
end
|
12602
|
+
|
12603
|
+
# Signs the document with given certificate.
|
12604
|
+
# @param request SignDocumentOnlineRequest
|
12605
|
+
# @return [SignDocumentOnlineResponse]
|
12606
|
+
def sign_document_online(request)
|
12607
|
+
begin
|
12608
|
+
data, _status_code, _headers = sign_document_online_with_http_info(request)
|
12609
|
+
rescue ApiError => e
|
12610
|
+
if e.code == 401
|
12611
|
+
request_token
|
12612
|
+
data, _status_code, _headers = sign_document_online_with_http_info(request)
|
12613
|
+
else
|
12614
|
+
raise
|
12615
|
+
end
|
12616
|
+
end
|
12617
|
+
data
|
12618
|
+
end
|
12619
|
+
|
12620
|
+
# Signs the document with given certificate.
|
12621
|
+
# @param request SignDocumentOnlineRequest
|
12622
|
+
# @return [Array<(SignDocumentOnlineResponse, Fixnum, Hash)>]
|
12623
|
+
# SignDocumentOnlineResponse, response status code and response headers
|
12624
|
+
private def sign_document_online_with_http_info(request)
|
12625
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? SignDocumentOnlineRequest
|
12626
|
+
|
12627
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.sign_document_online ...' if @api_client.config.debugging
|
12628
|
+
request_data = request.create_http_request(@api_client)
|
12629
|
+
|
12630
|
+
data, status_code, headers = @api_client.call_api(
|
12631
|
+
request_data[:'method'],
|
12632
|
+
request_data[:'path'],
|
12633
|
+
header_params: request_data[:'header_params'],
|
12634
|
+
query_params: request_data[:'query_params'],
|
12635
|
+
body: request_data[:'body'],
|
12636
|
+
multipart_response: true,
|
12637
|
+
return_type: 'SignDocumentOnlineResponse')
|
12638
|
+
if @api_client.config.debugging
|
12639
|
+
@api_client.config.logger.debug "API called:
|
12640
|
+
WordsApi#sign_document_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
12641
|
+
end
|
12642
|
+
|
12643
|
+
mp_data = SignDocumentOnlineResponse.new()
|
12644
|
+
mp_data.model = @api_client.deserialize(data['Model'][:data], data['Model'][:headers], 'SignatureCollectionResponse')
|
12645
|
+
mp_data.document = @api_client.parse_files_collection(data['Document'][:data], data['Document'][:headers])
|
12646
|
+
[mp_data, status_code, headers]
|
12647
|
+
end
|
12648
|
+
|
12389
12649
|
# Splits a document into parts and saves them in the specified format.
|
12390
12650
|
# @param request SplitDocumentRequest
|
12391
12651
|
# @return [SplitDocumentResponse]
|
@@ -192,6 +192,13 @@ module AsposeWordsCloud
|
|
192
192
|
# Gets or sets a value indicating whether to use pretty formats output.
|
193
193
|
attr_accessor :pretty_format
|
194
194
|
|
195
|
+
# Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
|
196
|
+
# Default value is false.
|
197
|
+
# By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
|
198
|
+
# generated HTML documents. However, previous versions of Aspose.Words performed such replacements in certain
|
199
|
+
# scenarios. This flag enables backward compatibility with previous versions of Aspose.Words.
|
200
|
+
attr_accessor :replace_backslash_with_yen_sign
|
201
|
+
|
195
202
|
# Gets or sets a value indicating whether font family names used in the document are resolved and substituted according to FontSettings when being written into HTML-based formats.
|
196
203
|
# The default value is false.
|
197
204
|
attr_accessor :resolve_font_names
|
@@ -284,6 +291,7 @@ module AsposeWordsCloud
|
|
284
291
|
:'metafile_format' => :'MetafileFormat',
|
285
292
|
:'office_math_output_mode' => :'OfficeMathOutputMode',
|
286
293
|
:'pretty_format' => :'PrettyFormat',
|
294
|
+
:'replace_backslash_with_yen_sign' => :'ReplaceBackslashWithYenSign',
|
287
295
|
:'resolve_font_names' => :'ResolveFontNames',
|
288
296
|
:'resource_folder' => :'ResourceFolder',
|
289
297
|
:'resource_folder_alias' => :'ResourceFolderAlias',
|
@@ -342,6 +350,7 @@ module AsposeWordsCloud
|
|
342
350
|
:'metafile_format' => :'String',
|
343
351
|
:'office_math_output_mode' => :'String',
|
344
352
|
:'pretty_format' => :'BOOLEAN',
|
353
|
+
:'replace_backslash_with_yen_sign' => :'BOOLEAN',
|
345
354
|
:'resolve_font_names' => :'BOOLEAN',
|
346
355
|
:'resource_folder' => :'String',
|
347
356
|
:'resource_folder_alias' => :'String',
|
@@ -542,6 +551,10 @@ module AsposeWordsCloud
|
|
542
551
|
self.pretty_format = attributes[:'PrettyFormat']
|
543
552
|
end
|
544
553
|
|
554
|
+
if attributes.key?(:'ReplaceBackslashWithYenSign')
|
555
|
+
self.replace_backslash_with_yen_sign = attributes[:'ReplaceBackslashWithYenSign']
|
556
|
+
end
|
557
|
+
|
545
558
|
if attributes.key?(:'ResolveFontNames')
|
546
559
|
self.resolve_font_names = attributes[:'ResolveFontNames']
|
547
560
|
end
|
@@ -817,6 +830,7 @@ module AsposeWordsCloud
|
|
817
830
|
metafile_format == other.metafile_format &&
|
818
831
|
office_math_output_mode == other.office_math_output_mode &&
|
819
832
|
pretty_format == other.pretty_format &&
|
833
|
+
replace_backslash_with_yen_sign == other.replace_backslash_with_yen_sign &&
|
820
834
|
resolve_font_names == other.resolve_font_names &&
|
821
835
|
resource_folder == other.resource_folder &&
|
822
836
|
resource_folder_alias == other.resource_folder_alias &&
|
@@ -835,7 +849,7 @@ module AsposeWordsCloud
|
|
835
849
|
# Calculates hash code according to all attributes.
|
836
850
|
# @return [Fixnum] Hash code
|
837
851
|
def hash
|
838
|
-
[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, 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, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, navigation_map_level, save_format].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_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
|
839
853
|
end
|
840
854
|
|
841
855
|
# Builds the object from hash
|
@@ -0,0 +1,218 @@
|
|
1
|
+
# ------------------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="digital_signature_details.rb">
|
3
|
+
# Copyright (c) 2024 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
|
+
require 'date'
|
27
|
+
|
28
|
+
module AsposeWordsCloud
|
29
|
+
|
30
|
+
# Container class for details of digital signature.
|
31
|
+
class DigitalSignatureDetails
|
32
|
+
# Gets or sets the certificate's filename using for signing.
|
33
|
+
attr_accessor :certificate_filename
|
34
|
+
|
35
|
+
# Gets or sets signing options.
|
36
|
+
attr_accessor :sign_options
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'certificate_filename' => :'CertificateFilename',
|
41
|
+
:'sign_options' => :'SignOptions'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'certificate_filename' => :'String',
|
49
|
+
:'sign_options' => :'SignOptions'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
return unless attributes.is_a?(Hash)
|
57
|
+
|
58
|
+
# convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
60
|
+
|
61
|
+
if attributes.key?(:'CertificateFilename')
|
62
|
+
self.certificate_filename = attributes[:'CertificateFilename']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.key?(:'SignOptions')
|
66
|
+
self.sign_options = attributes[:'SignOptions']
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Check to see if the all the properties in the model are valid
|
71
|
+
# @return true if the model is valid
|
72
|
+
def valid?
|
73
|
+
return true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Checks equality by comparing each attribute.
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def ==(other)
|
79
|
+
return true if self.equal?(other)
|
80
|
+
self.class == other.class &&
|
81
|
+
certificate_filename == other.certificate_filename &&
|
82
|
+
sign_options == other.sign_options
|
83
|
+
end
|
84
|
+
|
85
|
+
# @see the `==` method
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def eql?(other)
|
88
|
+
self == other
|
89
|
+
end
|
90
|
+
|
91
|
+
# Calculates hash code according to all attributes.
|
92
|
+
# @return [Fixnum] Hash code
|
93
|
+
def hash
|
94
|
+
[certificate_filename, sign_options].hash
|
95
|
+
end
|
96
|
+
|
97
|
+
# Builds the object from hash
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
+
# @return [Object] Returns the model itself
|
100
|
+
def build_from_hash(attributes)
|
101
|
+
return nil unless attributes.is_a?(Hash)
|
102
|
+
self.class.swagger_types.each_pair do |key, type|
|
103
|
+
if type =~ /\AArray<(.*)>/i
|
104
|
+
# check to ensure the input is an array given that the the attribute
|
105
|
+
# is documented as an array but the input is not
|
106
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
108
|
+
end
|
109
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
111
|
+
end
|
112
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
113
|
+
end
|
114
|
+
|
115
|
+
self
|
116
|
+
end
|
117
|
+
|
118
|
+
# Deserializes the data based on type
|
119
|
+
# @param string type Data type
|
120
|
+
# @param string value Value to be deserialized
|
121
|
+
# @return [Object] Deserialized data
|
122
|
+
def _deserialize(type, value)
|
123
|
+
case type.to_sym
|
124
|
+
when :DateTime
|
125
|
+
Time.at(/\d/.match(value)[0].to_f).to_datetime
|
126
|
+
when :Date
|
127
|
+
Time.at(/\d/.match(value)[0].to_f).to_date
|
128
|
+
when :String
|
129
|
+
value.to_s
|
130
|
+
when :Integer
|
131
|
+
value.to_i
|
132
|
+
when :Float
|
133
|
+
value.to_f
|
134
|
+
when :BOOLEAN
|
135
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
136
|
+
true
|
137
|
+
else
|
138
|
+
false
|
139
|
+
end
|
140
|
+
when :Object
|
141
|
+
# generic object (usually a Hash), return directly
|
142
|
+
value
|
143
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
144
|
+
inner_type = Regexp.last_match[:inner_type]
|
145
|
+
value.map { |v| _deserialize(inner_type, v) }
|
146
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
147
|
+
k_type = Regexp.last_match[:k_type]
|
148
|
+
v_type = Regexp.last_match[:v_type]
|
149
|
+
{}.tap do |hash|
|
150
|
+
value.each do |k, v|
|
151
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
else
|
155
|
+
# model
|
156
|
+
if value[:'$type']
|
157
|
+
type = value[:'$type'][0..-4]
|
158
|
+
end
|
159
|
+
|
160
|
+
temp_model = AsposeWordsCloud.const_get(type).new
|
161
|
+
temp_model.build_from_hash(value)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# Returns the string representation of the object
|
166
|
+
# @return [String] String presentation of the object
|
167
|
+
def to_s
|
168
|
+
to_hash.to_s
|
169
|
+
end
|
170
|
+
|
171
|
+
# to_body is an alias to to_hash (backward compatibility)
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_body
|
174
|
+
to_hash
|
175
|
+
end
|
176
|
+
|
177
|
+
# Returns the object in the form of hash
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_hash
|
180
|
+
hash = {}
|
181
|
+
self.class.attribute_map.each_pair do |attr, param|
|
182
|
+
value = self.send(attr)
|
183
|
+
next if value.nil?
|
184
|
+
hash[param] = _to_hash(value)
|
185
|
+
end
|
186
|
+
hash
|
187
|
+
end
|
188
|
+
|
189
|
+
# Outputs non-array value in the form of hash
|
190
|
+
# For object, use to_hash. Otherwise, just return the value
|
191
|
+
# @param [Object] value Any valid value
|
192
|
+
# @return [Hash] Returns the value in the form of hash
|
193
|
+
def _to_hash(value)
|
194
|
+
if value.is_a?(Array)
|
195
|
+
value.compact.map { |v| _to_hash(v) }
|
196
|
+
elsif value.is_a?(Hash)
|
197
|
+
{}.tap do |hash|
|
198
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
199
|
+
end
|
200
|
+
elsif value.respond_to? :to_hash
|
201
|
+
value.to_hash
|
202
|
+
else
|
203
|
+
value
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
def collectFilesContent(resultFilesContent)
|
208
|
+
end
|
209
|
+
|
210
|
+
def validate()
|
211
|
+
unless self.sign_options.nil?
|
212
|
+
self.sign_options.validate
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
end
|
@@ -192,6 +192,13 @@ module AsposeWordsCloud
|
|
192
192
|
# Gets or sets a value indicating whether to use pretty formats output.
|
193
193
|
attr_accessor :pretty_format
|
194
194
|
|
195
|
+
# Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
|
196
|
+
# Default value is false.
|
197
|
+
# By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
|
198
|
+
# generated HTML documents. However, previous versions of Aspose.Words performed such replacements in certain
|
199
|
+
# scenarios. This flag enables backward compatibility with previous versions of Aspose.Words.
|
200
|
+
attr_accessor :replace_backslash_with_yen_sign
|
201
|
+
|
195
202
|
# Gets or sets a value indicating whether font family names used in the document are resolved and substituted according to FontSettings when being written into HTML-based formats.
|
196
203
|
# The default value is false.
|
197
204
|
attr_accessor :resolve_font_names
|
@@ -284,6 +291,7 @@ module AsposeWordsCloud
|
|
284
291
|
:'metafile_format' => :'MetafileFormat',
|
285
292
|
:'office_math_output_mode' => :'OfficeMathOutputMode',
|
286
293
|
:'pretty_format' => :'PrettyFormat',
|
294
|
+
:'replace_backslash_with_yen_sign' => :'ReplaceBackslashWithYenSign',
|
287
295
|
:'resolve_font_names' => :'ResolveFontNames',
|
288
296
|
:'resource_folder' => :'ResourceFolder',
|
289
297
|
:'resource_folder_alias' => :'ResourceFolderAlias',
|
@@ -342,6 +350,7 @@ module AsposeWordsCloud
|
|
342
350
|
:'metafile_format' => :'String',
|
343
351
|
:'office_math_output_mode' => :'String',
|
344
352
|
:'pretty_format' => :'BOOLEAN',
|
353
|
+
:'replace_backslash_with_yen_sign' => :'BOOLEAN',
|
345
354
|
:'resolve_font_names' => :'BOOLEAN',
|
346
355
|
:'resource_folder' => :'String',
|
347
356
|
:'resource_folder_alias' => :'String',
|
@@ -542,6 +551,10 @@ module AsposeWordsCloud
|
|
542
551
|
self.pretty_format = attributes[:'PrettyFormat']
|
543
552
|
end
|
544
553
|
|
554
|
+
if attributes.key?(:'ReplaceBackslashWithYenSign')
|
555
|
+
self.replace_backslash_with_yen_sign = attributes[:'ReplaceBackslashWithYenSign']
|
556
|
+
end
|
557
|
+
|
545
558
|
if attributes.key?(:'ResolveFontNames')
|
546
559
|
self.resolve_font_names = attributes[:'ResolveFontNames']
|
547
560
|
end
|
@@ -817,6 +830,7 @@ module AsposeWordsCloud
|
|
817
830
|
metafile_format == other.metafile_format &&
|
818
831
|
office_math_output_mode == other.office_math_output_mode &&
|
819
832
|
pretty_format == other.pretty_format &&
|
833
|
+
replace_backslash_with_yen_sign == other.replace_backslash_with_yen_sign &&
|
820
834
|
resolve_font_names == other.resolve_font_names &&
|
821
835
|
resource_folder == other.resource_folder &&
|
822
836
|
resource_folder_alias == other.resource_folder_alias &&
|
@@ -835,7 +849,7 @@ module AsposeWordsCloud
|
|
835
849
|
# Calculates hash code according to all attributes.
|
836
850
|
# @return [Fixnum] Hash code
|
837
851
|
def hash
|
838
|
-
[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, 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, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, navigation_map_level, save_format].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_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
|
839
853
|
end
|
840
854
|
|
841
855
|
# Builds the object from hash
|