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 Dart code samples for Aspose.Words Cloud API
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final acceptRequest = AcceptAllRevisionsRequest('Sample.docx');
await wordsApi.acceptAllRevisions(acceptRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final acceptRequest = AcceptAllRevisionsOnlineRequest(requestDocument);
await wordsApi.acceptAllRevisionsOnline(acceptRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final remoteFileName = 'Sample.docx';
final requestDocumentListDocumentEntries0 = DocumentEntry();
requestDocumentListDocumentEntries0.href = remoteFileName;
requestDocumentListDocumentEntries0.importFormatMode = 'KeepSourceFormatting';
final requestDocumentListDocumentEntries = [
requestDocumentListDocumentEntries0];
final requestDocumentList = DocumentEntryList();
requestDocumentList.documentEntries = requestDocumentListDocumentEntries;
final appendRequest = AppendDocumentRequest(remoteFileName, requestDocumentList);
await wordsApi.appendDocument(appendRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final requestDocumentListDocumentEntries0 = DocumentEntry();
requestDocumentListDocumentEntries0.href = 'Sample.docx';
requestDocumentListDocumentEntries0.importFormatMode = 'KeepSourceFormatting';
final requestDocumentListDocumentEntries = [
requestDocumentListDocumentEntries0];
final requestDocumentList = DocumentEntryList();
requestDocumentList.documentEntries = requestDocumentListDocumentEntries;
final appendRequest = AppendDocumentOnlineRequest(requestDocument, requestDocumentList);
await wordsApi.appendDocumentOnline(appendRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestStyleApply = StyleApply();
requestStyleApply.styleName = 'Heading 1';
final applyStyleRequest = ApplyStyleToDocumentElementRequest('Sample.docx', 'paragraphs/1/paragraphFormat', requestStyleApply);
await wordsApi.applyStyleToDocumentElement(applyStyleRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final requestStyleApply = StyleApply();
requestStyleApply.styleName = 'Heading 1';
final applyStyleRequest = ApplyStyleToDocumentElementOnlineRequest(requestDocument, 'paragraphs/1/paragraphFormat', requestStyleApply);
await wordsApi.applyStyleToDocumentElementOnline(applyStyleRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestReportEngineSettingsReportBuildOptions = [
ReportBuildOptionsEnum.allowMissingMembers,
ReportBuildOptionsEnum.removeEmptyParagraphs];
final requestReportEngineSettings = ReportEngineSettings();
requestReportEngineSettings.dataSourceType = ReportEngineSettings_DataSourceTypeEnum.json;
requestReportEngineSettings.reportBuildOptions = requestReportEngineSettingsReportBuildOptions;
final buildReportRequest = BuildReportRequest('Sample.docx', 'Data.json', requestReportEngineSettings);
await wordsApi.buildReport(buildReportRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestTemplate = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final requestReportEngineSettings = ReportEngineSettings();
requestReportEngineSettings.dataSourceType = ReportEngineSettings_DataSourceTypeEnum.json;
requestReportEngineSettings.dataSourceName = 'persons';
final buildReportRequest = BuildReportOnlineRequest(requestTemplate, 'Data.json', requestReportEngineSettings);
await wordsApi.buildReportOnline(buildReportRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final classifyRequest = ClassifyRequest('Try text classification', bestClassesCount: '3');
await wordsApi.classify(classifyRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final classifyRequest = ClassifyDocumentRequest('Sample.docx', bestClassesCount: '3');
await wordsApi.classifyDocument(classifyRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final classifyRequest = ClassifyDocumentOnlineRequest(requestDocument, bestClassesCount: '3');
await wordsApi.classifyDocumentOnline(classifyRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestCompareData = CompareData();
requestCompareData.author = 'author';
requestCompareData.comparingWithDocument = 'TestCompareDocument2.doc';
requestCompareData.dateTime = DateTime(2015, 10, 26, 0, 0, 0);
final compareRequest = CompareDocumentRequest('TestCompareDocument1.doc', requestCompareData, destFileName: 'CompareDocumentOut.doc');
await wordsApi.compareDocument(compareRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('compareTestDoc1.doc').readAsBytes()).buffer.asByteData();
final requestCompareData = CompareData();
requestCompareData.author = 'author';
requestCompareData.comparingWithDocument = 'TestCompareDocument2.doc';
requestCompareData.dateTime = DateTime(2015, 10, 26, 0, 0, 0);
final requestComparingDocument = (await File('compareTestDoc2.doc').readAsBytes()).buffer.asByteData();
final compareRequest = CompareDocumentOnlineRequest(requestDocument, requestCompareData, comparingDocument: requestComparingDocument, destFileName: 'CompareDocumentOut.doc');
await wordsApi.compareDocumentOnline(compareRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final convertRequest = ConvertDocumentRequest(requestDocument, 'pdf');
await wordsApi.convertDocument(convertRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final convertRequest = ConvertDocumentRequest(requestDocument, 'pdf');
await wordsApi.convertDocument(convertRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final convertRequest = ConvertDocumentRequest(requestDocument, 'pdf');
await wordsApi.convertDocument(convertRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final copyRequest = CopyFileRequest('Copy.docx', 'Sample.docx');
await wordsApi.copyFile(copyRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final folderToCopy = '/TestCopyFolder';
final copyRequest = CopyFolderRequest(folderToCopy + 'Dest', folderToCopy + 'Src');
await wordsApi.copyFolder(copyRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestStyleCopy = StyleCopy();
requestStyleCopy.styleName = 'Heading 1';
final copyRequest = CopyStyleRequest('Sample.docx', requestStyleCopy);
await wordsApi.copyStyle(copyRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final requestStyleCopy = StyleCopy();
requestStyleCopy.styleName = 'Heading 1';
final copyRequest = CopyStyleOnlineRequest(requestDocument, requestStyleCopy);
await wordsApi.copyStyleOnline(copyRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final createRequest = CreateDocumentRequest(fileName: 'Sample.docx');
await wordsApi.createDocument(createRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final createRequest = CreateFolderRequest('/TestCreateFolder');
await wordsApi.createFolder(createRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestProperty = DocumentPropertyCreateOrUpdate();
requestProperty.value = 'John Doe';
final createRequest = CreateOrUpdateDocumentPropertyRequest('Sample.docx', 'AsposeAuthor', requestProperty);
await wordsApi.createOrUpdateDocumentProperty(createRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final requestProperty = DocumentPropertyCreateOrUpdate();
requestProperty.value = 'John Doe';
final createRequest = CreateOrUpdateDocumentPropertyOnlineRequest(requestDocument, 'AsposeAuthor', requestProperty);
await wordsApi.createOrUpdateDocumentPropertyOnline(createRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteAllParagraphTabStopsRequest('Sample.docx', 0);
await wordsApi.deleteAllParagraphTabStops(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteAllParagraphTabStopsOnlineRequest(requestDocument, 0);
await wordsApi.deleteAllParagraphTabStopsOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteBorderRequest('Sample.docx', 'left', nodePath: 'tables/1/rows/0/cells/0');
await wordsApi.deleteBorder(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteBorderOnlineRequest(requestDocument, 'left', nodePath: 'tables/1/rows/0/cells/0');
await wordsApi.deleteBorderOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteBordersRequest('Sample.docx', nodePath: 'tables/1/rows/0/cells/0');
await wordsApi.deleteBorders(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteBordersOnlineRequest(requestDocument, nodePath: 'tables/1/rows/0/cells/0');
await wordsApi.deleteBordersOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteCommentRequest('Sample.docx', 0);
await wordsApi.deleteComment(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteCommentOnlineRequest(requestDocument, 0);
await wordsApi.deleteCommentOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteCommentsRequest('Sample.docx');
await wordsApi.deleteComments(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteCommentsOnlineRequest(requestDocument);
await wordsApi.deleteCommentsOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteCustomXmlPartRequest('Sample.docx', 0);
await wordsApi.deleteCustomXmlPart(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteCustomXmlPartOnlineRequest(requestDocument, 0);
await wordsApi.deleteCustomXmlPartOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteCustomXmlPartsRequest('Sample.docx');
await wordsApi.deleteCustomXmlParts(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteCustomXmlPartsOnlineRequest(requestDocument);
await wordsApi.deleteCustomXmlPartsOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteDocumentPropertyRequest('Sample.docx', 'testProp');
await wordsApi.deleteDocumentProperty(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteDocumentPropertyOnlineRequest(requestDocument, 'testProp');
await wordsApi.deleteDocumentPropertyOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteDrawingObjectRequest('Sample.docx', 0);
await wordsApi.deleteDrawingObject(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteDrawingObjectOnlineRequest(requestDocument, 0);
await wordsApi.deleteDrawingObjectOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteFieldRequest('Sample.docx', 0);
await wordsApi.deleteField(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteFieldOnlineRequest(requestDocument, 0, nodePath: 'sections/0/paragraphs/0');
await wordsApi.deleteFieldOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteFieldsRequest('Sample.docx');
await wordsApi.deleteFields(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteFieldsOnlineRequest(requestDocument);
await wordsApi.deleteFieldsOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteFileRequest('Sample.docx');
await wordsApi.deleteFile(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteFolderRequest('');
await wordsApi.deleteFolder(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteFootnoteRequest('Sample.docx', 0);
await wordsApi.deleteFootnote(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.doc').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteFootnoteOnlineRequest(requestDocument, 0);
await wordsApi.deleteFootnoteOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteFormFieldRequest('Sample.docx', 0);
await wordsApi.deleteFormField(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteFormFieldOnlineRequest(requestDocument, 0, nodePath: 'sections/0');
await wordsApi.deleteFormFieldOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteHeaderFooterRequest('Sample.docx', '', 0);
await wordsApi.deleteHeaderFooter(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.doc').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteHeaderFooterOnlineRequest(requestDocument, '', 0);
await wordsApi.deleteHeaderFooterOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteHeadersFootersRequest('Sample.docx', '');
await wordsApi.deleteHeadersFooters(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.doc').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteHeadersFootersOnlineRequest(requestDocument, '');
await wordsApi.deleteHeadersFootersOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteMacrosRequest('Sample.docx');
await wordsApi.deleteMacros(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteMacrosOnlineRequest(requestDocument);
await wordsApi.deleteMacrosOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteOfficeMathObjectRequest('Sample.docx', 0);
await wordsApi.deleteOfficeMathObject(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteOfficeMathObjectOnlineRequest(requestDocument, 0);
await wordsApi.deleteOfficeMathObjectOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteParagraphRequest('Sample.docx', 0);
await wordsApi.deleteParagraph(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteParagraphListFormatRequest('Sample.docx', 0);
await wordsApi.deleteParagraphListFormat(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.doc').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteParagraphListFormatOnlineRequest(requestDocument, 0);
await wordsApi.deleteParagraphListFormatOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteParagraphOnlineRequest(requestDocument, 0);
await wordsApi.deleteParagraphOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteParagraphTabStopRequest('Sample.docx', 72.0, 0);
await wordsApi.deleteParagraphTabStop(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteParagraphTabStopOnlineRequest(requestDocument, 72.0, 0);
await wordsApi.deleteParagraphTabStopOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteRunRequest('Sample.docx', 'paragraphs/1', 0);
await wordsApi.deleteRun(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.doc').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteRunOnlineRequest(requestDocument, 'paragraphs/1', 0);
await wordsApi.deleteRunOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteSectionRequest('Sample.docx', 0);
await wordsApi.deleteSection(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteSectionOnlineRequest(requestDocument, 0);
await wordsApi.deleteSectionOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteTableRequest('Sample.docx', 1);
await wordsApi.deleteTable(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteTableCellRequest('Sample.docx', 'sections/0/tables/2/rows/0', 0);
await wordsApi.deleteTableCell(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteTableCellOnlineRequest(requestDocument, 'sections/0/tables/2/rows/0', 0);
await wordsApi.deleteTableCellOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteTableOnlineRequest(requestDocument, 1);
await wordsApi.deleteTableOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteTableRowRequest('Sample.docx', 'tables/1', 0);
await wordsApi.deleteTableRow(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteTableRowOnlineRequest(requestDocument, 'tables/1', 0);
await wordsApi.deleteTableRowOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final deleteRequest = DeleteWatermarkRequest('Sample.docx');
await wordsApi.deleteWatermark(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final deleteRequest = DeleteWatermarkOnlineRequest(requestDocument);
await wordsApi.deleteWatermarkOnline(deleteRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final downloadRequest = DownloadFileRequest('Sample.docx');
await wordsApi.downloadFile(downloadRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestOptionsCurrentUser = UserInformation();
requestOptionsCurrentUser.name = 'SdkTestUser';
final requestOptions = FieldOptions();
requestOptions.currentUser = requestOptionsCurrentUser;
final mailMergeRequest = ExecuteMailMergeRequest('Sample.docx', data: await context.loadTextFile('TestMailMergeData.xml'), options: requestOptions);
await wordsApi.executeMailMerge(mailMergeRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestTemplate = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final requestData = (await File(await context.loadTextFile('TestMailMergeData.xml')).readAsBytes()).buffer.asByteData();
final requestOptionsCurrentUser = UserInformation();
requestOptionsCurrentUser.name = 'SdkTestUser';
final requestOptions = FieldOptions();
requestOptions.currentUser = requestOptionsCurrentUser;
final mailMergeRequest = ExecuteMailMergeOnlineRequest(requestTemplate, requestData, options: requestOptions);
await wordsApi.executeMailMergeOnline(mailMergeRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestTemplate = (await File('TestMailMergeWithImages.doc').readAsBytes()).buffer.asByteData();
final requestData = (await File('MailMergeData.json').readAsBytes()).buffer.asByteData();
final mailMergeRequest = ExecuteMailMergeOnlineRequest(requestTemplate, requestData, documentFileName: 'Out_TestMailMergeWithImages.doc');
await wordsApi.executeMailMergeOnline(mailMergeRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestTemplate = (await File('template.doc').readAsBytes()).buffer.asByteData();
final requestData = (await File('TestPostDocumentExecuteMailMerge.txt').readAsBytes()).buffer.asByteData();
final mailMergeRequest = ExecuteMailMergeOnlineRequest(requestTemplate, requestData, documentFileName: 'Out_PostDocumentExecuteMailMergeWithHTMLData.docx');
await wordsApi.executeMailMergeOnline(mailMergeRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestTemplate = (await File('SampleMailMergeTemplate.docx').readAsBytes()).buffer.asByteData();
final requestData = (await File('SampleMailMergeTemplateData.xml').readAsBytes()).buffer.asByteData();
final mailMergeRequest = ExecuteMailMergeOnlineRequest(requestTemplate, requestData, documentFileName: 'Out_SampleMailMergeTemplate.docx');
await wordsApi.executeMailMergeOnline(mailMergeRequest);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetAvailableFontsRequest();
await wordsApi.getAvailableFonts(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetBookmarkByNameRequest('Sample.docx', 'aspose');
await wordsApi.getBookmarkByName(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetBookmarkByNameOnlineRequest(requestDocument, 'aspose');
await wordsApi.getBookmarkByNameOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetBookmarksRequest('Sample.docx');
await wordsApi.getBookmarks(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetBookmarksOnlineRequest(requestDocument);
await wordsApi.getBookmarksOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetBorderRequest('Sample.docx', 'left', nodePath: 'tables/1/rows/0/cells/0');
await wordsApi.getBorder(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetBorderOnlineRequest(requestDocument, 'left', nodePath: 'tables/1/rows/0/cells/0');
await wordsApi.getBorderOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetBordersRequest('Sample.docx', nodePath: 'tables/1/rows/0/cells/0');
await wordsApi.getBorders(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetBordersOnlineRequest(requestDocument, nodePath: 'tables/1/rows/0/cells/0');
await wordsApi.getBordersOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetCommentRequest('Sample.docx', 0);
await wordsApi.getComment(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetCommentOnlineRequest(requestDocument, 0);
await wordsApi.getCommentOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetCommentsRequest('Sample.docx');
await wordsApi.getComments(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetCommentsOnlineRequest(requestDocument);
await wordsApi.getCommentsOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetCustomXmlPartRequest('Sample.docx', 0);
await wordsApi.getCustomXmlPart(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetCustomXmlPartOnlineRequest(requestDocument, 0);
await wordsApi.getCustomXmlPartOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetCustomXmlPartsRequest('Sample.docx');
await wordsApi.getCustomXmlParts(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetCustomXmlPartsOnlineRequest(requestDocument);
await wordsApi.getCustomXmlPartsOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentRequest('Sample.docx');
await wordsApi.getDocument(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentDrawingObjectByIndexRequest('Sample.docx', 0);
await wordsApi.getDocumentDrawingObjectByIndex(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentDrawingObjectByIndexOnlineRequest(requestDocument, 0, nodePath: 'sections/0');
await wordsApi.getDocumentDrawingObjectByIndexOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentDrawingObjectImageDataRequest('Sample.docx', 0);
await wordsApi.getDocumentDrawingObjectImageData(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentDrawingObjectImageDataOnlineRequest(requestDocument, 0, nodePath: 'sections/0');
await wordsApi.getDocumentDrawingObjectImageDataOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentDrawingObjectOleDataRequest('Sample.docx', 0);
await wordsApi.getDocumentDrawingObjectOleData(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentDrawingObjectOleDataOnlineRequest(requestDocument, 0, nodePath: 'sections/0');
await wordsApi.getDocumentDrawingObjectOleDataOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentDrawingObjectsRequest('Sample.docx');
await wordsApi.getDocumentDrawingObjects(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentDrawingObjectsOnlineRequest(requestDocument, nodePath: 'sections/0');
await wordsApi.getDocumentDrawingObjectsOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentFieldNamesRequest('Sample.docx');
await wordsApi.getDocumentFieldNames(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestTemplate = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentFieldNamesOnlineRequest(requestTemplate, useNonMergeFields: true);
await wordsApi.getDocumentFieldNamesOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentHyperlinkByIndexRequest('Sample.docx', 0);
await wordsApi.getDocumentHyperlinkByIndex(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentHyperlinkByIndexOnlineRequest(requestDocument, 0);
await wordsApi.getDocumentHyperlinkByIndexOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentHyperlinksOnlineRequest(requestDocument);
await wordsApi.getDocumentHyperlinksOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentPropertiesRequest('Sample.docx');
await wordsApi.getDocumentProperties(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentPropertiesOnlineRequest(requestDocument);
await wordsApi.getDocumentPropertiesOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentPropertyRequest('Sample.docx', 'Author');
await wordsApi.getDocumentProperty(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentPropertyOnlineRequest(requestDocument, 'Author');
await wordsApi.getDocumentPropertyOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentProtectionRequest('Sample.docx');
await wordsApi.getDocumentProtection(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentProtectionOnlineRequest(requestDocument);
await wordsApi.getDocumentProtectionOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentStatisticsRequest('Sample.docx');
await wordsApi.getDocumentStatistics(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final requestDocument = (await File('Sample.docx').readAsBytes()).buffer.asByteData();
final request = GetDocumentStatisticsOnlineRequest(requestDocument);
await wordsApi.getDocumentStatisticsOnline(request);
import 'dart:io';
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final clientId = "####-####-####-####-####";
final clientSecret = "##################";
final config = Configuration(clientId, clientSecret);
final wordsApi = WordsApi(config);
final request = GetDocumentWithFormatRequest('Sample.docx', 'text', outPath: 'DocumentWithFormat.text');
await wordsApi.getDocumentWithFormat(request);