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
Initial setup
Extract the downloaded zip file and navigate to it.
Get your Apryse trial key.
Run the samples
Run a specific sample
Navigate to the
OBJCfolder in a sample project, for example/Samples/AddImageTest/OBJCand run the sample with
Run all samples
Navigate to
/Samplesand run
The tests will run one by one.
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.
Navigate to the
/Samplesdirectory of the Apryse SDK and create a directory calledmyAppif it does not exist already. This guide will assume your project is named myApp.Enter your
myAppdirectory and create aOBJCdirectory for organization. Then create amyApp.mfile. Open this file in your favorite text editor and paste:
In that same
OBJCdirectory inside your myApp project folder add a makefile calledMakefileand paste this inside:
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
Last updated
Was this helpful?