Last active
May 15, 2023 14:59
-
-
Save aspose-words-cloud-gists/339f3835a4c0a536c81ec941de29baf7 to your computer and use it in GitHub Desktop.
This gist exceeds the recommended number of files (~10).
To access all files, please clone this gist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Gist contains Ruby code samples for Aspose.Words Cloud API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
accept_request = AcceptAllRevisionsRequest.new(name: 'Sample.docx') | |
@words_api.accept_all_revisions(accept_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
accept_request = AcceptAllRevisionsOnlineRequest.new(document: request_document) | |
@words_api.accept_all_revisions_online(accept_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
remote_file_name= 'Sample.docx' | |
request_document_list_document_entries0_file_reference = AsposeWordsCloud::FileReference.fromRemoteFilePath(remote_file_name) | |
request_document_list_document_entries0 = DocumentEntry.new({:FileReference => request_document_list_document_entries0_file_reference, :ImportFormatMode => 'KeepSourceFormatting'}) | |
request_document_list_document_entries = [request_document_list_document_entries0] | |
request_document_list = DocumentEntryList.new({:DocumentEntries => request_document_list_document_entries}) | |
append_request = AppendDocumentRequest.new(name: remote_file_name, document_list: request_document_list) | |
@words_api.append_document(append_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
local_file= 'Sample.docx' | |
request_document = File.open(local_file) | |
request_document_list_document_entries0_file_referenceStream = File.open(File.join(local_test_folder, local_file)) | |
request_document_list_document_entries0_file_reference = AsposeWordsCloud::FileReference.fromLocalFileContent(request_document_list_document_entries0_file_referenceStream) | |
request_document_list_document_entries0 = DocumentEntry.new({:FileReference => request_document_list_document_entries0_file_reference, :ImportFormatMode => 'KeepSourceFormatting'}) | |
request_document_list_document_entries = [request_document_list_document_entries0] | |
request_document_list = DocumentEntryList.new({:DocumentEntries => request_document_list_document_entries}) | |
append_request = AppendDocumentOnlineRequest.new(document: request_document, document_list: request_document_list) | |
@words_api.append_document_online(append_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_style_apply = StyleApply.new({:StyleName => 'Heading 1'}) | |
apply_style_request = ApplyStyleToDocumentElementRequest.new(name: 'Sample.docx', styled_node_path: 'paragraphs/1/paragraphFormat', style_apply: request_style_apply) | |
@words_api.apply_style_to_document_element(apply_style_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_style_apply = StyleApply.new({:StyleName => 'Heading 1'}) | |
apply_style_request = ApplyStyleToDocumentElementOnlineRequest.new(document: request_document, styled_node_path: 'paragraphs/1/paragraphFormat', style_apply: request_style_apply) | |
@words_api.apply_style_to_document_element_online(apply_style_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_report_engine_settings_report_build_options = ['AllowMissingMembers', 'RemoveEmptyParagraphs'] | |
request_report_engine_settings = ReportEngineSettings.new({:DataSourceType => 'Json', :ReportBuildOptions => request_report_engine_settings_report_build_options}) | |
build_report_request = BuildReportRequest.new(name: 'Sample.docx', data: 'Data.json', report_engine_settings: request_report_engine_settings) | |
@words_api.build_report(build_report_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_template = File.open('Sample.docx') | |
request_report_engine_settings = ReportEngineSettings.new({:DataSourceType => 'Json', :DataSourceName => 'persons'}) | |
build_report_request = BuildReportOnlineRequest.new(template: request_template, data: 'Data.json', report_engine_settings: request_report_engine_settings) | |
@words_api.build_report_online(build_report_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
classify_request = ClassifyRequest.new(text: 'Try text classification', best_classes_count: '3') | |
@words_api.classify(classify_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
classify_request = ClassifyDocumentRequest.new(name: 'Sample.docx', best_classes_count: '3') | |
@words_api.classify_document(classify_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
classify_request = ClassifyDocumentOnlineRequest.new(document: request_document, best_classes_count: '3') | |
@words_api.classify_document_online(classify_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_compare_data = CompareData.new({:Author => 'author', :ComparingWithDocument => 'TestCompareDocument2.doc', :DateTime => Date.iso8601('2015-10-26T00:00:00.0000000Z')}) | |
compare_request = CompareDocumentRequest.new(name: 'TestCompareDocument1.doc', compare_data: request_compare_data, dest_file_name: 'CompareDocumentOut.doc') | |
@words_api.compare_document(compare_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('compareTestDoc1.doc') | |
request_compare_data = CompareData.new({:Author => 'author', :ComparingWithDocument => 'TestCompareDocument2.doc', :DateTime => Date.iso8601('2015-10-26T00:00:00.0000000Z')}) | |
request_comparing_document = File.open('compareTestDoc2.doc') | |
compare_request = CompareDocumentOnlineRequest.new(document: request_document, compare_data: request_compare_data, comparing_document: request_comparing_document, dest_file_name: 'CompareDocumentOut.doc') | |
@words_api.compare_document_online(compare_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_compress_options = CompressOptions.new({}) | |
compress_document = CompressDocumentRequest.new(name: 'Sample.docx', compress_options: request_compress_options) | |
@words_api.compress_document(compress_document) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('TestCompress.docx') | |
request_compress_options = CompressOptions.new({}) | |
compress_document_online = CompressDocumentOnlineRequest.new(document: request_document, compress_options: request_compress_options) | |
@words_api.compress_document_online(compress_document_online) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
convert_request = ConvertDocumentRequest.new(document: request_document, format: 'pdf') | |
@words_api.convert_document(convert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
convert_request = ConvertDocumentRequest.new(document: request_document, format: 'pdf') | |
@words_api.convert_document(convert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
convert_request = ConvertDocumentRequest.new(document: request_document, format: 'pdf') | |
@words_api.convert_document(convert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
copy_request = CopyFileRequest.new(dest_path: 'Copy.docx', src_path: 'Sample.docx') | |
@words_api.copy_file(copy_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
folder_to_copy= '/TestCopyFolder' | |
copy_request = CopyFolderRequest.new(dest_path: folder_to_copy + 'Dest', src_path: folder_to_copy + 'Src') | |
@words_api.copy_folder(copy_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_style_copy = StyleCopy.new({:StyleName => 'Heading 1'}) | |
copy_request = CopyStyleRequest.new(name: 'Sample.docx', style_copy: request_style_copy) | |
@words_api.copy_style(copy_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_style_copy = StyleCopy.new({:StyleName => 'Heading 1'}) | |
copy_request = CopyStyleOnlineRequest.new(document: request_document, style_copy: request_style_copy) | |
@words_api.copy_style_online(copy_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
copy_request = CopyStylesFromTemplateRequest.new(name: 'Sample.docx', template_name: 'StyleTemplate.docx') | |
@words_api.copy_styles_from_template(copy_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
create_request = CreateDocumentRequest.new(file_name: 'Sample.docx') | |
@words_api.create_document(create_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
create_request = CreateFolderRequest.new(path: '/TestCreateFolder') | |
@words_api.create_folder(create_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_property = DocumentPropertyCreateOrUpdate.new({:Value => 'John Doe'}) | |
create_request = CreateOrUpdateDocumentPropertyRequest.new(name: 'Sample.docx', property_name: 'AsposeAuthor', property: request_property) | |
@words_api.create_or_update_document_property(create_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_property = DocumentPropertyCreateOrUpdate.new({:Value => 'John Doe'}) | |
create_request = CreateOrUpdateDocumentPropertyOnlineRequest.new(document: request_document, property_name: 'AsposeAuthor', property: request_property) | |
@words_api.create_or_update_document_property_online(create_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteAllParagraphTabStopsRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.delete_all_paragraph_tab_stops(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteAllParagraphTabStopsOnlineRequest.new(document: request_document, index: 0) | |
@words_api.delete_all_paragraph_tab_stops_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteBookmarkRequest.new(name: 'Sample.docx', bookmark_name: 'aspose') | |
@words_api.delete_bookmark(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteBookmarkOnlineRequest.new(document: request_document, bookmark_name: 'aspose') | |
@words_api.delete_bookmark_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteBookmarksRequest.new(name: 'Sample.docx') | |
@words_api.delete_bookmarks(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteBookmarksOnlineRequest.new(document: request_document) | |
@words_api.delete_bookmarks_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteBorderRequest.new(name: 'Sample.docx', border_type: 'left', node_path: 'tables/1/rows/0/cells/0') | |
@words_api.delete_border(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteBorderOnlineRequest.new(document: request_document, border_type: 'left', node_path: 'tables/1/rows/0/cells/0') | |
@words_api.delete_border_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteBordersRequest.new(name: 'Sample.docx', node_path: 'tables/1/rows/0/cells/0') | |
@words_api.delete_borders(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteBordersOnlineRequest.new(document: request_document, node_path: 'tables/1/rows/0/cells/0') | |
@words_api.delete_borders_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteCommentRequest.new(name: 'Sample.docx', comment_index: 0) | |
@words_api.delete_comment(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteCommentOnlineRequest.new(document: request_document, comment_index: 0) | |
@words_api.delete_comment_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteCommentsRequest.new(name: 'Sample.docx') | |
@words_api.delete_comments(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteCommentsOnlineRequest.new(document: request_document) | |
@words_api.delete_comments_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteCustomXmlPartRequest.new(name: 'Sample.docx', custom_xml_part_index: 0) | |
@words_api.delete_custom_xml_part(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteCustomXmlPartOnlineRequest.new(document: request_document, custom_xml_part_index: 0) | |
@words_api.delete_custom_xml_part_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteCustomXmlPartsRequest.new(name: 'Sample.docx') | |
@words_api.delete_custom_xml_parts(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteCustomXmlPartsOnlineRequest.new(document: request_document) | |
@words_api.delete_custom_xml_parts_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteDocumentPropertyRequest.new(name: 'Sample.docx', property_name: 'testProp') | |
@words_api.delete_document_property(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteDocumentPropertyOnlineRequest.new(document: request_document, property_name: 'testProp') | |
@words_api.delete_document_property_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteDrawingObjectRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.delete_drawing_object(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteDrawingObjectOnlineRequest.new(document: request_document, index: 0) | |
@words_api.delete_drawing_object_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteFieldRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.delete_field(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteFieldOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0/paragraphs/0') | |
@words_api.delete_field_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteFieldsRequest.new(name: 'Sample.docx') | |
@words_api.delete_fields(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteFieldsOnlineRequest.new(document: request_document) | |
@words_api.delete_fields_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteFileRequest.new(path: 'Sample.docx') | |
@words_api.delete_file(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteFolderRequest.new(path: '') | |
@words_api.delete_folder(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteFootnoteRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.delete_footnote(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
delete_request = DeleteFootnoteOnlineRequest.new(document: request_document, index: 0) | |
@words_api.delete_footnote_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteFormFieldRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.delete_form_field(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteFormFieldOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0') | |
@words_api.delete_form_field_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteMacrosRequest.new(name: 'Sample.docx') | |
@words_api.delete_macros(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteMacrosOnlineRequest.new(document: request_document) | |
@words_api.delete_macros_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteOfficeMathObjectRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.delete_office_math_object(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteOfficeMathObjectOnlineRequest.new(document: request_document, index: 0) | |
@words_api.delete_office_math_object_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteParagraphRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.delete_paragraph(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteParagraphListFormatRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.delete_paragraph_list_format(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
delete_request = DeleteParagraphListFormatOnlineRequest.new(document: request_document, index: 0) | |
@words_api.delete_paragraph_list_format_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteParagraphOnlineRequest.new(document: request_document, index: 0) | |
@words_api.delete_paragraph_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteParagraphTabStopRequest.new(name: 'Sample.docx', position: 72.0, index: 0) | |
@words_api.delete_paragraph_tab_stop(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteParagraphTabStopOnlineRequest.new(document: request_document, position: 72.0, index: 0) | |
@words_api.delete_paragraph_tab_stop_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteRunRequest.new(name: 'Sample.docx', paragraph_path: 'paragraphs/1', index: 0) | |
@words_api.delete_run(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
delete_request = DeleteRunOnlineRequest.new(document: request_document, paragraph_path: 'paragraphs/1', index: 0) | |
@words_api.delete_run_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteSectionRequest.new(name: 'Sample.docx', section_index: 0) | |
@words_api.delete_section(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteSectionOnlineRequest.new(document: request_document, section_index: 0) | |
@words_api.delete_section_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteStructuredDocumentTagRequest.new(name: 'Sample.docx', index: 0, node_path: 'sections/0/body/paragraphs/0') | |
@words_api.delete_structured_document_tag(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteStructuredDocumentTagOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0/body/paragraphs/0') | |
@words_api.delete_structured_document_tag_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteTableRequest.new(name: 'Sample.docx', index: 1) | |
@words_api.delete_table(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteTableCellRequest.new(name: 'Sample.docx', table_row_path: 'sections/0/tables/2/rows/0', index: 0) | |
@words_api.delete_table_cell(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteTableCellOnlineRequest.new(document: request_document, table_row_path: 'sections/0/tables/2/rows/0', index: 0) | |
@words_api.delete_table_cell_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteTableOnlineRequest.new(document: request_document, index: 1) | |
@words_api.delete_table_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteTableRowRequest.new(name: 'Sample.docx', table_path: 'tables/1', index: 0) | |
@words_api.delete_table_row(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteTableRowOnlineRequest.new(document: request_document, table_path: 'tables/1', index: 0) | |
@words_api.delete_table_row_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
delete_request = DeleteWatermarkRequest.new(name: 'Sample.docx') | |
@words_api.delete_watermark(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
delete_request = DeleteWatermarkOnlineRequest.new(document: request_document) | |
@words_api.delete_watermark_online(delete_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
download_request = DownloadFileRequest.new(path: 'Sample.docx') | |
@words_api.download_file(download_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_options_current_user = UserInformation.new({:Name => 'SdkTestUser'}) | |
request_options = FieldOptions.new({:CurrentUser => request_options_current_user}) | |
mail_merge_request = ExecuteMailMergeRequest.new(name: 'Sample.docx', data: File.read(File.join(local_test_folder, 'TestMailMergeData.xml')), options: request_options) | |
@words_api.execute_mail_merge(mail_merge_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
client_id = "####-####-####-####-####" | |
secret = "##################" | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = client_id | |
config.client_data['ClientSecret'] = secret | |
end | |
@words_api = WordsAPI.new | |
fileName = "template.doc" | |
destName = "Out_PostDocumentExecuteMailMergeWithHTMLData.docx" | |
data = File.new("TestPostDocumentExecuteMailMerge.txt", 'rb') | |
# Upload original document to Cloud Storage | |
@words_api.upload_file UploadFileRequest.new(File.new(fileName, 'rb'), fileName, nil) | |
request = ExecuteMailMergeRequest.new(fileName, data, nil, nil, nil, nil, nil, nil, nil, nil, destName) | |
result = @words_api.execute_mail_merge(request) | |
puts("Result " + (result).to_s) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
client_id = "####-####-####-####-####" | |
secret = "##################" | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = client_id | |
config.client_data['ClientSecret'] = secret | |
end | |
@words_api = WordsAPI.new | |
fileName = "SampleMailMergeTemplate.docx" | |
destName = "Out_SampleMailMergeTemplate.docx" | |
data = File.new("SampleMailMergeTemplateData.xml", 'rb') | |
# Upload original document to Cloud Storage | |
@words_api.upload_file UploadFileRequest.new(File.new(fileName, 'rb'), fileName, nil) | |
request = ExecuteMailMergeRequest.new(fileName, data, nil, nil, nil, nil, nil, nil, nil, nil, destName) | |
result = @words_api.execute_mail_merge(request) | |
puts("Result " + (result).to_s) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_template = File.open('Sample.docx') | |
request_data = File.open(File.read(File.join(local_test_folder, 'TestMailMergeData.xml'))) | |
request_options_current_user = UserInformation.new({:Name => 'SdkTestUser'}) | |
request_options = FieldOptions.new({:CurrentUser => request_options_current_user}) | |
mail_merge_request = ExecuteMailMergeOnlineRequest.new(template: request_template, data: request_data, options: request_options) | |
@words_api.execute_mail_merge_online(mail_merge_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_template = File.open('TestMailMergeWithImages.doc') | |
request_data = File.open('MailMergeData.json') | |
mail_merge_request = ExecuteMailMergeOnlineRequest.new(template: request_template, data: request_data, document_file_name: 'Out_TestMailMergeWithImages.doc') | |
@words_api.execute_mail_merge_online(mail_merge_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_template = File.open('template.doc') | |
request_data = File.open('TestPostDocumentExecuteMailMerge.txt') | |
mail_merge_request = ExecuteMailMergeOnlineRequest.new(template: request_template, data: request_data, document_file_name: 'Out_PostDocumentExecuteMailMergeWithHTMLData.docx') | |
@words_api.execute_mail_merge_online(mail_merge_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_template = File.open('SampleMailMergeTemplate.docx') | |
request_data = File.open('SampleMailMergeTemplateData.xml') | |
mail_merge_request = ExecuteMailMergeOnlineRequest.new(template: request_template, data: request_data, document_file_name: 'Out_SampleMailMergeTemplate.docx') | |
@words_api.execute_mail_merge_online(mail_merge_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetAvailableFontsRequest.new() | |
@words_api.get_available_fonts(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetBookmarkByNameRequest.new(name: 'Sample.docx', bookmark_name: 'aspose') | |
@words_api.get_bookmark_by_name(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetBookmarkByNameOnlineRequest.new(document: request_document, bookmark_name: 'aspose') | |
@words_api.get_bookmark_by_name_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetBookmarksRequest.new(name: 'Sample.docx') | |
@words_api.get_bookmarks(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetBookmarksOnlineRequest.new(document: request_document) | |
@words_api.get_bookmarks_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetBorderRequest.new(name: 'Sample.docx', border_type: 'left', node_path: 'tables/1/rows/0/cells/0') | |
@words_api.get_border(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetBorderOnlineRequest.new(document: request_document, border_type: 'left', node_path: 'tables/1/rows/0/cells/0') | |
@words_api.get_border_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetBordersRequest.new(name: 'Sample.docx', node_path: 'tables/1/rows/0/cells/0') | |
@words_api.get_borders(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetBordersOnlineRequest.new(document: request_document, node_path: 'tables/1/rows/0/cells/0') | |
@words_api.get_borders_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetCommentRequest.new(name: 'Sample.docx', comment_index: 0) | |
@words_api.get_comment(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetCommentOnlineRequest.new(document: request_document, comment_index: 0) | |
@words_api.get_comment_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetCommentsRequest.new(name: 'Sample.docx') | |
@words_api.get_comments(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetCommentsOnlineRequest.new(document: request_document) | |
@words_api.get_comments_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetCustomXmlPartRequest.new(name: 'Sample.docx', custom_xml_part_index: 0) | |
@words_api.get_custom_xml_part(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetCustomXmlPartOnlineRequest.new(document: request_document, custom_xml_part_index: 0) | |
@words_api.get_custom_xml_part_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetCustomXmlPartsRequest.new(name: 'Sample.docx') | |
@words_api.get_custom_xml_parts(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetCustomXmlPartsOnlineRequest.new(document: request_document) | |
@words_api.get_custom_xml_parts_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentRequest.new(document_name: 'Sample.docx') | |
@words_api.get_document(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentDrawingObjectByIndexRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_document_drawing_object_by_index(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentDrawingObjectByIndexOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0') | |
@words_api.get_document_drawing_object_by_index_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentDrawingObjectImageDataRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_document_drawing_object_image_data(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentDrawingObjectImageDataOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0') | |
@words_api.get_document_drawing_object_image_data_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentDrawingObjectOleDataRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_document_drawing_object_ole_data(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentDrawingObjectOleDataOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0') | |
@words_api.get_document_drawing_object_ole_data_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentDrawingObjectsRequest.new(name: 'Sample.docx') | |
@words_api.get_document_drawing_objects(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentDrawingObjectsOnlineRequest.new(document: request_document, node_path: 'sections/0') | |
@words_api.get_document_drawing_objects_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentFieldNamesRequest.new(name: 'Sample.docx') | |
@words_api.get_document_field_names(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_template = File.open('Sample.docx') | |
request = GetDocumentFieldNamesOnlineRequest.new(template: request_template, use_non_merge_fields: true) | |
@words_api.get_document_field_names_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentHyperlinkByIndexRequest.new(name: 'Sample.docx', hyperlink_index: 0) | |
@words_api.get_document_hyperlink_by_index(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentHyperlinkByIndexOnlineRequest.new(document: request_document, hyperlink_index: 0) | |
@words_api.get_document_hyperlink_by_index_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentHyperlinksRequest.new(name: 'Sample.docx') | |
@words_api.get_document_hyperlinks(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentHyperlinksOnlineRequest.new(document: request_document) | |
@words_api.get_document_hyperlinks_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentPropertiesRequest.new(name: 'Sample.docx') | |
@words_api.get_document_properties(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentPropertiesOnlineRequest.new(document: request_document) | |
@words_api.get_document_properties_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentPropertyRequest.new(name: 'Sample.docx', property_name: 'Author') | |
@words_api.get_document_property(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentPropertyOnlineRequest.new(document: request_document, property_name: 'Author') | |
@words_api.get_document_property_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentProtectionRequest.new(name: 'Sample.docx') | |
@words_api.get_document_protection(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentProtectionOnlineRequest.new(document: request_document) | |
@words_api.get_document_protection_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentStatisticsRequest.new(name: 'Sample.docx') | |
@words_api.get_document_statistics(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetDocumentStatisticsOnlineRequest.new(document: request_document) | |
@words_api.get_document_statistics_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetDocumentWithFormatRequest.new(name: 'Sample.docx', format: 'text', out_path: 'DocumentWithFormat.text') | |
@words_api.get_document_with_format(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetFieldRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_field(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetFieldOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0/paragraphs/0') | |
@words_api.get_field_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetFieldsRequest.new(name: 'Sample.docx') | |
@words_api.get_fields(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetFieldsOnlineRequest.new(document: request_document, node_path: 'sections/0') | |
@words_api.get_fields_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetFilesListRequest.new(path: '') | |
@words_api.get_files_list(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetFootnoteRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_footnote(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request = GetFootnoteOnlineRequest.new(document: request_document, index: 0) | |
@words_api.get_footnote_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetFootnotesRequest.new(name: 'Sample.docx') | |
@words_api.get_footnotes(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request = GetFootnotesOnlineRequest.new(document: request_document) | |
@words_api.get_footnotes_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetFormFieldRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_form_field(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetFormFieldOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0') | |
@words_api.get_form_field_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetFormFieldsRequest.new(name: 'Sample.docx') | |
@words_api.get_form_fields(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetFormFieldsOnlineRequest.new(document: request_document, node_path: 'sections/0') | |
@words_api.get_form_fields_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetInfoRequest.new() | |
@words_api.get_info(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetListRequest.new(name: 'TestGetLists.doc', list_id: 1) | |
@words_api.get_list(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request = GetListOnlineRequest.new(document: request_document, list_id: 1) | |
@words_api.get_list_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetListsRequest.new(name: 'TestGetLists.doc') | |
@words_api.get_lists(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request = GetListsOnlineRequest.new(document: request_document) | |
@words_api.get_lists_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetOfficeMathObjectRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_office_math_object(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetOfficeMathObjectOnlineRequest.new(document: request_document, index: 0) | |
@words_api.get_office_math_object_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetOfficeMathObjectsRequest.new(name: 'Sample.docx') | |
@words_api.get_office_math_objects(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetOfficeMathObjectsOnlineRequest.new(document: request_document) | |
@words_api.get_office_math_objects_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetParagraphRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_paragraph(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetParagraphFormatRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_paragraph_format(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetParagraphFormatOnlineRequest.new(document: request_document, index: 0) | |
@words_api.get_paragraph_format_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetParagraphListFormatRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_paragraph_list_format(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request = GetParagraphListFormatOnlineRequest.new(document: request_document, index: 0) | |
@words_api.get_paragraph_list_format_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetParagraphOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0') | |
@words_api.get_paragraph_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetParagraphsRequest.new(name: 'Sample.docx') | |
@words_api.get_paragraphs(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetParagraphsOnlineRequest.new(document: request_document, node_path: 'sections/0') | |
@words_api.get_paragraphs_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetParagraphTabStopsRequest.new(name: 'Sample.docx', index: 0) | |
@words_api.get_paragraph_tab_stops(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetParagraphTabStopsOnlineRequest.new(document: request_document, index: 0) | |
@words_api.get_paragraph_tab_stops_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetPublicKeyRequest.new() | |
@words_api.get_public_key(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetRangeTextRequest.new(name: 'Sample.docx', range_start_identifier: 'id0.0.0', range_end_identifier: 'id0.0.1') | |
@words_api.get_range_text(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request = GetRangeTextOnlineRequest.new(document: request_document, range_start_identifier: 'id0.0.0', range_end_identifier: 'id0.0.1') | |
@words_api.get_range_text_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetRunRequest.new(name: 'Sample.docx', paragraph_path: 'paragraphs/0', index: 0) | |
@words_api.get_run(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetRunFontRequest.new(name: 'Sample.docx', paragraph_path: 'paragraphs/0', index: 0) | |
@words_api.get_run_font(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetRunFontOnlineRequest.new(document: request_document, paragraph_path: 'paragraphs/0', index: 0) | |
@words_api.get_run_font_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetRunOnlineRequest.new(document: request_document, paragraph_path: 'paragraphs/0', index: 0) | |
@words_api.get_run_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetRunsRequest.new(name: 'Sample.docx', paragraph_path: 'sections/0/paragraphs/0') | |
@words_api.get_runs(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetRunsOnlineRequest.new(document: request_document, paragraph_path: 'sections/0/paragraphs/0') | |
@words_api.get_runs_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetSectionRequest.new(name: 'Sample.docx', section_index: 0) | |
@words_api.get_section(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetSectionOnlineRequest.new(document: request_document, section_index: 0) | |
@words_api.get_section_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetSectionPageSetupRequest.new(name: 'Sample.docx', section_index: 0) | |
@words_api.get_section_page_setup(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetSectionPageSetupOnlineRequest.new(document: request_document, section_index: 0) | |
@words_api.get_section_page_setup_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetSectionsRequest.new(name: 'Sample.docx') | |
@words_api.get_sections(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetSectionsOnlineRequest.new(document: request_document) | |
@words_api.get_sections_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetStructuredDocumentTagRequest.new(name: 'Sample.docx', index: 0, node_path: 'sections/0/body/paragraphs/0') | |
@words_api.get_structured_document_tag(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetStructuredDocumentTagOnlineRequest.new(document: request_document, index: 0, node_path: 'sections/0/body/paragraphs/0') | |
@words_api.get_structured_document_tag_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetStyleRequest.new(name: 'Sample.docx', style_name: 'Heading 1') | |
@words_api.get_style(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetStyleFromDocumentElementRequest.new(name: 'Sample.docx', styled_node_path: 'paragraphs/1/paragraphFormat') | |
@words_api.get_style_from_document_element(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetStyleFromDocumentElementOnlineRequest.new(document: request_document, styled_node_path: 'paragraphs/1/paragraphFormat') | |
@words_api.get_style_from_document_element_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetStyleOnlineRequest.new(document: request_document, style_name: 'Heading 1') | |
@words_api.get_style_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetStylesRequest.new(name: 'Sample.docx') | |
@words_api.get_styles(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetStylesOnlineRequest.new(document: request_document) | |
@words_api.get_styles_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetTableRequest.new(name: 'Sample.docx', index: 1) | |
@words_api.get_table(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetTableCellRequest.new(name: 'Sample.docx', table_row_path: 'sections/0/tables/2/rows/0', index: 0) | |
@words_api.get_table_cell(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetTableCellFormatRequest.new(name: 'Sample.docx', table_row_path: 'sections/0/tables/2/rows/0', index: 0) | |
@words_api.get_table_cell_format(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetTableCellFormatOnlineRequest.new(document: request_document, table_row_path: 'sections/0/tables/2/rows/0', index: 0) | |
@words_api.get_table_cell_format_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetTableCellOnlineRequest.new(document: request_document, table_row_path: 'sections/0/tables/2/rows/0', index: 0) | |
@words_api.get_table_cell_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetTableOnlineRequest.new(document: request_document, index: 1) | |
@words_api.get_table_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetTablePropertiesRequest.new(name: 'Sample.docx', index: 1) | |
@words_api.get_table_properties(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetTablePropertiesOnlineRequest.new(document: request_document, index: 1) | |
@words_api.get_table_properties_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetTableRowRequest.new(name: 'Sample.docx', table_path: 'tables/1', index: 0) | |
@words_api.get_table_row(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetTableRowFormatRequest.new(name: 'Sample.docx', table_path: 'sections/0/tables/2', index: 0) | |
@words_api.get_table_row_format(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetTableRowFormatOnlineRequest.new(document: request_document, table_path: 'sections/0/tables/2', index: 0) | |
@words_api.get_table_row_format_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetTableRowOnlineRequest.new(document: request_document, table_path: 'tables/1', index: 0) | |
@words_api.get_table_row_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request = GetTablesRequest.new(name: 'Sample.docx') | |
@words_api.get_tables(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request = GetTablesOnlineRequest.new(document: request_document) | |
@words_api.get_tables_online(request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_bookmark_start_range = NewDocumentPosition.new({:NodeId => '0.0.0.0', :Offset => 0}) | |
request_bookmark_end_range = NewDocumentPosition.new({:NodeId => '0.0.0.0', :Offset => 0}) | |
request_bookmark = BookmarkInsert.new({:StartRange => request_bookmark_start_range, :EndRange => request_bookmark_end_range, :Name => 'new_bookmark', :Text => 'Some text'}) | |
insert_request = InsertBookmarkRequest.new(name: 'Sample.docx', bookmark: request_bookmark) | |
@words_api.insert_bookmark(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_bookmark_start_range = NewDocumentPosition.new({:NodeId => '0.0.0.0', :Offset => 0}) | |
request_bookmark_end_range = NewDocumentPosition.new({:NodeId => '0.0.0.0', :Offset => 0}) | |
request_bookmark = BookmarkInsert.new({:StartRange => request_bookmark_start_range, :EndRange => request_bookmark_end_range, :Name => 'new_bookmark', :Text => 'Some text'}) | |
insert_request = InsertBookmarkOnlineRequest.new(document: request_document, bookmark: request_bookmark) | |
@words_api.insert_bookmark_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_comment_range_start = NewDocumentPosition.new({:NodeId => '0.3.0.3', :Offset => 0}) | |
request_comment_range_end = NewDocumentPosition.new({:NodeId => '0.3.0.3', :Offset => 0}) | |
request_comment = CommentInsert.new({:RangeStart => request_comment_range_start, :RangeEnd => request_comment_range_end, :Initial => 'IA', :Author => 'John Doe', :Text => 'A new Comment'}) | |
insert_request = InsertCommentRequest.new(name: 'Sample.docx', comment: request_comment) | |
@words_api.insert_comment(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_comment_range_start = NewDocumentPosition.new({:NodeId => '0.3.0.3', :Offset => 0}) | |
request_comment_range_end = NewDocumentPosition.new({:NodeId => '0.3.0.3', :Offset => 0}) | |
request_comment = CommentInsert.new({:RangeStart => request_comment_range_start, :RangeEnd => request_comment_range_end, :Initial => 'IA', :Author => 'John Doe', :Text => 'A new Comment'}) | |
insert_request = InsertCommentOnlineRequest.new(document: request_document, comment: request_comment) | |
@words_api.insert_comment_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_custom_xml_part = CustomXmlPartInsert.new({:Id => 'hello', :Data => '<data>Hello world</data>'}) | |
insert_request = InsertCustomXmlPartRequest.new(name: 'Sample.docx', custom_xml_part: request_custom_xml_part) | |
@words_api.insert_custom_xml_part(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_custom_xml_part = CustomXmlPartInsert.new({:Id => 'hello', :Data => '<data>Hello world</data>'}) | |
insert_request = InsertCustomXmlPartOnlineRequest.new(document: request_document, custom_xml_part: request_custom_xml_part) | |
@words_api.insert_custom_xml_part_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_drawing_object = DrawingObjectInsert.new({:Height => 0, :Left => 0, :Top => 0, :Width => 0, :RelativeHorizontalPosition => 'Margin', :RelativeVerticalPosition => 'Margin', :WrapType => 'Inline'}) | |
request_image_file = File.open('Image.png') | |
insert_request = InsertDrawingObjectRequest.new(name: 'Sample.docx', drawing_object: request_drawing_object, image_file: request_image_file) | |
@words_api.insert_drawing_object(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_drawing_object = DrawingObjectInsert.new({:Height => 0, :Left => 0, :Top => 0, :Width => 0, :RelativeHorizontalPosition => 'Margin', :RelativeVerticalPosition => 'Margin', :WrapType => 'Inline'}) | |
request_image_file = File.open('Image.png') | |
insert_request = InsertDrawingObjectOnlineRequest.new(document: request_document, drawing_object: request_drawing_object, image_file: request_image_file) | |
@words_api.insert_drawing_object_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_field = FieldInsert.new({:FieldCode => '{ NUMPAGES }'}) | |
insert_request = InsertFieldRequest.new(name: 'Sample.docx', field: request_field) | |
@words_api.insert_field(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_field = FieldInsert.new({:FieldCode => '{ NUMPAGES }'}) | |
insert_request = InsertFieldOnlineRequest.new(document: request_document, field: request_field, node_path: 'sections/0/paragraphs/0') | |
@words_api.insert_field_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_footnote_dto = FootnoteInsert.new({:FootnoteType => 'Endnote', :Text => 'test endnote'}) | |
insert_request = InsertFootnoteRequest.new(name: 'Sample.docx', footnote_dto: request_footnote_dto) | |
@words_api.insert_footnote(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request_footnote_dto = FootnoteInsert.new({:FootnoteType => 'Endnote', :Text => 'test endnote'}) | |
insert_request = InsertFootnoteOnlineRequest.new(document: request_document, footnote_dto: request_footnote_dto) | |
@words_api.insert_footnote_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_form_field = FormFieldTextInput.new({:Name => 'FullName', :Enabled => true, :CalculateOnExit => true, :StatusText => '', :TextInputType => 'Regular', :TextInputDefault => '123', :TextInputFormat => 'UPPERCASE'}) | |
insert_request = InsertFormFieldRequest.new(name: 'Sample.docx', form_field: request_form_field) | |
@words_api.insert_form_field(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_form_field = FormFieldTextInput.new({:Name => 'FullName', :Enabled => true, :CalculateOnExit => true, :StatusText => '', :TextInputType => 'Regular', :TextInputDefault => '123', :TextInputFormat => 'UPPERCASE'}) | |
insert_request = InsertFormFieldOnlineRequest.new(document: request_document, form_field: request_form_field, node_path: 'sections/0/paragraphs/0') | |
@words_api.insert_form_field_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_list_insert = ListInsert.new({:Template => 'OutlineLegal'}) | |
insert_request = InsertListRequest.new(name: 'TestGetLists.doc', list_insert: request_list_insert) | |
@words_api.insert_list(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request_list_insert = ListInsert.new({:Template => 'OutlineLegal'}) | |
insert_request = InsertListOnlineRequest.new(document: request_document, list_insert: request_list_insert) | |
@words_api.insert_list_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_tab_stop_insert_dto = TabStopInsert.new({:Alignment => 'Left', :Leader => 'None', :Position => 100.0}) | |
insert_request = InsertOrUpdateParagraphTabStopRequest.new(name: 'Sample.docx', index: 0, tab_stop_insert_dto: request_tab_stop_insert_dto) | |
@words_api.insert_or_update_paragraph_tab_stop(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_tab_stop_insert_dto = TabStopInsert.new({:Alignment => 'Left', :Leader => 'None', :Position => 72}) | |
insert_request = InsertOrUpdateParagraphTabStopOnlineRequest.new(document: request_document, tab_stop_insert_dto: request_tab_stop_insert_dto, index: 0) | |
@words_api.insert_or_update_paragraph_tab_stop_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_page_number = PageNumber.new({:Alignment => 'center', :Format => '{PAGE} of {NUMPAGES}'}) | |
insert_request = InsertPageNumbersRequest.new(name: 'Sample.docx', page_number: request_page_number) | |
@words_api.insert_page_numbers(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_page_number = PageNumber.new({:Alignment => 'center', :Format => '{PAGE} of {NUMPAGES}'}) | |
insert_request = InsertPageNumbersOnlineRequest.new(document: request_document, page_number: request_page_number) | |
@words_api.insert_page_numbers_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_paragraph = ParagraphInsert.new({:Text => 'This is a new paragraph for your document'}) | |
insert_request = InsertParagraphRequest.new(name: 'Sample.docx', paragraph: request_paragraph) | |
@words_api.insert_paragraph(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_paragraph = ParagraphInsert.new({:Text => 'This is a new paragraph for your document'}) | |
insert_request = InsertParagraphOnlineRequest.new(document: request_document, paragraph: request_paragraph, node_path: 'sections/0') | |
@words_api.insert_paragraph_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_run = RunInsert.new({:Text => 'run with text'}) | |
insert_request = InsertRunRequest.new(name: 'Sample.docx', paragraph_path: 'paragraphs/1', run: request_run) | |
@words_api.insert_run(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request_run = RunInsert.new({:Text => 'run with text'}) | |
insert_request = InsertRunOnlineRequest.new(document: request_document, paragraph_path: 'paragraphs/1', run: request_run) | |
@words_api.insert_run_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_structured_document_tag = StructuredDocumentTagInsert.new({:SdtType => 'ComboBox', :Level => 'Inline'}) | |
insert_request = InsertStructuredDocumentTagRequest.new(name: 'Sample.docx', structured_document_tag: request_structured_document_tag, node_path: 'sections/0/body/paragraphs/0') | |
@words_api.insert_structured_document_tag(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_structured_document_tag = StructuredDocumentTagInsert.new({:SdtType => 'ComboBox', :Level => 'Inline'}) | |
insert_request = InsertStructuredDocumentTagOnlineRequest.new(document: request_document, structured_document_tag: request_structured_document_tag, node_path: 'sections/0/body/paragraphs/0') | |
@words_api.insert_structured_document_tag_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_style_insert = StyleInsert.new({:StyleName => 'My Style', :StyleType => 'Paragraph'}) | |
insert_request = InsertStyleRequest.new(name: 'Sample.docx', style_insert: request_style_insert) | |
@words_api.insert_style(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_style_insert = StyleInsert.new({:StyleName => 'My Style', :StyleType => 'Paragraph'}) | |
insert_request = InsertStyleOnlineRequest.new(document: request_document, style_insert: request_style_insert) | |
@words_api.insert_style_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_table = TableInsert.new({:ColumnsCount => 5, :RowsCount => 4}) | |
insert_request = InsertTableRequest.new(name: 'Sample.docx', table: request_table) | |
@words_api.insert_table(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_cell = TableCellInsert.new({}) | |
insert_request = InsertTableCellRequest.new(name: 'Sample.docx', table_row_path: 'sections/0/tables/2/rows/0', cell: request_cell) | |
@words_api.insert_table_cell(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_cell = TableCellInsert.new({}) | |
insert_request = InsertTableCellOnlineRequest.new(document: request_document, table_row_path: 'sections/0/tables/2/rows/0', cell: request_cell) | |
@words_api.insert_table_cell_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_table = TableInsert.new({:ColumnsCount => 5, :RowsCount => 4}) | |
insert_request = InsertTableOnlineRequest.new(document: request_document, table: request_table) | |
@words_api.insert_table_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_row = TableRowInsert.new({:ColumnsCount => 5}) | |
insert_request = InsertTableRowRequest.new(name: 'Sample.docx', table_path: 'sections/0/tables/2', row: request_row) | |
@words_api.insert_table_row(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_row = TableRowInsert.new({:ColumnsCount => 5}) | |
insert_request = InsertTableRowOnlineRequest.new(document: request_document, table_path: 'sections/0/tables/2', row: request_row) | |
@words_api.insert_table_row_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
insert_request = InsertWatermarkImageRequest.new(name: 'Sample.docx', image_file: nil, image: 'Sample.png') | |
@words_api.insert_watermark_image(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_image_file = File.open('Image.png') | |
insert_request = InsertWatermarkImageOnlineRequest.new(document: request_document, image_file: request_image_file) | |
@words_api.insert_watermark_image_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_watermark_text = WatermarkText.new({:Text => 'This is the text', :RotationAngle => 90.0}) | |
insert_request = InsertWatermarkTextRequest.new(name: 'Sample.docx', watermark_text: request_watermark_text) | |
@words_api.insert_watermark_text(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_watermark_text = WatermarkText.new({:Text => 'This is the text', :RotationAngle => 90}) | |
insert_request = InsertWatermarkTextOnlineRequest.new(document: request_document, watermark_text: request_watermark_text) | |
@words_api.insert_watermark_text_online(insert_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_data_save_options = DocSaveOptionsData.new({:FileName => 'google.doc', :DmlEffectsRenderingMode => 'None', :DmlRenderingMode => 'DrawingML', :UpdateSdtContent => false, :ZipOutput => false}) | |
request_data = LoadWebDocumentData.new({:LoadingDocumentUrl => 'http://google.com', :SaveOptions => request_data_save_options}) | |
load_request = LoadWebDocumentRequest.new(data: request_data) | |
@words_api.load_web_document(load_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
move_request = MoveFileRequest.new(dest_path: 'MoveFileSample.docx', src_path: 'Sample.docx') | |
@words_api.move_file(move_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
move_request = MoveFolderRequest.new(dest_path: '/TestMoveFolderDest_Sample', src_path: '/TestMoveFolderSrc') | |
@words_api.move_folder(move_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_options = OptimizationOptions.new({:MsWordVersion => 'Word2002'}) | |
optimize_request = OptimizeDocumentRequest.new(name: 'Sample.docx', options: request_options) | |
@words_api.optimize_document(optimize_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_options = OptimizationOptions.new({:MsWordVersion => 'Word2002'}) | |
optimize_request = OptimizeDocumentOnlineRequest.new(document: request_document, options: request_options) | |
@words_api.optimize_document_online(optimize_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_protection_request = ProtectionRequest.new({:Password => '123', :ProtectionType => 'ReadOnly'}) | |
protect_request = ProtectDocumentRequest.new(name: 'Sample.docx', protection_request: request_protection_request) | |
@words_api.protect_document(protect_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_protection_request = ProtectionRequest.new({:NewPassword => '123'}) | |
protect_request = ProtectDocumentOnlineRequest.new(document: request_document, protection_request: request_protection_request) | |
@words_api.protect_document_online(protect_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
reject_request = RejectAllRevisionsRequest.new(name: 'Sample.docx') | |
@words_api.reject_all_revisions(reject_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
reject_request = RejectAllRevisionsOnlineRequest.new(document: request_document) | |
@words_api.reject_all_revisions_online(reject_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
remove_request = RemoveRangeRequest.new(name: 'Sample.docx', range_start_identifier: 'id0.0.0', range_end_identifier: 'id0.0.1') | |
@words_api.remove_range(remove_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
remove_request = RemoveRangeOnlineRequest.new(document: request_document, range_start_identifier: 'id0.0.0', range_end_identifier: 'id0.0.1') | |
@words_api.remove_range_online(remove_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
render_request = RenderDrawingObjectRequest.new(name: 'Sample.docx', format: 'png', index: 0) | |
@words_api.render_drawing_object(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
render_request = RenderDrawingObjectOnlineRequest.new(document: request_document, format: 'png', index: 0, node_path: 'sections/0') | |
@words_api.render_drawing_object_online(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
render_request = RenderMathObjectRequest.new(name: 'Sample.docx', format: 'png', index: 0) | |
@words_api.render_math_object(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
render_request = RenderMathObjectOnlineRequest.new(document: request_document, format: 'png', index: 0) | |
@words_api.render_math_object_online(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
render_request = RenderPageRequest.new(name: 'Sample.docx', page_index: 1, format: 'jpg') | |
@words_api.render_page(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
render_request = RenderPageOnlineRequest.new(document: request_document, page_index: 1, format: 'jpg') | |
@words_api.render_page_online(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
render_request = RenderParagraphRequest.new(name: 'Sample.docx', format: 'png', index: 0) | |
@words_api.render_paragraph(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
render_request = RenderParagraphOnlineRequest.new(document: request_document, format: 'png', index: 0) | |
@words_api.render_paragraph_online(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
render_request = RenderTableRequest.new(name: 'Sample.docx', format: 'png', index: 0) | |
@words_api.render_table(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
render_request = RenderTableOnlineRequest.new(document: request_document, format: 'png', index: 0) | |
@words_api.render_table_online(render_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_replace_text = ReplaceTextParameters.new({:OldValue => 'Testing', :NewValue => 'Aspose testing'}) | |
replace_request = ReplaceTextRequest.new(name: 'Sample.docx', replace_text: request_replace_text) | |
@words_api.replace_text(replace_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_replace_text = ReplaceTextParameters.new({:OldValue => 'aspose', :NewValue => 'aspose new'}) | |
replace_request = ReplaceTextOnlineRequest.new(document: request_document, replace_text: request_replace_text) | |
@words_api.replace_text_online(replace_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_range_text = ReplaceRange.new({:Text => 'Replaced header'}) | |
replace_request = ReplaceWithTextRequest.new(name: 'Sample.docx', range_start_identifier: 'id0.0.0', range_text: request_range_text, range_end_identifier: 'id0.0.1') | |
@words_api.replace_with_text(replace_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request_range_text = ReplaceRange.new({:Text => 'Replaced header'}) | |
replace_request = ReplaceWithTextOnlineRequest.new(document: request_document, range_start_identifier: 'id0.0.0', range_text: request_range_text, range_end_identifier: 'id0.0.1') | |
@words_api.replace_with_text_online(replace_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
reset_request = ResetCacheRequest.new() | |
@words_api.reset_cache(reset_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_save_options_data = DocxSaveOptionsData.new({:FileName => 'FromPdfToDoc.docx'}) | |
save_request = SaveAsRequest.new(name: 'Sample.docx', save_options_data: request_save_options_data) | |
@words_api.save_as(save_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
client_id = "####-####-####-####-####" | |
secret = "##################" | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = client_id | |
config.client_data['ClientSecret'] = secret | |
end | |
@words_api = WordsAPI.new | |
fileName = "test_multi_pages.pdf" | |
format = "docx" | |
destName = "Out_test_multi_pages.docx" | |
# Upload original document to Cloud Storage | |
@words_api.upload_file UploadFileRequest.new(File.new(fileName, 'rb'), fileName, nil) | |
request = SaveAsRequest.new(fileName, SaveOptionsData.new({:SaveFormat => format, :FileName => destName}), nil, nil, nil, nil, nil) | |
result = @words_api.save_as(request) | |
puts("Result " + (result).to_s) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
client_id = "####-####-####-####-####" | |
secret = "##################" | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = client_id | |
config.client_data['ClientSecret'] = secret | |
end | |
@words_api = WordsAPI.new | |
fileName = "test_multi_pages.docx" | |
format = "html" | |
destName = "Out_test_multi_pages.html" | |
# Upload original document to Cloud Storage | |
@words_api.upload_file UploadFileRequest.new(File.new(fileName, 'rb'), fileName, nil) | |
request = SaveAsRequest.new(fileName, SaveOptionsData.new({:SaveFormat => format, :FileName => destName}), nil, nil, nil, nil, nil) | |
result = @words_api.save_as(request) | |
puts("Result " + (result).to_s) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('test_multi_pages.docx') | |
request_save_options_data = HtmlSaveOptionsData.new({:FileName => '/TestSaveAsHtml.html', :CssStyleSheetType => 'External', :CssStyleSheetFileName => '/TestSaveAsHtml.css'}) | |
save_request = SaveAsOnlineRequest.new(document: request_document, save_options_data: request_save_options_data) | |
@words_api.save_as_online(save_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_save_options_data = SaveOptionsData.new({:SaveFormat => 'pdf', :FileName => 'Sample_out.pdf'}) | |
save_request = SaveAsOnlineRequest.new(document: request_document, save_options_data: request_save_options_data) | |
@words_api.save_as_online(save_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
request_save_options_data = SaveOptionsData.new({:SaveFormat => 'html', :FileName => 'Sample_out.html'}) | |
save_request = SaveAsOnlineRequest.new(document: request_document, save_options_data: request_save_options_data) | |
@words_api.save_as_online(save_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document_parameters = RangeDocument.new({:DocumentName => 'NewDocument.docx'}) | |
save_request = SaveAsRangeRequest.new(name: 'Sample.docx', range_start_identifier: 'id0.0.0', document_parameters: request_document_parameters, range_end_identifier: 'id0.0.1') | |
@words_api.save_as_range(save_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.doc') | |
request_document_parameters = RangeDocument.new({:DocumentName => 'NewDocument.docx'}) | |
save_request = SaveAsRangeOnlineRequest.new(document: request_document, range_start_identifier: 'id0.0.0', document_parameters: request_document_parameters, range_end_identifier: 'id0.0.1') | |
@words_api.save_as_range_online(save_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_save_options = TiffSaveOptionsData.new({:FileName => 'Image.tiff'}) | |
save_request = SaveAsTiffRequest.new(name: 'Sample.docx', save_options: request_save_options) | |
@words_api.save_as_tiff(save_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('test_multi_pages.docx') | |
request_save_options = TiffSaveOptionsData.new({:FileName => 'Image.tiff'}) | |
save_request = SaveAsTiffOnlineRequest.new(document: request_document, save_options: request_save_options) | |
@words_api.save_as_tiff_online(save_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
search_request = SearchRequest.new(name: 'Sample.docx', pattern: 'aspose') | |
@words_api.search(search_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
search_request = SearchOnlineRequest.new(document: request_document, pattern: 'aspose') | |
@words_api.search_online(search_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
split_request = SplitDocumentRequest.new(name: 'Sample.docx', format: 'text', dest_file_name: 'SplitDocument.text', from: 1, to: 2) | |
@words_api.split_document(split_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
client_id = "####-####-####-####-####" | |
secret = "##################" | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = client_id | |
config.client_data['ClientSecret'] = secret | |
end | |
@words_api = WordsAPI.new | |
fileName = "test_multi_pages.docx" | |
format = "png" | |
fromPage = 1 # Splitting starts from the first page of the document | |
toPage = 1 # splitting ends at the last page of the document | |
# Upload original document to Cloud Storage | |
@words_api.upload_file UploadFileRequest.new(File.new(fileName, 'rb'), fileName, nil) | |
request = SplitDocumentRequest.new(fileName, format, nil, nil, nil, nil, nil, fromPage, toPage, nil, nil) | |
result = @words_api.split_document(request) | |
puts("Result " + (result).to_s) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
client_id = "####-####-####-####-####" | |
secret = "##################" | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = client_id | |
config.client_data['ClientSecret'] = secret | |
end | |
@words_api = WordsAPI.new | |
fileName = "test_multi_pages.docx" | |
format = "pdf" | |
fromPage = 1 # Splitting starts from the first page of the document | |
toPage = 2 # splitting ends at the last page of the document | |
# Upload original document to Cloud Storage | |
@words_api.upload_file UploadFileRequest.new(File.new(fileName, 'rb'), fileName, nil) | |
request = SplitDocumentRequest.new(fileName, format, nil, nil, nil, nil, nil, fromPage, toPage, nil, nil) | |
result = @words_api.split_document(request) | |
puts("Result " + (result).to_s) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
split_request = SplitDocumentOnlineRequest.new(document: request_document, format: 'text', dest_file_name: 'SplitDocument.text', from: 1, to: 2) | |
@words_api.split_document_online(split_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
split_request = SplitDocumentOnlineRequest.new(document: request_document, format: 'png', from: 1, to: 2) | |
@words_api.split_document_online(split_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_document = File.open('Sample.docx') | |
split_request = SplitDocumentOnlineRequest.new(document: request_document, format: 'pdf', from: 1, to: 2) | |
@words_api.split_document_online(split_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aspose_words_cloud' | |
AsposeWordsCloud.configure do |config| | |
config.client_data['ClientId'] = '####-####-####-####-####' | |
config.client_data['ClientSecret'] = '##################' | |
end | |
@words_api = WordsAPI.new | |
request_protection_request = ProtectionRequest.new({:Password => 'aspose'}) | |
unprotect_request = UnprotectDocumentRequest.new(name: 'Sample.docx', protection_request: request_protection_request) | |
@words_api.unprotect_document(unprotect_request) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment