Nutrient iOS SDK

Split, merge, and edit PDF pages in iOS

  • Split PDFs by page range and merge multiple documents into one
  • Rotate, crop, scale, move, copy, and remove pages programmatically or through the built-in UI
  • Add blank pages or insert pages from other documents
  • Set document permissions and apply watermarks before distribution

Need pricing or implementation help? Talk to Sales.

PDF EDITING IN SWIFT

import PSPDFKit
// Extract pages 0–4 into a separate document.
let configuration = Processor.Configuration(document: sourceDocument)!
configuration.includeOnlyIndexes(IndexSet(0..<5))
let processor = Processor(configuration: configuration, securityOptions: nil)
try processor.write(toFileURL: outputURL)

USE CASES

When developers reach for this SDK

Build document management into your app

Users need to reorganize, trim, or combine PDFs directly on device. The SDK covers the full range of page operations — split, merge, reorder, remove — with both programmatic and built-in UI options.

Automate document preparation pipelines

Rotate scanned pages to correct orientation, crop oversized margins, or scale pages to a standard size before processing. The Processor API handles these transforms in batch without user interaction.

Stamp watermarks before distribution

Add text or image watermarks to PDFs before sharing or exporting. Apply them across all pages or selectively, programmatically, or through the document editor.

Restrict access with document permissions

Set document permissions to control what recipients can do — restrict printing, copying, editing, or form filling. Permissions are embedded in the PDF and enforced by compliant readers.

PDF editing capabilities for iOS

Split and merge PDFs

Extract page ranges from a document into separate files, or combine multiple PDFs into one. Both operations use the Processor API and write the result to a new file.


  • Split by page range into one or more output documents
  • Merge multiple PDFs using multiple data providers
  • Combine pages from different documents into one

Page manipulation

Rotate, crop, scale, move, copy, and remove pages. Operations are available through the Processor API for automation or the Document Editor API for building interactive UIs.


  • Rotate single or multiple pages by 90-degree increments
  • Crop pages by defining a crop box
  • Scale pages to new dimensions, and move and copy within a document

Add pages and watermarks

Insert blank pages, pages from other documents, or pages via the interactive UI. Apply watermarks across all pages or targeted pages before export.


  • Add blank pages programmatically or through the built-in UI
  • Insert pages sourced from another document
  • Apply text or image watermarks via the Processor API

Metadata and permissions

Read and write document metadata — title, author, subject, and keywords. Set document permissions to control what viewers can do with a file.


  • Edit PDF metadata: title, author, subject, keywords
  • Restrict printing, copying, editing, and form filling
  • Permissions are embedded in the PDF and enforced by readers


ADVANCED CAPABILITIES

Two APIs for different use cases

The SDK provides two distinct APIs for document editing. The Processor API is designed for automated, non-interactive operations — ideal for background processing, pipelines, and batch jobs. The Document Editor API is designed for building general-purpose interactive UIs where users manipulate pages directly.

Illustration of the document editor on iOS
Processor API for automation

Apply page operations — rotate, crop, scale, split, merge — as part of automated workflows. Results are written to a new file without presenting any UI.


Document Editor API for interactive UIs

Build a general-purpose document editor where users drag, reorder, rotate, and delete pages. The Document Editor handles state and UI interaction.


Built-in document editor UI

Use the included document editor view controller for common page operations out of the box. Customize it or replace it entirely with your own UI.


Document Editor component required

Page manipulation operations (crop, scale, move, copy) require the Document Editor component to be enabled in your license.


Frequently asked questions

How do I split a PDF on iOS?

Use Processor.Configuration initialized with your source document. Then call includeOnlyIndexes() with the page range you want to extract. Instantiate a Processor and write the result to a new file URL. Repeat with different index sets to split into multiple documents. See the split guide for a complete example.

How do I merge multiple PDFs into one on iOS?

Initialize a Document with multiple data providers — one per source file. Pass that document to Processor.Configuration and write the result. The Processor combines all source pages into a single output document. See the merge guide for the full implementation.

How do I rotate pages in a PDF on iOS?

Create a Processor.Configuration from your document, and call rotatePages(_:rotation:) with the page index set and rotation angle (multiples of 90 degrees). Then write the result with a Processor. You can also rotate pages through the built-in document editor UI or the Document Editor API. See the rotate guide.

How do I remove pages from a PDF on iOS?

Use Processor.Configuration and call the page removal method with an IndexSet of the pages to remove. A single Processor operation can remove multiple pages at once. Removal is also available through the built-in document editor UI for interactive use cases. See the remove pages guide.

How do I add a blank page to a PDF on iOS?

The SDK supports three approaches: add a blank page programmatically using a blank page template, insert a page sourced from a different document, or let users add pages interactively through the built-in UI. The Processor and Document Editor APIs both support page insertion. See the add page guide.

How do I add a watermark to a PDF on iOS?

Watermarks are applied through the Processor API. Configure the watermark properties in your Processor.Configuration, and then write the output. See the watermark guide for implementation details.

How do I set document permissions on iOS?

Document permissions control what a recipient can do with a PDF: printing, copying, editing, form filling. Set permissions via the SDK’s document permissions API before saving. The permissions are embedded in the PDF and enforced by compliant PDF readers. See the document permissions guide.

What is the difference between the Processor and Document Editor APIs?

The Processor API is for automated, non-interactive document operations. It takes a configuration, applies the specified transforms (rotate, crop, split, merge, etc.), and writes the result to a new file. The Document Editor API is for building interactive UIs — it manages document state and supports live editing where users drag, reorder, and delete pages. Some operations (crop, scale, move, copy) require the Document Editor component in your license.


FREE TRIAL

Ready to get started?

Add PDF editing to your iOS app in minutes — split, merge, rotate, and manipulate pages with no payment information required.