1. Products
  2.   Word Processing
  3.   Swift
  4.   Aspose.Words Cloud Swift SDK

Aspose.Words Cloud Swift SDK

 
 

Swift API to Generate & Convert Word Documents

Swift REST API allows to Create, Edit, Compare, Split/Merge, Manipulate & Convert Word Processing Documents inside Swift-based Apps.

What is Aspose.Words Cloud Swift SDK?

The Aspose.Words Cloud Swift SDK is a robust tool for creating, editing, and organizing documents in the cloud. It helps developers like you to easily work with Word documents through a RESTful API. This SDK comes with a feature-packed document converter that lets you convert Word documents to various formats such as DOC, DOCX, PDF, HTML, and many others. This makes it convenient for you to handle different file types effortlessly.

The Aspose.Words Cloud Swift SDK offers a user-friendly and feature-packed API to manage your word documents in the cloud effortlessly. You can do a lot with this API, like creating documents from the ground up, customizing document properties, adding sections, headers, footers, paragraphs, and tables, sharing documents, inserting images, mail merge support, finding or replacing text, inserting or editing watermark, password protect Word documents creation, and many more. It’s a handy tool with a variety of useful features to make working with word documents a breeze.

The Aspose.Words Cloud Swift SDK is a tool designed to help iOS developers smoothly incorporate the Aspose.Words Cloud API into their Swift apps. This API comes with a feature that supports mail merge, enabling developers to craft personalized documents by combining data from various origins. The SDK is handy as it manages the nitty-gritty technical aspects, which accelerates the app development process for software creators like you. If you’re a developer working on iOS apps and you want to include document editing and organization features, this tool with its variety of functions and user-friendly API is a fantastic option for you.

Previous Next

Getting Started with Aspose.Words Cloud Swift SDK

The recommend way to install Aspose.Words Cloud Swift SDK is using CocoaPods. Please use the following command for a smooth installation.

Install Aspose.Words Cloud Swift SDK via CocoaPods

pod 'AsposeWordsCloud', '~> 23.3'

pod install
 
You can also download it directly from GitHub.

Word Documents Management via Swift API

Aspose.Words Cloud Swift SDK has included several important features for working with Word documents inside Swift cloud applications. It supports creating new Word documents from scratch as well as modifying existing Word documents. There are several other important features part of the SDK for Word document management, such as inserting images into documents, getting document properties, tracking changes in Word documents, merging/splitting existing documents, protecting Word documents, comparing multiple documents, inserting watermarks to documents, and many more. The following examples show how to use Swift code to generate new Word documents in the cloud.

How to Generate New Word Documents via Swift REST API?

 

import AsposeWordsCloud

let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let createRequest = CreateDocumentRequest(fileName: "Sample.docx");
_ = try api.createDocument(request: createRequest);

Convert Word Document to Other Formats via Swift REST API

Aspose.Words Cloud Swift SDK has included a very powerful Word Documents converter that enables software developers to convert Word documents to several other important file formats with just a couple of lines of Swift code, such as DOC, DOT, DOCX, DOCM, DOTX, DOTM, FlatOpc, RTF, PDF, HTML, ODT, OTT, TXT, EPUB, XPS, PCL, TIFF, PNG, JPEG, BMP, SVG and many more. It provides a quick and safe way for converting multiple Word files in the cloud. The following example shows how to convert Word documents to PDF file formats inside Swift applications in the cloud.

How to Convert Word Documents to PDF using Swift REST API?

 
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);

Insert & Manage Watermark in Word Documents via Swift API

A watermark is a very useful features of World documents that can be used to identity the documents status, manufacturer or brand information. It is placed behind the text in the Word document. Aspose.Words Cloud Swift SDK makes it easy for software developers to add watermarks inside their Word Documents and manage its properties inside their Swift applications. The API supports text as well as graphic watermarks. It supports inserting a watermark into a Word document, setting the watermark text and rotation angle, and deleting an existing watermark. The following example shows how to insert watermark image into a Word document using Swift REST API.

How to Insert Image Watermark in Word Documents via Swift REST API?

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);

Insert Headers & Footers in Word Documents in Cloud

Aspose.Words Cloud Swift SDK has included very useful features for handling Headers & Footers in Word documents inside their own Swift applications. Software developers can easily insert new headers and footers inside their Word documents, modify existing one, delete all Header/Footer objects, get a Header/Footer from Word document, link headers/footers of a section to the previous one online and many more. There following example demonstrates how software developers can insert Headers and Footers into a Word Document inside Swift applications. 

How to Insert Headers and Footers into Word Documents via Swift API?

import AsposeWordsCloud

let config = Configuration(clientId: "####-####-####-####-####", clientSecret: "##################");
let api = try WordsAPI(configuration: config);
let requestDocument = InputStream(url: URL(string: "Sample.doc"))!;
let insertRequest = InsertHeaderFooterOnlineRequest(document: requestDocument, sectionPath: "", headerFooterType: "FooterEven");

_ = try api.insertHeaderFooterOnline(request: insertRequest);

 English