---
title: "Demo: macOS PDF Library | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/macos/getting-started/try-the-demo/"
md_url: "https://www.nutrient.io/guides/macos/getting-started/try-the-demo.md"
last_updated: "2026-06-09T10:32:42.840Z"
description: "Interactive examples demonstrating Nutrient macOS SDK features with complete source code and implementation details."
---

# Demo for macOS Library

**Note:** This article is about using the PSPDFKit trial for evaluation purposes. If you don’t yet have a trial license, fill out the [trial form](https://pspdfkit.com/try) to get one.

You can try PSPDFKit in a few simple steps and get the library up and running in your app with little to no effort. For other integration options and setting up for a production app, please read all of the articles in our [Getting Started](https://www.nutrient.io/../../getting-started/prerequisites) guide.

### Integrate the PSPDFKit Framework

The easiest way to get started is using [CocoaPods](https://www.nutrient.io/../../getting-started/using-cocoapods). Add the following to your `Podfile`, and then run `pod install`:

```ruby

use_frameworks!

target :YourTargetName do
  pod 'PSPDFKit',
      podspec: 'https://my.pspdfkit.com/pspdfkit-macos/latest.podspec'
  platform :osx, '10.14'
end

```

If you prefer, you can [download the framework directly](https://my.pspdfkit.com/download/binary/macos/latest) instead and then follow the [manual integration guide](https://www.nutrient.io/../../getting-started/integrating-pspdfkit/).

### Set the License Key

### SWIFT

```swift

func applicationWillFinishLaunching(_ notification: Notification) {
    PSPDFKitGlobal.setLicenseKey("YOUR_LICENSE_KEY_GOES_HERE")
}

```

### OBJECTIVE-C

```objc

- (void)applicationWillFinishLaunching:(NSNotification *)notification {
    [PSPDFKitGlobal setLicenseKey:@"YOUR_LICENSE_KEY_GOES_HERE"];
}

```

### Load a PDF Document

### SWIFT

```swift

import PSPDFKit

let fileURL = Bundle.main.url(forResource: "Document", withExtension: "pdf")!
let document = PSPDFDocument(url: fileURL)

// Do something with the document instance:
print("Document: \(document)")

```

### OBJECTIVE-C

```objc

#import <PSPDFKit/PSPDFKit.h>

NSURL *documentURL = [NSBundle.mainBundle URLForResource:@"Document" withExtension:@"pdf"];
PSPDFDocument *document = [[PSPDFDocument alloc] initWithURL:documentURL];

// Do something with the document instance:
NSLog(@"Loaded document: %@", document);

```

See the various example projects in the [download DMG](https://my.pspdfkit.com/download/binary/macos/latest) for additional details.
---

## Related pages

- [Integrating macOS PDF Library Manually](/guides/macos/getting-started/integrating-pspdfkit.md)
- [Adding The License Key](/guides/macos/getting-started/adding-the-license-key.md)
- [Jumping Right In](/guides/macos/getting-started/jumping-right-in.md)
- [Prerequisites](/guides/macos/getting-started/prerequisites.md)
- [Where To Go From Here](/guides/macos/getting-started/where-to-go-from-here.md)

