Skip to content

PDF-SDK 2.4.1 is out.See what’s new

PDF-SDK
Mac

The PDF editor SDK for the Mac

A macOS PDF SDK through Mac Catalyst: bring your iOS app’s PDF editor to the Mac with the same product and the same code, with desktop behaviour.

Try the live demo in your browser

// Mac Catalyst target — the same code as iOS
import SwiftUI
import PDFEditorUI

@main
struct MyApp: App {
    init() { PDFEditorSDK.setLicenseKey("PE1.eyJ2Ijox…") }
    var body: some Scene { WindowGroup { ContentView() } }
}

// Present the editor; the edited PDF comes back as Data.
PDFEditorView(url: pdfURL) { edited in
    try? edited.write(to: pdfURL, options: .atomic)
} onCancel: { }

Everything your users need, in your Mac app.

Change the text already in the PDF, in any script — its font, size and colour — then move, rotate or restack it.

Built for the Mac.

  • One code base

    The same Swift package and the same code as on iPhone and iPad, built for Mac Catalyst.

  • Desktop behaviour

    The editor runs as a Mac app window with desktop behaviour and the full tool set.

  • Unsaved changes

    A callback tells you when the document has unsaved edits, so your app can confirm before a window closes.

  • Existing AppKit apps

    An older AppKit editor is kept so existing apps keep building; new apps should use Mac Catalyst.

Requirements

Mac Catalyst
15 or later
Install with
Swift Package Manager
Code
The same as iOS
Full Mac guide

Bring the iOS editor to the Mac in three steps.

  1. 1

    Use the same package

    The PDFEditorUI product also runs on the Mac. There is no separate Mac product to add.

  2. 2

    Add the Mac destination

    In the app target’s General settings, add Mac (Mac Catalyst) under Supported Destinations.

  3. 3

    Handle closing the window

    A Mac window can close without asking, so track onUnsavedChangesChanged and save or confirm first. Form Editor mode isn’t available on Mac Catalyst.

Read the full Mac guide

Mac questions.

Build your app for Mac Catalyst and use the same Swift package and code as on iOS.

An older AppKit editor exists so existing apps keep building, but it is no longer recommended; new apps should use Mac Catalyst.

Try it in your app.

A free trial unlocks every feature on every platform, in any app. Open a document today.

Talk to us

Questions about licensing, several apps, volume, or OEM and site terms — we will work out what fits.