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 Swift code samples for Aspose.Words Cloud API
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let acceptRequest = AcceptAllRevisionsRequest(name: "Sample.docx");
_ = try api.acceptAllRevisions(request: acceptRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let acceptRequest = AcceptAllRevisionsOnlineRequest(document: requestDocument);
_ = try api.acceptAllRevisionsOnline(request: acceptRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let remoteFileName = "Sample.docx";
let requestDocumentListDocumentEntries0 = DocumentEntry()
.setHref(href: remoteFileName)
.setImportFormatMode(importFormatMode: "KeepSourceFormatting");
let requestDocumentListDocumentEntries = [
requestDocumentListDocumentEntries0
];
let requestDocumentList = DocumentEntryList()
.setDocumentEntries(documentEntries: requestDocumentListDocumentEntries);
let appendRequest = AppendDocumentRequest(name: remoteFileName, documentList: requestDocumentList);
_ = try api.appendDocument(request: appendRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let requestDocumentListDocumentEntries0 = DocumentEntry()
.setHref(href: "Sample.docx")
.setImportFormatMode(importFormatMode: "KeepSourceFormatting");
let requestDocumentListDocumentEntries = [
requestDocumentListDocumentEntries0
];
let requestDocumentList = DocumentEntryList()
.setDocumentEntries(documentEntries: requestDocumentListDocumentEntries);
let appendRequest = AppendDocumentOnlineRequest(document: requestDocument, documentList: requestDocumentList);
_ = try api.appendDocumentOnline(request: appendRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestStyleApply = StyleApply()
.setStyleName(styleName: "Heading 1");
let applyStyleRequest = ApplyStyleToDocumentElementRequest(name: "Sample.docx", styledNodePath: "paragraphs/1/paragraphFormat", styleApply: requestStyleApply);
_ = try api.applyStyleToDocumentElement(request: applyStyleRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let requestStyleApply = StyleApply()
.setStyleName(styleName: "Heading 1");
let applyStyleRequest = ApplyStyleToDocumentElementOnlineRequest(document: requestDocument, styledNodePath: "paragraphs/1/paragraphFormat", styleApply: requestStyleApply);
_ = try api.applyStyleToDocumentElementOnline(request: applyStyleRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestReportEngineSettingsReportBuildOptions = [
ReportBuildOptions.allowMissingMembers,
ReportBuildOptions.removeEmptyParagraphs
];
let requestReportEngineSettings = ReportEngineSettings()
.setDataSourceType(dataSourceType: ReportEngineSettings.DataSourceType.json)
.setReportBuildOptions(reportBuildOptions: requestReportEngineSettingsReportBuildOptions);
let buildReportRequest = BuildReportRequest(name: "Sample.docx", data: "Data.json", reportEngineSettings: requestReportEngineSettings);
_ = try api.buildReport(request: buildReportRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestTemplate = InputStream(url: URL(string: "Sample.docx"))!;
let requestReportEngineSettings = ReportEngineSettings()
.setDataSourceName(dataSourceName: "persons")
.setDataSourceType(dataSourceType: ReportEngineSettings.DataSourceType.json);
let buildReportRequest = BuildReportOnlineRequest(template: requestTemplate, data: "Data.json", reportEngineSettings: requestReportEngineSettings);
_ = try api.buildReportOnline(request: buildReportRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let classifyRequest = ClassifyRequest(text: "Try text classification", bestClassesCount: "3");
_ = try api.classify(request: classifyRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let classifyRequest = ClassifyDocumentRequest(name: "Sample.docx", bestClassesCount: "3");
_ = try api.classifyDocument(request: classifyRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let classifyRequest = ClassifyDocumentOnlineRequest(document: requestDocument, bestClassesCount: "3");
_ = try api.classifyDocumentOnline(request: classifyRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestCompareData = CompareData()
.setAuthor(author: "author")
.setComparingWithDocument(comparingWithDocument: "TestCompareDocument2.doc")
.setDateTime(dateTime: ObjectSerializer.customIso8601.date(from: "2015-10-26T00:00:00Z")!);
let compareRequest = CompareDocumentRequest(name: "TestCompareDocument1.doc", compareData: requestCompareData, destFileName: "CompareDocumentOut.doc");
_ = try api.compareDocument(request: compareRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "compareTestDoc1.doc"))!;
let requestCompareData = CompareData()
.setAuthor(author: "author")
.setComparingWithDocument(comparingWithDocument: "TestCompareDocument2.doc")
.setDateTime(dateTime: ObjectSerializer.customIso8601.date(from: "2015-10-26T00:00:00Z")!);
let requestComparingDocument = InputStream(url: URL(string: "compareTestDoc2.doc"))!;
let compareRequest = CompareDocumentOnlineRequest(document: requestDocument, compareData: requestCompareData, comparingDocument: requestComparingDocument, destFileName: "CompareDocumentOut.doc");
_ = try api.compareDocumentOnline(request: compareRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let convertRequest = ConvertDocumentRequest(document: requestDocument, format: "pdf");
_ = try api.convertDocument(request: convertRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let convertRequest = ConvertDocumentRequest(document: requestDocument, format: "pdf");
_ = try api.convertDocument(request: convertRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let convertRequest = ConvertDocumentRequest(document: requestDocument, format: "pdf");
_ = try api.convertDocument(request: convertRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let copyRequest = CopyFileRequest(destPath: "Copy.docx", srcPath: "Sample.docx");
_ = try api.copyFile(request: copyRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let folderToCopy = "/TestCopyFolder";
let copyRequest = CopyFolderRequest(destPath: folderToCopy + "Dest", srcPath: folderToCopy + "Src");
_ = try api.copyFolder(request: copyRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestStyleCopy = StyleCopy()
.setStyleName(styleName: "Heading 1");
let copyRequest = CopyStyleRequest(name: "Sample.docx", styleCopy: requestStyleCopy);
_ = try api.copyStyle(request: copyRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let requestStyleCopy = StyleCopy()
.setStyleName(styleName: "Heading 1");
let copyRequest = CopyStyleOnlineRequest(document: requestDocument, styleCopy: requestStyleCopy);
_ = try api.copyStyleOnline(request: copyRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let createRequest = CreateDocumentRequest(fileName: "Sample.docx");
_ = try api.createDocument(request: createRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let createRequest = CreateFolderRequest(path: "/TestCreateFolder");
_ = try api.createFolder(request: createRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestProperty = DocumentPropertyCreateOrUpdate()
.setValue(value: "John Doe");
let createRequest = CreateOrUpdateDocumentPropertyRequest(name: "Sample.docx", propertyName: "AsposeAuthor", property: requestProperty as! DocumentPropertyCreateOrUpdate);
_ = try api.createOrUpdateDocumentProperty(request: createRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let requestProperty = DocumentPropertyCreateOrUpdate()
.setValue(value: "John Doe");
let createRequest = CreateOrUpdateDocumentPropertyOnlineRequest(document: requestDocument, propertyName: "AsposeAuthor", property: requestProperty as! DocumentPropertyCreateOrUpdate);
_ = try api.createOrUpdateDocumentPropertyOnline(request: createRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteAllParagraphTabStopsRequest(name: "Sample.docx", index: 0);
_ = try api.deleteAllParagraphTabStops(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteAllParagraphTabStopsOnlineRequest(document: requestDocument, index: 0);
_ = try api.deleteAllParagraphTabStopsOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteBorderRequest(name: "Sample.docx", borderType: "left", nodePath: "tables/1/rows/0/cells/0");
_ = try api.deleteBorder(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteBorderOnlineRequest(document: requestDocument, borderType: "left", nodePath: "tables/1/rows/0/cells/0");
_ = try api.deleteBorderOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteBordersRequest(name: "Sample.docx", nodePath: "tables/1/rows/0/cells/0");
_ = try api.deleteBorders(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteBordersOnlineRequest(document: requestDocument, nodePath: "tables/1/rows/0/cells/0");
_ = try api.deleteBordersOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteCommentRequest(name: "Sample.docx", commentIndex: 0);
_ = try api.deleteComment(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteCommentOnlineRequest(document: requestDocument, commentIndex: 0);
_ = try api.deleteCommentOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteCommentsRequest(name: "Sample.docx");
_ = try api.deleteComments(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteCommentsOnlineRequest(document: requestDocument);
_ = try api.deleteCommentsOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteCustomXmlPartRequest(name: "Sample.docx", customXmlPartIndex: 0);
_ = try api.deleteCustomXmlPart(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteCustomXmlPartOnlineRequest(document: requestDocument, customXmlPartIndex: 0);
_ = try api.deleteCustomXmlPartOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteCustomXmlPartsRequest(name: "Sample.docx");
_ = try api.deleteCustomXmlParts(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteCustomXmlPartsOnlineRequest(document: requestDocument);
_ = try api.deleteCustomXmlPartsOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteDocumentPropertyRequest(name: "Sample.docx", propertyName: "testProp");
_ = try api.deleteDocumentProperty(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteDocumentPropertyOnlineRequest(document: requestDocument, propertyName: "testProp");
_ = try api.deleteDocumentPropertyOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteDrawingObjectRequest(name: "Sample.docx", index: 0);
_ = try api.deleteDrawingObject(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteDrawingObjectOnlineRequest(document: requestDocument, index: 0);
_ = try api.deleteDrawingObjectOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteFieldRequest(name: "Sample.docx", index: 0);
_ = try api.deleteField(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteFieldOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0/paragraphs/0");
_ = try api.deleteFieldOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteFieldsRequest(name: "Sample.docx");
_ = try api.deleteFields(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteFieldsOnlineRequest(document: requestDocument);
_ = try api.deleteFieldsOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteFileRequest(path: "Sample.docx");
_ = try api.deleteFile(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteFolderRequest(path: "");
_ = try api.deleteFolder(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteFootnoteRequest(name: "Sample.docx", index: 0);
_ = try api.deleteFootnote(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!;
let deleteRequest = DeleteFootnoteOnlineRequest(document: requestDocument, index: 0);
_ = try api.deleteFootnoteOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteFormFieldRequest(name: "Sample.docx", index: 0);
_ = try api.deleteFormField(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteFormFieldOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0");
_ = try api.deleteFormFieldOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteHeaderFooterRequest(name: "Sample.docx", sectionPath: "", index: 0);
_ = try api.deleteHeaderFooter(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!;
let deleteRequest = DeleteHeaderFooterOnlineRequest(document: requestDocument, sectionPath: "", index: 0);
_ = try api.deleteHeaderFooterOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteHeadersFootersRequest(name: "Sample.docx", sectionPath: "");
_ = try api.deleteHeadersFooters(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!;
let deleteRequest = DeleteHeadersFootersOnlineRequest(document: requestDocument, sectionPath: "");
_ = try api.deleteHeadersFootersOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteMacrosRequest(name: "Sample.docx");
_ = try api.deleteMacros(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteMacrosOnlineRequest(document: requestDocument);
_ = try api.deleteMacrosOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteOfficeMathObjectRequest(name: "Sample.docx", index: 0);
_ = try api.deleteOfficeMathObject(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteOfficeMathObjectOnlineRequest(document: requestDocument, index: 0);
_ = try api.deleteOfficeMathObjectOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteParagraphRequest(name: "Sample.docx", index: 0);
_ = try api.deleteParagraph(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteParagraphListFormatRequest(name: "Sample.docx", index: 0);
_ = try api.deleteParagraphListFormat(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!;
let deleteRequest = DeleteParagraphListFormatOnlineRequest(document: requestDocument, index: 0);
_ = try api.deleteParagraphListFormatOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteParagraphOnlineRequest(document: requestDocument, index: 0);
_ = try api.deleteParagraphOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteParagraphTabStopRequest(name: "Sample.docx", position: 72.0, index: 0);
_ = try api.deleteParagraphTabStop(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteParagraphTabStopOnlineRequest(document: requestDocument, position: 72.0, index: 0);
_ = try api.deleteParagraphTabStopOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteRunRequest(name: "Sample.docx", paragraphPath: "paragraphs/1", index: 0);
_ = try api.deleteRun(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!;
let deleteRequest = DeleteRunOnlineRequest(document: requestDocument, paragraphPath: "paragraphs/1", index: 0);
_ = try api.deleteRunOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteSectionRequest(name: "Sample.docx", sectionIndex: 0);
_ = try api.deleteSection(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteSectionOnlineRequest(document: requestDocument, sectionIndex: 0);
_ = try api.deleteSectionOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteTableRequest(name: "Sample.docx", index: 1);
_ = try api.deleteTable(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteTableCellRequest(name: "Sample.docx", tableRowPath: "sections/0/tables/2/rows/0", index: 0);
_ = try api.deleteTableCell(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteTableCellOnlineRequest(document: requestDocument, tableRowPath: "sections/0/tables/2/rows/0", index: 0);
_ = try api.deleteTableCellOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteTableOnlineRequest(document: requestDocument, index: 1);
_ = try api.deleteTableOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteTableRowRequest(name: "Sample.docx", tablePath: "tables/1", index: 0);
_ = try api.deleteTableRow(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteTableRowOnlineRequest(document: requestDocument, tablePath: "tables/1", index: 0);
_ = try api.deleteTableRowOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let deleteRequest = DeleteWatermarkRequest(name: "Sample.docx");
_ = try api.deleteWatermark(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let deleteRequest = DeleteWatermarkOnlineRequest(document: requestDocument);
_ = try api.deleteWatermarkOnline(request: deleteRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let downloadRequest = DownloadFileRequest(path: "Sample.docx");
_ = try api.downloadFile(request: downloadRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestOptionsCurrentUser = UserInformation()
.setName(name: "SdkTestUser");
let requestOptions = FieldOptions()
.setCurrentUser(currentUser: requestOptionsCurrentUser);
let mailMergeRequest = ExecuteMailMergeRequest(name: "Sample.docx", data: try String(contentsOf: self.getLocalTestDataFolder().appendingPathComponent("TestMailMergeData.xml", isDirectory: false)), options: requestOptions);
_ = try api.executeMailMerge(request: mailMergeRequest);
import Foundation;
import AsposeWordsCloud;
let clientId = "####-####-####-####-####";
let secret = "##################";
let wordsApi = WordsAPI(clientId: clientId, clientSecret: secret);
let fileName = "template.doc";
let destName = "Out_PostDocumentExecuteMailMergeWithHTMLData.docx";
// Upload original document to Cloud Storage
let requestUpload = UploadFileRequest(fileContent: InputStream(url: URL(fileURLWithPath: fileName))!, path: fileName);
let actual = try wordsApi.uploadFile(request: requestUpload);
let request = ExecuteMailMergeRequest(name: fileName, data: try String(contentsOf: URL(fileURLWithPath: "TestPostDocumentExecuteMailMerge.txt"), encoding: .utf8), folder: nil, storage: nil, withRegions: false, destFileName: destName);
let response = try wordsApi.executeMailMerge(request: request);
import Foundation;
import AsposeWordsCloud;
let clientId = "####-####-####-####-####";
let secret = "##################";
let wordsApi = WordsAPI(clientId: clientId, clientSecret: secret);
let fileName = "SampleMailMergeTemplate.docx";
let destName = "Out_SampleMailMergeTemplate.docx";
// Upload original document to Cloud Storage
let requestUpload = UploadFileRequest(fileContent: InputStream(url: URL(fileURLWithPath: fileName))!, path: fileName);
let actual = try wordsApi.uploadFile(request: requestUpload);
let request = ExecuteMailMergeRequest(name: fileName, data: try String(contentsOf: URL(fileURLWithPath: "SampleMailMergeTemplateData.xml"), encoding: .utf8), folder: nil, storage: nil, withRegions: false, destFileName: destName);
let response = try wordsApi.executeMailMerge(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestTemplate = InputStream(url: URL(string: "Sample.docx"))!;
let requestData = InputStream(url: URL(string: try String(contentsOf: self.getLocalTestDataFolder().appendingPathComponent("TestMailMergeData.xml", isDirectory: false))))!;
let requestOptionsCurrentUser = UserInformation()
.setName(name: "SdkTestUser");
let requestOptions = FieldOptions()
.setCurrentUser(currentUser: requestOptionsCurrentUser);
let mailMergeRequest = ExecuteMailMergeOnlineRequest(template: requestTemplate, data: requestData, options: requestOptions);
_ = try api.executeMailMergeOnline(request: mailMergeRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestTemplate = InputStream(url: URL(string: "TestMailMergeWithImages.doc"))!;
let requestData = InputStream(url: URL(string: "MailMergeData.json"))!;
let mailMergeRequest = ExecuteMailMergeOnlineRequest(template: requestTemplate, data: requestData, documentFileName: "Out_TestMailMergeWithImages.doc");
_ = try api.executeMailMergeOnline(request: mailMergeRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestTemplate = InputStream(url: URL(string: "template.doc"))!;
let requestData = InputStream(url: URL(string: "TestPostDocumentExecuteMailMerge.txt"))!;
let mailMergeRequest = ExecuteMailMergeOnlineRequest(template: requestTemplate, data: requestData, documentFileName: "Out_PostDocumentExecuteMailMergeWithHTMLData.docx");
_ = try api.executeMailMergeOnline(request: mailMergeRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestTemplate = InputStream(url: URL(string: "SampleMailMergeTemplate.docx"))!;
let requestData = InputStream(url: URL(string: "SampleMailMergeTemplateData.xml"))!;
let mailMergeRequest = ExecuteMailMergeOnlineRequest(template: requestTemplate, data: requestData, documentFileName: "Out_SampleMailMergeTemplate.docx");
_ = try api.executeMailMergeOnline(request: mailMergeRequest);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetAvailableFontsRequest();
_ = try api.getAvailableFonts(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetBookmarkByNameRequest(name: "Sample.docx", bookmarkName: "aspose");
_ = try api.getBookmarkByName(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetBookmarkByNameOnlineRequest(document: requestDocument, bookmarkName: "aspose");
_ = try api.getBookmarkByNameOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetBookmarksRequest(name: "Sample.docx");
_ = try api.getBookmarks(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetBookmarksOnlineRequest(document: requestDocument);
_ = try api.getBookmarksOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetBorderRequest(name: "Sample.docx", borderType: "left", nodePath: "tables/1/rows/0/cells/0");
_ = try api.getBorder(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetBorderOnlineRequest(document: requestDocument, borderType: "left", nodePath: "tables/1/rows/0/cells/0");
_ = try api.getBorderOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetBordersRequest(name: "Sample.docx", nodePath: "tables/1/rows/0/cells/0");
_ = try api.getBorders(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetBordersOnlineRequest(document: requestDocument, nodePath: "tables/1/rows/0/cells/0");
_ = try api.getBordersOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetCommentRequest(name: "Sample.docx", commentIndex: 0);
_ = try api.getComment(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetCommentOnlineRequest(document: requestDocument, commentIndex: 0);
_ = try api.getCommentOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetCommentsRequest(name: "Sample.docx");
_ = try api.getComments(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetCommentsOnlineRequest(document: requestDocument);
_ = try api.getCommentsOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetCustomXmlPartRequest(name: "Sample.docx", customXmlPartIndex: 0);
_ = try api.getCustomXmlPart(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetCustomXmlPartOnlineRequest(document: requestDocument, customXmlPartIndex: 0);
_ = try api.getCustomXmlPartOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetCustomXmlPartsRequest(name: "Sample.docx");
_ = try api.getCustomXmlParts(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetCustomXmlPartsOnlineRequest(document: requestDocument);
_ = try api.getCustomXmlPartsOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentRequest(documentName: "Sample.docx");
_ = try api.getDocument(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentDrawingObjectByIndexRequest(name: "Sample.docx", index: 0);
_ = try api.getDocumentDrawingObjectByIndex(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentDrawingObjectByIndexOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0");
_ = try api.getDocumentDrawingObjectByIndexOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentDrawingObjectImageDataRequest(name: "Sample.docx", index: 0);
_ = try api.getDocumentDrawingObjectImageData(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentDrawingObjectImageDataOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0");
_ = try api.getDocumentDrawingObjectImageDataOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentDrawingObjectOleDataRequest(name: "Sample.docx", index: 0);
_ = try api.getDocumentDrawingObjectOleData(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentDrawingObjectOleDataOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0");
_ = try api.getDocumentDrawingObjectOleDataOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentDrawingObjectsRequest(name: "Sample.docx");
_ = try api.getDocumentDrawingObjects(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentDrawingObjectsOnlineRequest(document: requestDocument, nodePath: "sections/0");
_ = try api.getDocumentDrawingObjectsOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentFieldNamesRequest(name: "Sample.docx");
_ = try api.getDocumentFieldNames(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestTemplate = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentFieldNamesOnlineRequest(template: requestTemplate, useNonMergeFields: true);
_ = try api.getDocumentFieldNamesOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentHyperlinkByIndexRequest(name: "Sample.docx", hyperlinkIndex: 0);
_ = try api.getDocumentHyperlinkByIndex(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentHyperlinkByIndexOnlineRequest(document: requestDocument, hyperlinkIndex: 0);
_ = try api.getDocumentHyperlinkByIndexOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentHyperlinksOnlineRequest(document: requestDocument);
_ = try api.getDocumentHyperlinksOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentPropertiesRequest(name: "Sample.docx");
_ = try api.getDocumentProperties(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentPropertiesOnlineRequest(document: requestDocument);
_ = try api.getDocumentPropertiesOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentPropertyRequest(name: "Sample.docx", propertyName: "Author");
_ = try api.getDocumentProperty(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentPropertyOnlineRequest(document: requestDocument, propertyName: "Author");
_ = try api.getDocumentPropertyOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentProtectionRequest(name: "Sample.docx");
_ = try api.getDocumentProtection(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentProtectionOnlineRequest(document: requestDocument);
_ = try api.getDocumentProtectionOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentStatisticsRequest(name: "Sample.docx");
_ = try api.getDocumentStatistics(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetDocumentStatisticsOnlineRequest(document: requestDocument);
_ = try api.getDocumentStatisticsOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetDocumentWithFormatRequest(name: "Sample.docx", format: "text", outPath: "DocumentWithFormat.text");
_ = try api.getDocumentWithFormat(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetFieldRequest(name: "Sample.docx", index: 0);
_ = try api.getField(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetFieldOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0/paragraphs/0");
_ = try api.getFieldOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetFieldsRequest(name: "Sample.docx");
_ = try api.getFields(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!;
let request = GetFieldsOnlineRequest(document: requestDocument, nodePath: "sections/0");
_ = try api.getFieldsOnline(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetFilesListRequest(path: "");
_ = try api.getFilesList(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let request = GetFootnoteRequest(name: "Sample.docx", index: 0);
_ = try api.getFootnote(request: request);
import AsposeWordsCloud
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!;
let request = GetFootnoteOnlineRequest(document: requestDocument, index: 0);
_ = try api.getFootnoteOnline(request: request);
import AsposeWordsCloud
let config