Create, Edit and Convert PDF files in iOS apps using Aspose.PDF Cloud SDK for Objective C

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Aspose.PDF Cloud

Aspose.Cells Cloud logoAspose.PDF Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.

Adding Aspose.PDF Cloud to your project

• Cocoapods

CocoaPods is the recommended way to add AsposePDFCloud to your project.

  1. Add a pod entry for AsposePDFCloud to your Podfile
    pod 'AsposePDFCloud'
  2. Install the pod(s) by running
    pod install
  3. Include AsposePDFCloud wherever you need it with
    #import "ASPPDFApi.h"

• Source files

Alternatively you can directly add source files to your project.

  1. Download the latest code version from GitHub or CodePlex repository.
  2. Open your project in Xcode, then drag and drop pdf folder onto your project (use the “Product Navigator view”). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include AsposePDFCloud wherever you need it with
    #import "ASPPDFApi.h"

Usage

An example is given below to give you a quick preview of how APIs of this SDK can be called.

/*Convert PDF document from request content to specified format*/

#import "ASPApiClient.h"
#import "ASPPDFApi.h"

//Get App key and App SID from https://cloud.aspose.com
[ASPApiClient setAppKey:@"" andAppSID:@""];

ASPPDFApi *pdfApi = [[ASPPDFApi alloc] init];

NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"Sample" withExtension:@"pdf"];

[self.pdfApi putConvertDocumentWithCompletionBlock:pathToFile
                   format:@"tiff"
                   replaceResourcesHostTo:nil
                   outPath:nil
                   completionHandler:^(NSURL *output, NSError *error) {
             	     BOOL isFileExist = [[NSFileManager defaultManager] fileExistsAtPath:[output path]];
                     XCTAssertTrue(isFileExist, @"Failed to convert pdf document from request content to specified format.");
}];

Aspose.PDF Cloud SDK Examples

Programmer’s Guide, a complete manual on programming with Aspose.PDF Cloud APIs. It holds the wealth of features with sample codes and capabilities.

Unit Tests

To help you get started we also provided unit test coverage to Aspose.PDF APIs.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with Aspose Cloud service. Once you have signed up, you are ready to try powerful file processing features offered by Aspose Cloud.


To keep up with our news, you can follow us on Twitter or follow our Facebook page.