Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This gist exceeds the recommended number of files (~10). To access all files, please clone this gist.
This Gist contains Python code samples for Aspose.Words Cloud API
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
accept_request = asposewordscloud.models.requests.AcceptAllRevisionsRequest(name='Sample.docx')
words_api.accept_all_revisions(accept_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
accept_request = asposewordscloud.models.requests.AcceptAllRevisionsOnlineRequest(document=request_document)
words_api.accept_all_revisions_online(accept_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
remote_file_name= 'Sample.docx'
request_document_list_document_entries0 = asposewordscloud.DocumentEntry(href=remote_file_name, import_format_mode='KeepSourceFormatting')
request_document_list_document_entries = [request_document_list_document_entries0]
request_document_list = asposewordscloud.DocumentEntryList(document_entries=request_document_list_document_entries)
append_request = asposewordscloud.models.requests.AppendDocumentRequest(name=remote_file_name, document_list=request_document_list)
words_api.append_document(append_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request_document_list_document_entries0 = asposewordscloud.DocumentEntry(href='Sample.docx', import_format_mode='KeepSourceFormatting')
request_document_list_document_entries = [request_document_list_document_entries0]
request_document_list = asposewordscloud.DocumentEntryList(document_entries=request_document_list_document_entries)
append_request = asposewordscloud.models.requests.AppendDocumentOnlineRequest(document=request_document, document_list=request_document_list)
words_api.append_document_online(append_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_style_apply = asposewordscloud.StyleApply(style_name='Heading 1')
apply_style_request = asposewordscloud.models.requests.ApplyStyleToDocumentElementRequest(name='Sample.docx', styled_node_path='paragraphs/1/paragraphFormat', style_apply=request_style_apply)
words_api.apply_style_to_document_element(apply_style_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request_style_apply = asposewordscloud.StyleApply(style_name='Heading 1')
apply_style_request = asposewordscloud.models.requests.ApplyStyleToDocumentElementOnlineRequest(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)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_report_engine_settings_report_build_options = ['AllowMissingMembers', 'RemoveEmptyParagraphs']
request_report_engine_settings = asposewordscloud.ReportEngineSettings(data_source_type='Json', report_build_options=request_report_engine_settings_report_build_options)
build_report_request = asposewordscloud.models.requests.BuildReportRequest(name='Sample.docx', data='Data.json', report_engine_settings=request_report_engine_settings)
words_api.build_report(build_report_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_template = open('Sample.docx', 'rb')
request_report_engine_settings = asposewordscloud.ReportEngineSettings(data_source_type='Json', data_source_name='persons')
build_report_request = asposewordscloud.models.requests.BuildReportOnlineRequest(template=request_template, data='Data.json', report_engine_settings=request_report_engine_settings)
words_api.build_report_online(build_report_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
classify_request = asposewordscloud.models.requests.ClassifyRequest(text='Try text classification', best_classes_count='3')
words_api.classify(classify_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
classify_request = asposewordscloud.models.requests.ClassifyDocumentRequest(name='Sample.docx', best_classes_count='3')
words_api.classify_document(classify_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
classify_request = asposewordscloud.models.requests.ClassifyDocumentOnlineRequest(document=request_document, best_classes_count='3')
words_api.classify_document_online(classify_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_compare_data = asposewordscloud.CompareData(author='author', comparing_with_document='TestCompareDocument2.doc', date_time=dateutil.parser.isoparse('2015-10-26T00:00:00.0000000Z'))
compare_request = asposewordscloud.models.requests.CompareDocumentRequest(name='TestCompareDocument1.doc', compare_data=request_compare_data, dest_file_name='CompareDocumentOut.doc')
words_api.compare_document(compare_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('compareTestDoc1.doc', 'rb')
request_compare_data = asposewordscloud.CompareData(author='author', comparing_with_document='TestCompareDocument2.doc', date_time=dateutil.parser.isoparse('2015-10-26T00:00:00.0000000Z'))
request_comparing_document = open('compareTestDoc2.doc', 'rb')
compare_request = asposewordscloud.models.requests.CompareDocumentOnlineRequest(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)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
convert_request = asposewordscloud.models.requests.ConvertDocumentRequest(document=request_document, format='pdf')
words_api.convert_document(convert_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
convert_request = asposewordscloud.models.requests.ConvertDocumentRequest(document=request_document, format='pdf')
words_api.convert_document(convert_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
convert_request = asposewordscloud.models.requests.ConvertDocumentRequest(document=request_document, format='pdf')
words_api.convert_document(convert_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
copy_request = asposewordscloud.models.requests.CopyFileRequest(dest_path='Copy.docx', src_path='Sample.docx')
words_api.copy_file(copy_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
folder_to_copy= '/TestCopyFolder'
copy_request = asposewordscloud.models.requests.CopyFolderRequest(dest_path=folder_to_copy + 'Dest', src_path=folder_to_copy + 'Src')
words_api.copy_folder(copy_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_style_copy = asposewordscloud.StyleCopy(style_name='Heading 1')
copy_request = asposewordscloud.models.requests.CopyStyleRequest(name='Sample.docx', style_copy=request_style_copy)
words_api.copy_style(copy_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request_style_copy = asposewordscloud.StyleCopy(style_name='Heading 1')
copy_request = asposewordscloud.models.requests.CopyStyleOnlineRequest(document=request_document, style_copy=request_style_copy)
words_api.copy_style_online(copy_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
create_request = asposewordscloud.models.requests.CreateDocumentRequest(file_name='Sample.docx')
words_api.create_document(create_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
create_request = asposewordscloud.models.requests.CreateFolderRequest(path='/TestCreateFolder')
words_api.create_folder(create_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_property = asposewordscloud.DocumentPropertyCreateOrUpdate(value='John Doe')
create_request = asposewordscloud.models.requests.CreateOrUpdateDocumentPropertyRequest(name='Sample.docx', property_name='AsposeAuthor', _property=request_property)
words_api.create_or_update_document_property(create_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request_property = asposewordscloud.DocumentPropertyCreateOrUpdate(value='John Doe')
create_request = asposewordscloud.models.requests.CreateOrUpdateDocumentPropertyOnlineRequest(document=request_document, property_name='AsposeAuthor', _property=request_property)
words_api.create_or_update_document_property_online(create_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteAllParagraphTabStopsRequest(name='Sample.docx', index=0)
words_api.delete_all_paragraph_tab_stops(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteAllParagraphTabStopsOnlineRequest(document=request_document, index=0)
words_api.delete_all_paragraph_tab_stops_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteBorderRequest(name='Sample.docx', border_type='left', node_path='tables/1/rows/0/cells/0')
words_api.delete_border(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteBorderOnlineRequest(document=request_document, border_type='left', node_path='tables/1/rows/0/cells/0')
words_api.delete_border_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteBordersRequest(name='Sample.docx', node_path='tables/1/rows/0/cells/0')
words_api.delete_borders(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteBordersOnlineRequest(document=request_document, node_path='tables/1/rows/0/cells/0')
words_api.delete_borders_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteCommentRequest(name='Sample.docx', comment_index=0)
words_api.delete_comment(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteCommentOnlineRequest(document=request_document, comment_index=0)
words_api.delete_comment_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteCommentsRequest(name='Sample.docx')
words_api.delete_comments(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteCommentsOnlineRequest(document=request_document)
words_api.delete_comments_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteCustomXmlPartRequest(name='Sample.docx', custom_xml_part_index=0)
words_api.delete_custom_xml_part(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteCustomXmlPartOnlineRequest(document=request_document, custom_xml_part_index=0)
words_api.delete_custom_xml_part_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteCustomXmlPartsRequest(name='Sample.docx')
words_api.delete_custom_xml_parts(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteCustomXmlPartsOnlineRequest(document=request_document)
words_api.delete_custom_xml_parts_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteDocumentPropertyRequest(name='Sample.docx', property_name='testProp')
words_api.delete_document_property(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteDocumentPropertyOnlineRequest(document=request_document, property_name='testProp')
words_api.delete_document_property_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteDrawingObjectRequest(name='Sample.docx', index=0)
words_api.delete_drawing_object(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteDrawingObjectOnlineRequest(document=request_document, index=0)
words_api.delete_drawing_object_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteFieldRequest(name='Sample.docx', index=0)
words_api.delete_field(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteFieldOnlineRequest(document=request_document, index=0, node_path='sections/0/paragraphs/0')
words_api.delete_field_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteFieldsRequest(name='Sample.docx')
words_api.delete_fields(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteFieldsOnlineRequest(document=request_document)
words_api.delete_fields_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteFileRequest(path='Sample.docx')
words_api.delete_file(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteFolderRequest(path='')
words_api.delete_folder(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteFootnoteRequest(name='Sample.docx', index=0)
words_api.delete_footnote(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.doc', 'rb')
delete_request = asposewordscloud.models.requests.DeleteFootnoteOnlineRequest(document=request_document, index=0)
words_api.delete_footnote_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteFormFieldRequest(name='Sample.docx', index=0)
words_api.delete_form_field(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteFormFieldOnlineRequest(document=request_document, index=0, node_path='sections/0')
words_api.delete_form_field_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteHeaderFooterRequest(name='Sample.docx', section_path='', index=0)
words_api.delete_header_footer(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.doc', 'rb')
delete_request = asposewordscloud.models.requests.DeleteHeaderFooterOnlineRequest(document=request_document, section_path='', index=0)
words_api.delete_header_footer_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteHeadersFootersRequest(name='Sample.docx', section_path='')
words_api.delete_headers_footers(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.doc', 'rb')
delete_request = asposewordscloud.models.requests.DeleteHeadersFootersOnlineRequest(document=request_document, section_path='')
words_api.delete_headers_footers_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteMacrosRequest(name='Sample.docx')
words_api.delete_macros(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteMacrosOnlineRequest(document=request_document)
words_api.delete_macros_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteOfficeMathObjectRequest(name='Sample.docx', index=0)
words_api.delete_office_math_object(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteOfficeMathObjectOnlineRequest(document=request_document, index=0)
words_api.delete_office_math_object_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteParagraphRequest(name='Sample.docx', index=0)
words_api.delete_paragraph(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteParagraphListFormatRequest(name='Sample.docx', index=0)
words_api.delete_paragraph_list_format(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.doc', 'rb')
delete_request = asposewordscloud.models.requests.DeleteParagraphListFormatOnlineRequest(document=request_document, index=0)
words_api.delete_paragraph_list_format_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteParagraphOnlineRequest(document=request_document, index=0)
words_api.delete_paragraph_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteParagraphTabStopRequest(name='Sample.docx', position=72.0, index=0)
words_api.delete_paragraph_tab_stop(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteParagraphTabStopOnlineRequest(document=request_document, position=72.0, index=0)
words_api.delete_paragraph_tab_stop_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteRunRequest(name='Sample.docx', paragraph_path='paragraphs/1', index=0)
words_api.delete_run(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.doc', 'rb')
delete_request = asposewordscloud.models.requests.DeleteRunOnlineRequest(document=request_document, paragraph_path='paragraphs/1', index=0)
words_api.delete_run_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteSectionRequest(name='Sample.docx', section_index=0)
words_api.delete_section(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteSectionOnlineRequest(document=request_document, section_index=0)
words_api.delete_section_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteTableRequest(name='Sample.docx', index=1)
words_api.delete_table(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteTableCellRequest(name='Sample.docx', table_row_path='sections/0/tables/2/rows/0', index=0)
words_api.delete_table_cell(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteTableCellOnlineRequest(document=request_document, table_row_path='sections/0/tables/2/rows/0', index=0)
words_api.delete_table_cell_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteTableOnlineRequest(document=request_document, index=1)
words_api.delete_table_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteTableRowRequest(name='Sample.docx', table_path='tables/1', index=0)
words_api.delete_table_row(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteTableRowOnlineRequest(document=request_document, table_path='tables/1', index=0)
words_api.delete_table_row_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
delete_request = asposewordscloud.models.requests.DeleteWatermarkRequest(name='Sample.docx')
words_api.delete_watermark(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
delete_request = asposewordscloud.models.requests.DeleteWatermarkOnlineRequest(document=request_document)
words_api.delete_watermark_online(delete_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
download_request = asposewordscloud.models.requests.DownloadFileRequest(path='Sample.docx')
words_api.download_file(download_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_options_current_user = asposewordscloud.UserInformation(name='SdkTestUser')
request_options = asposewordscloud.FieldOptions(current_user=request_options_current_user)
mail_merge_request = asposewordscloud.models.requests.ExecuteMailMergeRequest(name='Sample.docx', data=open(os.path.join(self.local_test_folder, 'TestMailMergeData.xml')).read(), options=request_options)
words_api.execute_mail_merge(mail_merge_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
client_id = '####-####-####-####-####'
secret = '##################'
words_api = WordsApi(client_id, secret)
fileName = "template.doc"
destName = "Out_PostDocumentExecuteMailMergeWithHTMLData.docx"
# Upload original document to Cloud Storage
wordsApi.upload_file(asposewordscloud.models.requests.UploadFileRequest(open(fileName, 'rb'), "", None))
with open("TestPostDocumentExecuteMailMerge.txt", 'rb') as f: data = f.read()
request = asposewordscloud.models.requests.ExecuteMailMergeRequest(fileName, data, None, None, None, None, None, None, None, None, destName)
result = wordsApi.execute_mail_merge(request)
print("Result {}".format(result))
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
client_id = '####-####-####-####-####'
secret = '##################'
words_api = WordsApi(client_id, secret)
fileName = "SampleMailMergeTemplate.docx"
destName = "Out_SampleMailMergeTemplate.docx"
# Upload original document to Cloud Storage
wordsApi.upload_file(asposewordscloud.models.requests.UploadFileRequest(open(fileName, 'rb'), "", None))
with open("SampleMailMergeTemplateData.xml", 'rb') as f: data = f.read()
request = asposewordscloud.models.requests.ExecuteMailMergeRequest(fileName, data,
None, None, None, None, None, None, None, None, destName)
result = wordsApi.execute_mail_merge(request)
print("Result {}".format(result))
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_template = open('Sample.docx', 'rb')
request_data = open(open(os.path.join(self.local_test_folder, 'TestMailMergeData.xml')).read(), 'rb')
request_options_current_user = asposewordscloud.UserInformation(name='SdkTestUser')
request_options = asposewordscloud.FieldOptions(current_user=request_options_current_user)
mail_merge_request = asposewordscloud.models.requests.ExecuteMailMergeOnlineRequest(template=request_template, data=request_data, options=request_options)
words_api.execute_mail_merge_online(mail_merge_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_template = open('TestMailMergeWithImages.doc', 'rb')
request_data = open('MailMergeData.json', 'rb')
mail_merge_request = asposewordscloud.models.requests.ExecuteMailMergeOnlineRequest(template=request_template, data=request_data, document_file_name='Out_TestMailMergeWithImages.doc')
words_api.execute_mail_merge_online(mail_merge_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_template = open('template.doc', 'rb')
request_data = open('TestPostDocumentExecuteMailMerge.txt', 'rb')
mail_merge_request = asposewordscloud.models.requests.ExecuteMailMergeOnlineRequest(template=request_template, data=request_data, document_file_name='Out_PostDocumentExecuteMailMergeWithHTMLData.docx')
words_api.execute_mail_merge_online(mail_merge_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_template = open('SampleMailMergeTemplate.docx', 'rb')
request_data = open('SampleMailMergeTemplateData.xml', 'rb')
mail_merge_request = asposewordscloud.models.requests.ExecuteMailMergeOnlineRequest(template=request_template, data=request_data, document_file_name='Out_SampleMailMergeTemplate.docx')
words_api.execute_mail_merge_online(mail_merge_request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetAvailableFontsRequest()
words_api.get_available_fonts(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetBookmarkByNameRequest(name='Sample.docx', bookmark_name='aspose')
words_api.get_bookmark_by_name(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetBookmarkByNameOnlineRequest(document=request_document, bookmark_name='aspose')
words_api.get_bookmark_by_name_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetBookmarksRequest(name='Sample.docx')
words_api.get_bookmarks(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetBookmarksOnlineRequest(document=request_document)
words_api.get_bookmarks_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetBorderRequest(name='Sample.docx', border_type='left', node_path='tables/1/rows/0/cells/0')
words_api.get_border(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetBorderOnlineRequest(document=request_document, border_type='left', node_path='tables/1/rows/0/cells/0')
words_api.get_border_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetBordersRequest(name='Sample.docx', node_path='tables/1/rows/0/cells/0')
words_api.get_borders(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetBordersOnlineRequest(document=request_document, node_path='tables/1/rows/0/cells/0')
words_api.get_borders_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetCommentRequest(name='Sample.docx', comment_index=0)
words_api.get_comment(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetCommentOnlineRequest(document=request_document, comment_index=0)
words_api.get_comment_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetCommentsRequest(name='Sample.docx')
words_api.get_comments(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetCommentsOnlineRequest(document=request_document)
words_api.get_comments_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetCustomXmlPartRequest(name='Sample.docx', custom_xml_part_index=0)
words_api.get_custom_xml_part(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetCustomXmlPartOnlineRequest(document=request_document, custom_xml_part_index=0)
words_api.get_custom_xml_part_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetCustomXmlPartsRequest(name='Sample.docx')
words_api.get_custom_xml_parts(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetCustomXmlPartsOnlineRequest(document=request_document)
words_api.get_custom_xml_parts_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetDocumentRequest(document_name='Sample.docx')
words_api.get_document(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetDocumentDrawingObjectByIndexRequest(name='Sample.docx', index=0)
words_api.get_document_drawing_object_by_index(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetDocumentDrawingObjectByIndexOnlineRequest(document=request_document, index=0, node_path='sections/0')
words_api.get_document_drawing_object_by_index_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetDocumentDrawingObjectImageDataRequest(name='Sample.docx', index=0)
words_api.get_document_drawing_object_image_data(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetDocumentDrawingObjectImageDataOnlineRequest(document=request_document, index=0, node_path='sections/0')
words_api.get_document_drawing_object_image_data_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetDocumentDrawingObjectOleDataRequest(name='Sample.docx', index=0)
words_api.get_document_drawing_object_ole_data(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetDocumentDrawingObjectOleDataOnlineRequest(document=request_document, index=0, node_path='sections/0')
words_api.get_document_drawing_object_ole_data_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetDocumentDrawingObjectsRequest(name='Sample.docx')
words_api.get_document_drawing_objects(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetDocumentDrawingObjectsOnlineRequest(document=request_document, node_path='sections/0')
words_api.get_document_drawing_objects_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetDocumentFieldNamesRequest(name='Sample.docx')
words_api.get_document_field_names(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_template = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetDocumentFieldNamesOnlineRequest(template=request_template, use_non_merge_fields=True)
words_api.get_document_field_names_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetDocumentHyperlinkByIndexRequest(name='Sample.docx', hyperlink_index=0)
words_api.get_document_hyperlink_by_index(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetDocumentHyperlinkByIndexOnlineRequest(document=request_document, hyperlink_index=0)
words_api.get_document_hyperlink_by_index_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request_document = open('Sample.docx', 'rb')
request = asposewordscloud.models.requests.GetDocumentHyperlinksOnlineRequest(document=request_document)
words_api.get_document_hyperlinks_online(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
request = asposewordscloud.models.requests.GetDocumentPropertiesRequest(name='Sample.docx')
words_api.get_document_properties(request)
import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')