For the complete documentation index, see llms.txt. This page is also available as Markdown.

Objective-C & macOS PDF library integration

This guide will help you run Apryse samples and integrate a free trial of the Apryse SDK into Obj-C applications on macOS. Your free trial includes unlimited trial usage and support from solution engineers.

Prerequisites

  • Apryse's Objective-C PDF library for macOS:

Download the SDK

spinner

Run Apryse SDK in production

A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.

Initial setup

  1. Extract the downloaded zip file and navigate to it.

  2. Get your Apryse trial key.

spinner

Run the samples

Run a specific sample

  1. Navigate to the OBJC folder in a sample project, for example /Samples/AddImageTest/OBJC and run the sample with

Run all samples

  1. Navigate to /Samples and run

The tests will run one by one.

Output files will be in /Samples/TestFiles/Output

Integrate into your application

This section will show you how to use our SDK to create a simple Apryse "Hello World!" application. It will create a document with one blank page and save it as a linearized PDF in its running directory.

  1. Navigate to the /Samples directory of the Apryse SDK and create a directory called myApp if it does not exist already. This guide will assume your project is named myApp.

  2. Enter your myApp directory and create a OBJC directory for organization. Then create a myApp.m file. Open this file in your favorite text editor and paste:

  1. In that same OBJC directory inside your myApp project folder add a makefile called Makefile and paste this inside:

  1. Run the project by executing:followed by:If all goes well, your terminal should output:

Check the output.pdf that the program output in the same directory. It should be a PDF with one blank page.

Next step

GuidesAPI docsSamples

Last updated

Was this helpful?