Last active
May 15, 2023 14:59
-
-
Save aspose-words-cloud-gists/790dbd2edd5d36f170732366f52cac4c to your computer and use it in GitHub Desktop.
This gist exceeds the recommended number of files (~10).
To access all files, please clone this gist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Gist contains Swift code samples for Aspose.Words Cloud API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let acceptRequest = AcceptAllRevisionsRequest(name: "Sample.docx"); | |
_ = try api.acceptAllRevisions(request: acceptRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let remoteFileName = "Sample.docx"; | |
let requestDocumentListDocumentEntries0FileReference = FileReference(remoteFilePath: remoteFileName); | |
let requestDocumentListDocumentEntries0 = DocumentEntry() | |
.setImportFormatMode(importFormatMode: "KeepSourceFormatting") | |
.setFileReference(fileReference: requestDocumentListDocumentEntries0FileReference); | |
let requestDocumentListDocumentEntries = [ | |
requestDocumentListDocumentEntries0 as! DocumentEntry | |
]; | |
let requestDocumentList = DocumentEntryList() | |
.setDocumentEntries(documentEntries: requestDocumentListDocumentEntries); | |
let appendRequest = AppendDocumentRequest(name: remoteFileName, documentList: requestDocumentList); | |
_ = try api.appendDocument(request: appendRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let localFile = "Sample.docx"; | |
let requestDocument = InputStream(url: URL(string: localFile))!; | |
let requestDocumentListDocumentEntries0FileReferenceStream = InputStream(url: self.getLocalTestDataFolder().appendingPathComponent(localFile, isDirectory: false))!; | |
let requestDocumentListDocumentEntries0FileReference = FileReference(localFileContent: requestDocumentListDocumentEntries0FileReferenceStream); | |
let requestDocumentListDocumentEntries0 = DocumentEntry() | |
.setImportFormatMode(importFormatMode: "KeepSourceFormatting") | |
.setFileReference(fileReference: requestDocumentListDocumentEntries0FileReference); | |
let requestDocumentListDocumentEntries = [ | |
requestDocumentListDocumentEntries0 as! DocumentEntry | |
]; | |
let requestDocumentList = DocumentEntryList() | |
.setDocumentEntries(documentEntries: requestDocumentListDocumentEntries); | |
let appendRequest = AppendDocumentOnlineRequest(document: requestDocument, documentList: requestDocumentList); | |
_ = try api.appendDocumentOnline(request: appendRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestCompressOptions = CompressOptions(); | |
let compressDocument = CompressDocumentRequest(name: "Sample.docx", compressOptions: requestCompressOptions); | |
_ = try api.compressDocument(request: compressDocument); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "TestCompress.docx"))!; | |
let requestCompressOptions = CompressOptions(); | |
let compressDocumentOnline = CompressDocumentOnlineRequest(document: requestDocument, compressOptions: requestCompressOptions); | |
_ = try api.compressDocumentOnline(request: compressDocumentOnline); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let copyRequest = CopyStylesFromTemplateRequest(name: "Sample.docx", templateName: "StyleTemplate.docx"); | |
_ = try api.copyStylesFromTemplate(request: copyRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let createRequest = CreateDocumentRequest(fileName: "Sample.docx"); | |
_ = try api.createDocument(request: createRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let createRequest = CreateFolderRequest(path: "/TestCreateFolder"); | |
_ = try api.createFolder(request: createRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteBookmarkRequest(name: "Sample.docx", bookmarkName: "aspose"); | |
_ = try api.deleteBookmark(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let deleteRequest = DeleteBookmarkOnlineRequest(document: requestDocument, bookmarkName: "aspose"); | |
_ = try api.deleteBookmarkOnline(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteBookmarksRequest(name: "Sample.docx"); | |
_ = try api.deleteBookmarks(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let deleteRequest = DeleteBookmarksOnlineRequest(document: requestDocument); | |
_ = try api.deleteBookmarksOnline(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteCommentsRequest(name: "Sample.docx"); | |
_ = try api.deleteComments(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteCustomXmlPartsRequest(name: "Sample.docx"); | |
_ = try api.deleteCustomXmlParts(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteFieldsRequest(name: "Sample.docx"); | |
_ = try api.deleteFields(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteFileRequest(path: "Sample.docx"); | |
_ = try api.deleteFile(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteFolderRequest(path: ""); | |
_ = try api.deleteFolder(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteMacrosRequest(name: "Sample.docx"); | |
_ = try api.deleteMacros(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteStructuredDocumentTagRequest(name: "Sample.docx", index: 0, nodePath: "sections/0/body/paragraphs/0"); | |
_ = try api.deleteStructuredDocumentTag(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let deleteRequest = DeleteStructuredDocumentTagOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0/body/paragraphs/0"); | |
_ = try api.deleteStructuredDocumentTagOnline(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let deleteRequest = DeleteWatermarkRequest(name: "Sample.docx"); | |
_ = try api.deleteWatermark(request: deleteRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let downloadRequest = DownloadFileRequest(path: "Sample.docx"); | |
_ = try api.downloadFile(request: downloadRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetAvailableFontsRequest(); | |
_ = try api.getAvailableFonts(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetBookmarksRequest(name: "Sample.docx"); | |
_ = try api.getBookmarks(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetCommentsRequest(name: "Sample.docx"); | |
_ = try api.getComments(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetCustomXmlPartsRequest(name: "Sample.docx"); | |
_ = try api.getCustomXmlParts(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetDocumentRequest(documentName: "Sample.docx"); | |
_ = try api.getDocument(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetDocumentDrawingObjectsRequest(name: "Sample.docx"); | |
_ = try api.getDocumentDrawingObjects(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetDocumentFieldNamesRequest(name: "Sample.docx"); | |
_ = try api.getDocumentFieldNames(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetDocumentHyperlinksRequest(name: "Sample.docx"); | |
_ = try api.getDocumentHyperlinks(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetDocumentPropertiesRequest(name: "Sample.docx"); | |
_ = try api.getDocumentProperties(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetDocumentProtectionRequest(name: "Sample.docx"); | |
_ = try api.getDocumentProtection(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetDocumentStatisticsRequest(name: "Sample.docx"); | |
_ = try api.getDocumentStatistics(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetFieldsRequest(name: "Sample.docx"); | |
_ = try api.getFields(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetFilesListRequest(path: ""); | |
_ = try api.getFilesList(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetFootnotesRequest(name: "Sample.docx"); | |
_ = try api.getFootnotes(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let request = GetFootnotesOnlineRequest(document: requestDocument); | |
_ = try api.getFootnotesOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetFormFieldRequest(name: "Sample.docx", index: 0); | |
_ = try api.getFormField(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetFormFieldOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0"); | |
_ = try api.getFormFieldOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetFormFieldsRequest(name: "Sample.docx"); | |
_ = try api.getFormFields(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetFormFieldsOnlineRequest(document: requestDocument, nodePath: "sections/0"); | |
_ = try api.getFormFieldsOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetInfoRequest(); | |
_ = try api.getInfo(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetListRequest(name: "TestGetLists.doc", listId: 1); | |
_ = try api.getList(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let request = GetListOnlineRequest(document: requestDocument, listId: 1); | |
_ = try api.getListOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetListsRequest(name: "TestGetLists.doc"); | |
_ = try api.getLists(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let request = GetListsOnlineRequest(document: requestDocument); | |
_ = try api.getListsOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetOfficeMathObjectRequest(name: "Sample.docx", index: 0); | |
_ = try api.getOfficeMathObject(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetOfficeMathObjectOnlineRequest(document: requestDocument, index: 0); | |
_ = try api.getOfficeMathObjectOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetOfficeMathObjectsRequest(name: "Sample.docx"); | |
_ = try api.getOfficeMathObjects(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetOfficeMathObjectsOnlineRequest(document: requestDocument); | |
_ = try api.getOfficeMathObjectsOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetParagraphRequest(name: "Sample.docx", index: 0); | |
_ = try api.getParagraph(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetParagraphFormatRequest(name: "Sample.docx", index: 0); | |
_ = try api.getParagraphFormat(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetParagraphFormatOnlineRequest(document: requestDocument, index: 0); | |
_ = try api.getParagraphFormatOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetParagraphListFormatRequest(name: "Sample.docx", index: 0); | |
_ = try api.getParagraphListFormat(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let request = GetParagraphListFormatOnlineRequest(document: requestDocument, index: 0); | |
_ = try api.getParagraphListFormatOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetParagraphOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0"); | |
_ = try api.getParagraphOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetParagraphsRequest(name: "Sample.docx"); | |
_ = try api.getParagraphs(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetParagraphsOnlineRequest(document: requestDocument, nodePath: "sections/0"); | |
_ = try api.getParagraphsOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetParagraphTabStopsRequest(name: "Sample.docx", index: 0); | |
_ = try api.getParagraphTabStops(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetParagraphTabStopsOnlineRequest(document: requestDocument, index: 0); | |
_ = try api.getParagraphTabStopsOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetPublicKeyRequest(); | |
_ = try api.getPublicKey(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetRangeTextRequest(name: "Sample.docx", rangeStartIdentifier: "id0.0.0", rangeEndIdentifier: "id0.0.1"); | |
_ = try api.getRangeText(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let request = GetRangeTextOnlineRequest(document: requestDocument, rangeStartIdentifier: "id0.0.0", rangeEndIdentifier: "id0.0.1"); | |
_ = try api.getRangeTextOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetRunRequest(name: "Sample.docx", paragraphPath: "paragraphs/0", index: 0); | |
_ = try api.getRun(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetRunFontRequest(name: "Sample.docx", paragraphPath: "paragraphs/0", index: 0); | |
_ = try api.getRunFont(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetRunFontOnlineRequest(document: requestDocument, paragraphPath: "paragraphs/0", index: 0); | |
_ = try api.getRunFontOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetRunOnlineRequest(document: requestDocument, paragraphPath: "paragraphs/0", index: 0); | |
_ = try api.getRunOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetRunsRequest(name: "Sample.docx", paragraphPath: "sections/0/paragraphs/0"); | |
_ = try api.getRuns(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetRunsOnlineRequest(document: requestDocument, paragraphPath: "sections/0/paragraphs/0"); | |
_ = try api.getRunsOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetSectionRequest(name: "Sample.docx", sectionIndex: 0); | |
_ = try api.getSection(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetSectionOnlineRequest(document: requestDocument, sectionIndex: 0); | |
_ = try api.getSectionOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetSectionPageSetupRequest(name: "Sample.docx", sectionIndex: 0); | |
_ = try api.getSectionPageSetup(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetSectionPageSetupOnlineRequest(document: requestDocument, sectionIndex: 0); | |
_ = try api.getSectionPageSetupOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetSectionsRequest(name: "Sample.docx"); | |
_ = try api.getSections(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetSectionsOnlineRequest(document: requestDocument); | |
_ = try api.getSectionsOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetStructuredDocumentTagRequest(name: "Sample.docx", index: 0, nodePath: "sections/0/body/paragraphs/0"); | |
_ = try api.getStructuredDocumentTag(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetStructuredDocumentTagOnlineRequest(document: requestDocument, index: 0, nodePath: "sections/0/body/paragraphs/0"); | |
_ = try api.getStructuredDocumentTagOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetStyleRequest(name: "Sample.docx", styleName: "Heading 1"); | |
_ = try api.getStyle(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetStyleFromDocumentElementRequest(name: "Sample.docx", styledNodePath: "paragraphs/1/paragraphFormat"); | |
_ = try api.getStyleFromDocumentElement(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetStyleFromDocumentElementOnlineRequest(document: requestDocument, styledNodePath: "paragraphs/1/paragraphFormat"); | |
_ = try api.getStyleFromDocumentElementOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetStyleOnlineRequest(document: requestDocument, styleName: "Heading 1"); | |
_ = try api.getStyleOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetStylesRequest(name: "Sample.docx"); | |
_ = try api.getStyles(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetStylesOnlineRequest(document: requestDocument); | |
_ = try api.getStylesOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetTableRequest(name: "Sample.docx", index: 1); | |
_ = try api.getTable(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetTableCellRequest(name: "Sample.docx", tableRowPath: "sections/0/tables/2/rows/0", index: 0); | |
_ = try api.getTableCell(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetTableCellFormatRequest(name: "Sample.docx", tableRowPath: "sections/0/tables/2/rows/0", index: 0); | |
_ = try api.getTableCellFormat(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetTableCellFormatOnlineRequest(document: requestDocument, tableRowPath: "sections/0/tables/2/rows/0", index: 0); | |
_ = try api.getTableCellFormatOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetTableCellOnlineRequest(document: requestDocument, tableRowPath: "sections/0/tables/2/rows/0", index: 0); | |
_ = try api.getTableCellOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetTableOnlineRequest(document: requestDocument, index: 1); | |
_ = try api.getTableOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetTablePropertiesRequest(name: "Sample.docx", index: 1); | |
_ = try api.getTableProperties(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetTablePropertiesOnlineRequest(document: requestDocument, index: 1); | |
_ = try api.getTablePropertiesOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetTableRowRequest(name: "Sample.docx", tablePath: "tables/1", index: 0); | |
_ = try api.getTableRow(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetTableRowFormatRequest(name: "Sample.docx", tablePath: "sections/0/tables/2", index: 0); | |
_ = try api.getTableRowFormat(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetTableRowFormatOnlineRequest(document: requestDocument, tablePath: "sections/0/tables/2", index: 0); | |
_ = try api.getTableRowFormatOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetTableRowOnlineRequest(document: requestDocument, tablePath: "tables/1", index: 0); | |
_ = try api.getTableRowOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let request = GetTablesRequest(name: "Sample.docx"); | |
_ = try api.getTables(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let request = GetTablesOnlineRequest(document: requestDocument); | |
_ = try api.getTablesOnline(request: request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestBookmarkStartRange = NewDocumentPosition() | |
.setNodeId(nodeId: "0.0.0.0") | |
.setOffset(offset: 0); | |
let requestBookmarkEndRange = NewDocumentPosition() | |
.setNodeId(nodeId: "0.0.0.0") | |
.setOffset(offset: 0); | |
let requestBookmark = BookmarkInsert() | |
.setEndRange(endRange: requestBookmarkEndRange) | |
.setStartRange(startRange: requestBookmarkStartRange) | |
.setName(name: "new_bookmark") | |
.setText(text: "Some text"); | |
let insertRequest = InsertBookmarkRequest(name: "Sample.docx", bookmark: requestBookmark as! BookmarkInsert); | |
_ = try api.insertBookmark(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestBookmarkStartRange = NewDocumentPosition() | |
.setNodeId(nodeId: "0.0.0.0") | |
.setOffset(offset: 0); | |
let requestBookmarkEndRange = NewDocumentPosition() | |
.setNodeId(nodeId: "0.0.0.0") | |
.setOffset(offset: 0); | |
let requestBookmark = BookmarkInsert() | |
.setEndRange(endRange: requestBookmarkEndRange) | |
.setStartRange(startRange: requestBookmarkStartRange) | |
.setName(name: "new_bookmark") | |
.setText(text: "Some text"); | |
let insertRequest = InsertBookmarkOnlineRequest(document: requestDocument, bookmark: requestBookmark as! BookmarkInsert); | |
_ = try api.insertBookmarkOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestCommentRangeStart = NewDocumentPosition() | |
.setNodeId(nodeId: "0.3.0.3") | |
.setOffset(offset: 0); | |
let requestCommentRangeEnd = NewDocumentPosition() | |
.setNodeId(nodeId: "0.3.0.3") | |
.setOffset(offset: 0); | |
let requestComment = CommentInsert() | |
.setAuthor(author: "John Doe") | |
.setInitial(initial: "IA") | |
.setRangeEnd(rangeEnd: requestCommentRangeEnd) | |
.setRangeStart(rangeStart: requestCommentRangeStart) | |
.setText(text: "A new Comment"); | |
let insertRequest = InsertCommentRequest(name: "Sample.docx", comment: requestComment as! CommentInsert); | |
_ = try api.insertComment(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestCommentRangeStart = NewDocumentPosition() | |
.setNodeId(nodeId: "0.3.0.3") | |
.setOffset(offset: 0); | |
let requestCommentRangeEnd = NewDocumentPosition() | |
.setNodeId(nodeId: "0.3.0.3") | |
.setOffset(offset: 0); | |
let requestComment = CommentInsert() | |
.setAuthor(author: "John Doe") | |
.setInitial(initial: "IA") | |
.setRangeEnd(rangeEnd: requestCommentRangeEnd) | |
.setRangeStart(rangeStart: requestCommentRangeStart) | |
.setText(text: "A new Comment"); | |
let insertRequest = InsertCommentOnlineRequest(document: requestDocument, comment: requestComment as! CommentInsert); | |
_ = try api.insertCommentOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestCustomXmlPart = CustomXmlPartInsert() | |
.setData(data: "<data>Hello world</data>") | |
.setId(id: "hello"); | |
let insertRequest = InsertCustomXmlPartRequest(name: "Sample.docx", customXmlPart: requestCustomXmlPart as! CustomXmlPartInsert); | |
_ = try api.insertCustomXmlPart(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestCustomXmlPart = CustomXmlPartInsert() | |
.setData(data: "<data>Hello world</data>") | |
.setId(id: "hello"); | |
let insertRequest = InsertCustomXmlPartOnlineRequest(document: requestDocument, customXmlPart: requestCustomXmlPart as! CustomXmlPartInsert); | |
_ = try api.insertCustomXmlPartOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDrawingObject = DrawingObjectInsert() | |
.setHeight(height: 0) | |
.setLeft(_left: 0) | |
.setRelativeHorizontalPosition(relativeHorizontalPosition: DrawingObjectInsert.RelativeHorizontalPosition.margin) | |
.setRelativeVerticalPosition(relativeVerticalPosition: DrawingObjectInsert.RelativeVerticalPosition.margin) | |
.setTop(top: 0) | |
.setWidth(width: 0) | |
.setWrapType(wrapType: DrawingObjectInsert.WrapType.inline); | |
let requestImageFile = InputStream(url: URL(string: "Image.png"))!; | |
let insertRequest = InsertDrawingObjectRequest(name: "Sample.docx", drawingObject: requestDrawingObject, imageFile: requestImageFile); | |
_ = try api.insertDrawingObject(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestDrawingObject = DrawingObjectInsert() | |
.setHeight(height: 0) | |
.setLeft(_left: 0) | |
.setRelativeHorizontalPosition(relativeHorizontalPosition: DrawingObjectInsert.RelativeHorizontalPosition.margin) | |
.setRelativeVerticalPosition(relativeVerticalPosition: DrawingObjectInsert.RelativeVerticalPosition.margin) | |
.setTop(top: 0) | |
.setWidth(width: 0) | |
.setWrapType(wrapType: DrawingObjectInsert.WrapType.inline); | |
let requestImageFile = InputStream(url: URL(string: "Image.png"))!; | |
let insertRequest = InsertDrawingObjectOnlineRequest(document: requestDocument, drawingObject: requestDrawingObject, imageFile: requestImageFile); | |
_ = try api.insertDrawingObjectOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestField = FieldInsert() | |
.setFieldCode(fieldCode: "{ NUMPAGES }"); | |
let insertRequest = InsertFieldRequest(name: "Sample.docx", field: requestField as! FieldInsert); | |
_ = try api.insertField(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestField = FieldInsert() | |
.setFieldCode(fieldCode: "{ NUMPAGES }"); | |
let insertRequest = InsertFieldOnlineRequest(document: requestDocument, field: requestField as! FieldInsert, nodePath: "sections/0/paragraphs/0"); | |
_ = try api.insertFieldOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestFootnoteDto = FootnoteInsert() | |
.setFootnoteType(footnoteType: FootnoteInsert.FootnoteType.endnote) | |
.setText(text: "test endnote"); | |
let insertRequest = InsertFootnoteRequest(name: "Sample.docx", footnoteDto: requestFootnoteDto as! FootnoteInsert); | |
_ = try api.insertFootnote(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let requestFootnoteDto = FootnoteInsert() | |
.setFootnoteType(footnoteType: FootnoteInsert.FootnoteType.endnote) | |
.setText(text: "test endnote"); | |
let insertRequest = InsertFootnoteOnlineRequest(document: requestDocument, footnoteDto: requestFootnoteDto as! FootnoteInsert); | |
_ = try api.insertFootnoteOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestFormField = FormFieldTextInput() | |
.setTextInputDefault(textInputDefault: "123") | |
.setTextInputFormat(textInputFormat: "UPPERCASE") | |
.setTextInputType(textInputType: FormFieldTextInput.TextInputType.regular) | |
.setCalculateOnExit(calculateOnExit: true) | |
.setEnabled(enabled: true) | |
.setName(name: "FullName") | |
.setStatusText(statusText: ""); | |
let insertRequest = InsertFormFieldRequest(name: "Sample.docx", formField: requestFormField as! FormFieldTextInput); | |
_ = try api.insertFormField(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestFormField = FormFieldTextInput() | |
.setTextInputDefault(textInputDefault: "123") | |
.setTextInputFormat(textInputFormat: "UPPERCASE") | |
.setTextInputType(textInputType: FormFieldTextInput.TextInputType.regular) | |
.setCalculateOnExit(calculateOnExit: true) | |
.setEnabled(enabled: true) | |
.setName(name: "FullName") | |
.setStatusText(statusText: ""); | |
let insertRequest = InsertFormFieldOnlineRequest(document: requestDocument, formField: requestFormField as! FormFieldTextInput, nodePath: "sections/0/paragraphs/0"); | |
_ = try api.insertFormFieldOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestListInsert = ListInsert() | |
.setTemplate(template: ListInsert.Template.outlineLegal); | |
let insertRequest = InsertListRequest(name: "TestGetLists.doc", listInsert: requestListInsert); | |
_ = try api.insertList(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let requestListInsert = ListInsert() | |
.setTemplate(template: ListInsert.Template.outlineLegal); | |
let insertRequest = InsertListOnlineRequest(document: requestDocument, listInsert: requestListInsert); | |
_ = try api.insertListOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestTabStopInsertDto = TabStopInsert() | |
.setAlignment(alignment: TabStopInsert.Alignment._left) | |
.setLeader(leader: TabStopInsert.Leader._none) | |
.setPosition(position: 100.0); | |
let insertRequest = InsertOrUpdateParagraphTabStopRequest(name: "Sample.docx", index: 0, tabStopInsertDto: requestTabStopInsertDto as! TabStopInsert); | |
_ = try api.insertOrUpdateParagraphTabStop(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestTabStopInsertDto = TabStopInsert() | |
.setAlignment(alignment: TabStopInsert.Alignment._left) | |
.setLeader(leader: TabStopInsert.Leader._none) | |
.setPosition(position: 72); | |
let insertRequest = InsertOrUpdateParagraphTabStopOnlineRequest(document: requestDocument, tabStopInsertDto: requestTabStopInsertDto as! TabStopInsert, index: 0); | |
_ = try api.insertOrUpdateParagraphTabStopOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestPageNumber = PageNumber() | |
.setAlignment(alignment: "center") | |
.setFormat(format: "{PAGE} of {NUMPAGES}"); | |
let insertRequest = InsertPageNumbersRequest(name: "Sample.docx", pageNumber: requestPageNumber); | |
_ = try api.insertPageNumbers(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestPageNumber = PageNumber() | |
.setAlignment(alignment: "center") | |
.setFormat(format: "{PAGE} of {NUMPAGES}"); | |
let insertRequest = InsertPageNumbersOnlineRequest(document: requestDocument, pageNumber: requestPageNumber); | |
_ = try api.insertPageNumbersOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestParagraph = ParagraphInsert() | |
.setText(text: "This is a new paragraph for your document"); | |
let insertRequest = InsertParagraphRequest(name: "Sample.docx", paragraph: requestParagraph); | |
_ = try api.insertParagraph(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestParagraph = ParagraphInsert() | |
.setText(text: "This is a new paragraph for your document"); | |
let insertRequest = InsertParagraphOnlineRequest(document: requestDocument, paragraph: requestParagraph, nodePath: "sections/0"); | |
_ = try api.insertParagraphOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestRun = RunInsert() | |
.setText(text: "run with text"); | |
let insertRequest = InsertRunRequest(name: "Sample.docx", paragraphPath: "paragraphs/1", run: requestRun as! RunInsert); | |
_ = try api.insertRun(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let requestRun = RunInsert() | |
.setText(text: "run with text"); | |
let insertRequest = InsertRunOnlineRequest(document: requestDocument, paragraphPath: "paragraphs/1", run: requestRun as! RunInsert); | |
_ = try api.insertRunOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestStructuredDocumentTag = StructuredDocumentTagInsert() | |
.setLevel(level: StructuredDocumentTagInsert.Level.inline) | |
.setSdtType(sdtType: StructuredDocumentTagInsert.SdtType.comboBox); | |
let insertRequest = InsertStructuredDocumentTagRequest(name: "Sample.docx", structuredDocumentTag: requestStructuredDocumentTag as! StructuredDocumentTagInsert, nodePath: "sections/0/body/paragraphs/0"); | |
_ = try api.insertStructuredDocumentTag(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestStructuredDocumentTag = StructuredDocumentTagInsert() | |
.setLevel(level: StructuredDocumentTagInsert.Level.inline) | |
.setSdtType(sdtType: StructuredDocumentTagInsert.SdtType.comboBox); | |
let insertRequest = InsertStructuredDocumentTagOnlineRequest(document: requestDocument, structuredDocumentTag: requestStructuredDocumentTag as! StructuredDocumentTagInsert, nodePath: "sections/0/body/paragraphs/0"); | |
_ = try api.insertStructuredDocumentTagOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestStyleInsert = StyleInsert() | |
.setStyleName(styleName: "My Style") | |
.setStyleType(styleType: StyleInsert.StyleType.paragraph); | |
let insertRequest = InsertStyleRequest(name: "Sample.docx", styleInsert: requestStyleInsert); | |
_ = try api.insertStyle(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestStyleInsert = StyleInsert() | |
.setStyleName(styleName: "My Style") | |
.setStyleType(styleType: StyleInsert.StyleType.paragraph); | |
let insertRequest = InsertStyleOnlineRequest(document: requestDocument, styleInsert: requestStyleInsert); | |
_ = try api.insertStyleOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestTable = TableInsert() | |
.setColumnsCount(columnsCount: 5) | |
.setRowsCount(rowsCount: 4); | |
let insertRequest = InsertTableRequest(name: "Sample.docx", table: requestTable); | |
_ = try api.insertTable(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestCell = TableCellInsert(); | |
let insertRequest = InsertTableCellRequest(name: "Sample.docx", tableRowPath: "sections/0/tables/2/rows/0", cell: requestCell); | |
_ = try api.insertTableCell(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestCell = TableCellInsert(); | |
let insertRequest = InsertTableCellOnlineRequest(document: requestDocument, tableRowPath: "sections/0/tables/2/rows/0", cell: requestCell); | |
_ = try api.insertTableCellOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestTable = TableInsert() | |
.setColumnsCount(columnsCount: 5) | |
.setRowsCount(rowsCount: 4); | |
let insertRequest = InsertTableOnlineRequest(document: requestDocument, table: requestTable); | |
_ = try api.insertTableOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestRow = TableRowInsert() | |
.setColumnsCount(columnsCount: 5); | |
let insertRequest = InsertTableRowRequest(name: "Sample.docx", tablePath: "sections/0/tables/2", row: requestRow); | |
_ = try api.insertTableRow(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestRow = TableRowInsert() | |
.setColumnsCount(columnsCount: 5); | |
let insertRequest = InsertTableRowOnlineRequest(document: requestDocument, tablePath: "sections/0/tables/2", row: requestRow); | |
_ = try api.insertTableRowOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let insertRequest = InsertWatermarkImageRequest(name: "Sample.docx", imageFile: nil, image: "Sample.png"); | |
_ = try api.insertWatermarkImage(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestImageFile = InputStream(url: URL(string: "Image.png"))!; | |
let insertRequest = InsertWatermarkImageOnlineRequest(document: requestDocument, imageFile: requestImageFile); | |
_ = try api.insertWatermarkImageOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestWatermarkText = WatermarkText() | |
.setRotationAngle(rotationAngle: 90.0) | |
.setText(text: "This is the text"); | |
let insertRequest = InsertWatermarkTextRequest(name: "Sample.docx", watermarkText: requestWatermarkText); | |
_ = try api.insertWatermarkText(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestWatermarkText = WatermarkText() | |
.setRotationAngle(rotationAngle: 90) | |
.setText(text: "This is the text"); | |
let insertRequest = InsertWatermarkTextOnlineRequest(document: requestDocument, watermarkText: requestWatermarkText); | |
_ = try api.insertWatermarkTextOnline(request: insertRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDataSaveOptions = DocSaveOptionsData() | |
.setDmlEffectsRenderingMode(dmlEffectsRenderingMode: DocSaveOptionsData.DmlEffectsRenderingMode._none) | |
.setDmlRenderingMode(dmlRenderingMode: DocSaveOptionsData.DmlRenderingMode.drawingML) | |
.setFileName(fileName: "google.doc") | |
.setUpdateSdtContent(updateSdtContent: false) | |
.setZipOutput(zipOutput: false); | |
let requestData = LoadWebDocumentData() | |
.setLoadingDocumentUrl(loadingDocumentUrl: "http://google.com") | |
.setSaveOptions(saveOptions: requestDataSaveOptions as! DocSaveOptionsData); | |
let loadRequest = LoadWebDocumentRequest(data: requestData); | |
_ = try api.loadWebDocument(request: loadRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let moveRequest = MoveFileRequest(destPath: "MoveFileSample.docx", srcPath: "Sample.docx"); | |
_ = try api.moveFile(request: moveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let moveRequest = MoveFolderRequest(destPath: "/TestMoveFolderDest_Sample", srcPath: "/TestMoveFolderSrc"); | |
_ = try api.moveFolder(request: moveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestOptions = OptimizationOptions() | |
.setMsWordVersion(msWordVersion: OptimizationOptions.MsWordVersion.word2002); | |
let optimizeRequest = OptimizeDocumentRequest(name: "Sample.docx", options: requestOptions); | |
_ = try api.optimizeDocument(request: optimizeRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestOptions = OptimizationOptions() | |
.setMsWordVersion(msWordVersion: OptimizationOptions.MsWordVersion.word2002); | |
let optimizeRequest = OptimizeDocumentOnlineRequest(document: requestDocument, options: requestOptions); | |
_ = try api.optimizeDocumentOnline(request: optimizeRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestProtectionRequest = ProtectionRequest() | |
.setPassword(password: "123") | |
.setProtectionType(protectionType: "ReadOnly"); | |
let protectRequest = ProtectDocumentRequest(name: "Sample.docx", protectionRequest: requestProtectionRequest); | |
_ = try api.protectDocument(request: protectRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestProtectionRequest = ProtectionRequest() | |
.setNewPassword(newPassword: "123"); | |
let protectRequest = ProtectDocumentOnlineRequest(document: requestDocument, protectionRequest: requestProtectionRequest); | |
_ = try api.protectDocumentOnline(request: protectRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let rejectRequest = RejectAllRevisionsRequest(name: "Sample.docx"); | |
_ = try api.rejectAllRevisions(request: rejectRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let rejectRequest = RejectAllRevisionsOnlineRequest(document: requestDocument); | |
_ = try api.rejectAllRevisionsOnline(request: rejectRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let removeRequest = RemoveRangeRequest(name: "Sample.docx", rangeStartIdentifier: "id0.0.0", rangeEndIdentifier: "id0.0.1"); | |
_ = try api.removeRange(request: removeRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let removeRequest = RemoveRangeOnlineRequest(document: requestDocument, rangeStartIdentifier: "id0.0.0", rangeEndIdentifier: "id0.0.1"); | |
_ = try api.removeRangeOnline(request: removeRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let renderRequest = RenderDrawingObjectRequest(name: "Sample.docx", format: "png", index: 0); | |
_ = try api.renderDrawingObject(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let renderRequest = RenderDrawingObjectOnlineRequest(document: requestDocument, format: "png", index: 0, nodePath: "sections/0"); | |
_ = try api.renderDrawingObjectOnline(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let renderRequest = RenderMathObjectRequest(name: "Sample.docx", format: "png", index: 0); | |
_ = try api.renderMathObject(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let renderRequest = RenderMathObjectOnlineRequest(document: requestDocument, format: "png", index: 0); | |
_ = try api.renderMathObjectOnline(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let renderRequest = RenderPageRequest(name: "Sample.docx", pageIndex: 1, format: "jpg"); | |
_ = try api.renderPage(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let renderRequest = RenderPageOnlineRequest(document: requestDocument, pageIndex: 1, format: "jpg"); | |
_ = try api.renderPageOnline(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let renderRequest = RenderParagraphRequest(name: "Sample.docx", format: "png", index: 0); | |
_ = try api.renderParagraph(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let renderRequest = RenderParagraphOnlineRequest(document: requestDocument, format: "png", index: 0); | |
_ = try api.renderParagraphOnline(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let renderRequest = RenderTableRequest(name: "Sample.docx", format: "png", index: 0); | |
_ = try api.renderTable(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let renderRequest = RenderTableOnlineRequest(document: requestDocument, format: "png", index: 0); | |
_ = try api.renderTableOnline(request: renderRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestReplaceText = ReplaceTextParameters() | |
.setNewValue(newValue: "Aspose testing") | |
.setOldValue(oldValue: "Testing"); | |
let replaceRequest = ReplaceTextRequest(name: "Sample.docx", replaceText: requestReplaceText); | |
_ = try api.replaceText(request: replaceRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestReplaceText = ReplaceTextParameters() | |
.setNewValue(newValue: "aspose new") | |
.setOldValue(oldValue: "aspose"); | |
let replaceRequest = ReplaceTextOnlineRequest(document: requestDocument, replaceText: requestReplaceText); | |
_ = try api.replaceTextOnline(request: replaceRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestRangeText = ReplaceRange() | |
.setText(text: "Replaced header"); | |
let replaceRequest = ReplaceWithTextRequest(name: "Sample.docx", rangeStartIdentifier: "id0.0.0", rangeText: requestRangeText, rangeEndIdentifier: "id0.0.1"); | |
_ = try api.replaceWithText(request: replaceRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let requestRangeText = ReplaceRange() | |
.setText(text: "Replaced header"); | |
let replaceRequest = ReplaceWithTextOnlineRequest(document: requestDocument, rangeStartIdentifier: "id0.0.0", rangeText: requestRangeText, rangeEndIdentifier: "id0.0.1"); | |
_ = try api.replaceWithTextOnline(request: replaceRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let resetRequest = ResetCacheRequest(); | |
_ = try api.resetCache(request: resetRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestSaveOptionsData = DocxSaveOptionsData() | |
.setFileName(fileName: "FromPdfToDoc.docx"); | |
let saveRequest = SaveAsRequest(name: "Sample.docx", saveOptionsData: requestSaveOptionsData as! DocxSaveOptionsData); | |
_ = try api.saveAs(request: saveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation; | |
import AsposeWordsCloud; | |
let clientId = "####-####-####-####-####"; | |
let secret = "##################"; | |
let wordsApi = WordsAPI(clientId: clientId, clientSecret: secret); | |
let fileName = "test_multi_pages.docx"; | |
let format = "pdf"; | |
let destName = "Out_test_multi_pages.pdf"; | |
// 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 saveOptionsData = SaveOptionsData(); | |
saveOptionsData.setSaveFormat(saveFormat: format); | |
saveOptionsData.setFileName(fileName: destName); | |
let request = SaveAsRequest(name: fileName, saveOptionsData: saveOptionsData, folder: nil, storage: nil); | |
let response = try wordsApi.saveAs(request: request); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation; | |
import AsposeWordsCloud; | |
let clientId = "####-####-####-####-####"; | |
let secret = "##################"; | |
let wordsApi = WordsAPI(clientId: clientId, clientSecret: secret); | |
let fileName = "test_multi_pages.docx"; | |
let format = "html"; | |
let destName = "Out_test_multi_pages.html"; | |
// 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 saveOptionsData = SaveOptionsData(); | |
saveOptionsData.setSaveFormat(saveFormat: format); | |
saveOptionsData.setFileName(fileName: destName); | |
let request = SaveAsRequest(name: fileName, saveOptions: saveOptionsData, folder: nil, storage: nil); | |
let response = try wordsApi.saveAs(request: request); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "test_multi_pages.docx"))!; | |
let requestSaveOptionsData = HtmlSaveOptionsData() | |
.setCssStyleSheetFileName(cssStyleSheetFileName: "/TestSaveAsHtml.css") | |
.setCssStyleSheetType(cssStyleSheetType: HtmlSaveOptionsData.CssStyleSheetType.external) | |
.setFileName(fileName: "/TestSaveAsHtml.html"); | |
let saveRequest = SaveAsOnlineRequest(document: requestDocument, saveOptionsData: requestSaveOptionsData as! HtmlSaveOptionsData); | |
_ = try api.saveAsOnline(request: saveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestSaveOptionsData = SaveOptionsData() | |
.setFileName(fileName: "Sample_out.pdf") | |
.setSaveFormat(saveFormat: "pdf"); | |
let saveRequest = SaveAsOnlineRequest(document: requestDocument, saveOptionsData: requestSaveOptionsData); | |
_ = try api.saveAsOnline(request: saveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let requestSaveOptionsData = SaveOptionsData() | |
.setFileName(fileName: "Sample_out.html") | |
.setSaveFormat(saveFormat: "html"); | |
let saveRequest = SaveAsOnlineRequest(document: requestDocument, saveOptionsData: requestSaveOptionsData); | |
_ = try api.saveAsOnline(request: saveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocumentParameters = RangeDocument() | |
.setDocumentName(documentName: "NewDocument.docx"); | |
let saveRequest = SaveAsRangeRequest(name: "Sample.docx", rangeStartIdentifier: "id0.0.0", documentParameters: requestDocumentParameters, rangeEndIdentifier: "id0.0.1"); | |
_ = try api.saveAsRange(request: saveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!; | |
let requestDocumentParameters = RangeDocument() | |
.setDocumentName(documentName: "NewDocument.docx"); | |
let saveRequest = SaveAsRangeOnlineRequest(document: requestDocument, rangeStartIdentifier: "id0.0.0", documentParameters: requestDocumentParameters, rangeEndIdentifier: "id0.0.1"); | |
_ = try api.saveAsRangeOnline(request: saveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestSaveOptions = TiffSaveOptionsData() | |
.setFileName(fileName: "Image.tiff"); | |
let saveRequest = SaveAsTiffRequest(name: "Sample.docx", saveOptions: requestSaveOptions as! TiffSaveOptionsData); | |
_ = try api.saveAsTiff(request: saveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "test_multi_pages.docx"))!; | |
let requestSaveOptions = TiffSaveOptionsData() | |
.setFileName(fileName: "Image.tiff"); | |
let saveRequest = SaveAsTiffOnlineRequest(document: requestDocument, saveOptions: requestSaveOptions as! TiffSaveOptionsData); | |
_ = try api.saveAsTiffOnline(request: saveRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let searchRequest = SearchRequest(name: "Sample.docx", pattern: "aspose"); | |
_ = try api.search(request: searchRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let searchRequest = SearchOnlineRequest(document: requestDocument, pattern: "aspose"); | |
_ = try api.searchOnline(request: searchRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let splitRequest = SplitDocumentRequest(name: "Sample.docx", format: "text", destFileName: "SplitDocument.text", from: 1, to: 2); | |
_ = try api.splitDocument(request: splitRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation; | |
import AsposeWordsCloud; | |
let clientId = "####-####-####-####-####"; | |
let secret = "##################"; | |
let wordsApi = WordsAPI(clientId: clientId, clientSecret: secret); | |
let fileName = "test_multi_pages.docx"; | |
let format = "png"; | |
let from = 1; // Splitting starts from the first page of the document | |
let to = 1; // splitting ends at the last page of the document | |
// 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 = SplitDocumentRequest(name: fileName, folder: nil, storage: nil, format: format, from: from, to: to); | |
let response = try wordsApi.splitDocument(request: request); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation; | |
import AsposeWordsCloud; | |
let clientId = "####-####-####-####-####"; | |
let secret = "##################"; | |
let wordsApi = WordsAPI(clientId: clientId, clientSecret: secret); | |
let fileName = "test_multi_pages.docx"; | |
let format = "pdf"; | |
let from = 1; // Splitting starts from the first page of the document | |
let to = 2; // splitting ends at the last page of the document | |
// 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 = SplitDocumentRequest(name: fileName, folder: nil, storage: nil, format: format, from: from, to: to); | |
let response = try wordsApi.splitDocument(request: request); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let splitRequest = SplitDocumentOnlineRequest(document: requestDocument, format: "text", destFileName: "SplitDocument.text", from: 1, to: 2); | |
_ = try api.splitDocumentOnline(request: splitRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let splitRequest = SplitDocumentOnlineRequest(document: requestDocument, format: "png", from: 1, to: 2); | |
_ = try api.splitDocumentOnline(request: splitRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestDocument = InputStream(url: URL(string: "Sample.docx"))!; | |
let splitRequest = SplitDocumentOnlineRequest(document: requestDocument, format: "pdf", from: 1, to: 2); | |
_ = try api.splitDocumentOnline(request: splitRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AsposeWordsCloud | |
let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################"); | |
let api = try WordsAPI(configuration: config); | |
let requestProtectionRequest = ProtectionRequest() | |
.setPassword(password: "aspose"); | |
let unprotectRequest = UnprotectDocumentRequest(name: "Sample.docx", protectionRequest: requestProtectionRequest); | |
_ = try api.unprotectDocument(request: unprotectRequest); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment