Examples

Add Analytics to PDF Components

Example implementation of `PDFAnalyticsClient` that logs events to the console. Get additional resources by visiting our guide on [iOS PDF viewer ana…

Add Annotation Buttons to the Navigation Bar

Shows how to add and update the state of annotation buttons in the navigation bar. Get additional resources by visiting our guide on [showing annotat…

Add an Apple Map Widget to a Page

Use a LinkAnnotation to add an Apple Maps Widget to a document page. Get additional resources by visiting our guide on [add link annotations to PDFs …

Add a Copyright Notice Watermark to PDF

This example show the different ways you can add copyright notices to a document that is about to be shared. Get additional resources by visiting our…

Add Custom Buttons to the Free Text Keyboard Toolbar

Add buttons for custom font sizes to the free text accessory view. Get additional resources by visiting our [PSPDFFreeTextAccessoryView API guide](/a…

Add a File Annotation to PDF

Adds new menu items that will create and delete file annotations at the selected position. Get additional resources by visiting our guide on [embedin…

Open an Image Gallery

Create buttons that show and hide image galleries or videos. Get additional resources by visiting our guide on [multimedia PDF annotations library in…

Add Overlay Views to PDF

Shows how to add custom overlay views, using UIView, on top of pages. Get additional resources by visiting our guide on [adding custom views to a pag…

Add Signature to All PDF Pages

Will add a signature to all pages of a document, optionally flattened. Get additional resources by visiting our guide on [adding electronic signature…

Add Snake Game in PDF

Play a quick game of old school snake. :)

Add Text Annotation to PDF

Add a `FreeText` annotation and programmatically insert text at the caret position. Get additional resources by visiting our guide on [programmatical…

Add a Custom Gallery Annotation

Add an animated GIF or inline video. Get additional resources by visiting [multimedia PDF annotations library in iOS](/guides/ios/annotations/multime…

Add Video, Audio, Image Annotation to PDF

Gallery example with video, images, audio and YouTube gallery items. Get additional resources by visiting our [multimedia PDF annotations library in …

Add a Watermark to All PDF Pages

Uses `PSPDFProcessor` to draw watermarks on all pages currently configured to be exported. Get additional resources by visiting our guide on [securin…

Add a Bottom Inset to the User Interface

Make space for custom UI elements by adding a bottom inset and moving the document scrubber bar up.

PDF JavaScript Support: Add Calculator

An example document with a working JavaScript-based calculator showing JavaScript support in PSPDFKit. Get additional resources by visiting [JavaScri…

Add a Custom Cloudy Rectangle to PDF

This example shows how to add a rectangle annotation with a cloudy border to your PDF documents. The cloudy annotation is popular in the architecture…

Add a Custom Free Text Input Accessory

This example shows how you can add a custom Free Text `inputAccessory` view on top of the keyboard on iOS.

SwiftUI Sidebar

Display the `PDFViewController` next to a Sidebar using SwiftUI.

Add an Image Signature to PDF

Add a stamp annotation using a loaded image and flag it as a signature. Get additional resources by visiting our guide on [adding electronic signatur…

Allow Freeform Image Annotation Resizing

Disables the forced aspect ratio resizing for image (stamp) annotations by utilizing autoresizingMask.

Link Annotation Examples

Link annotations can point to different pages, documents and even websites and can even be created to use external image or video files. Get addition…

Apply XFDF Annotations to a PDF and Save it as a New Document

Generating a new file by opening a document, applying XFDF annotations to it, and saving it using `PSPDFProcessor`. Get additional resources by visi…

Asynchronous Digital Signature

Signs a document asynchronously, simulating a PIN-entry screen. Get additional resources by visiting our guide on [adding a digital signature to a PD…

Save as… PDF After Annotation Changes Have Been Detected

Add an alert after detecting annotation writes to define a new save location for the modified document. Get additional resources by visiting our [Oth…

Aviation Example

Shows how to configure PSPDFKit to display a flight plan for pilots and a passenger list for the cabin crew. It forces the dark appearance for the UI…

Blur PDF Pages

Use UIBlurEffect to blur specific pages of a document.

Child View Controller Using Parent Navigation Bar

Shows how to embed a PDFViewController as a child view controller and let it use its parent\

Board Meeting Collaboration Example

Shows how to create or join a collaborative editing session for a board meeting based on PSPDFKit Instant. This example connects to the public PSPDFK…

Compare PDF Documents

Compare documents by using a different stroke color for each of two document and creating a new documend combining the two. Get additional resources …

Configure PDF Annotation Toolbar

Manually configure and show the annotation toolbar, without `UINavigationController` or `PSPDFAnnotationBarButtonItem`. Get additional resources by v…

Multiline Document Title

Shows how to configure the document title label to fit a long, multiline title. Get additional resources by visiting our [PSPDFUserInterfaceView API …

PDF E-Reader Example

Shows how to configure PSPDFKit as an e-reader. Get additional resources by visiting our blog article on [building an e-reader for your application](…

Construction Example

An example showing how to configure PSPDFKit to display a building floor plan. Get additional resources by visiting our blog on [working with PDFs in…

Create Free Text Annotations Continuously

Keep the user in annotation creation mode in order to allow faster, continuous creation of multiple Free Text annotations. Get additional resources …

HTML to PDF Conversion

Convert a URL or simple HTML page to a PDF document. Get additional resources by visiting our guide on [generating PDFs from HTML in iOS](/guides/ios…

Convert MS Office Files to PDFs

Convert an MS Office file (DOCX, XLXS, PPTX) to PDF using Document Engine with our Office file conversion component. Get additional resources by visi…

Stamp Button

Uses a stamp annotation to trigger a JavaScriptAction. Get additional resources by visiting our guide on [adding a PDF stamp annotations in iOS](/gui…

Create Email Snippet when Sharing PDF

Define a standard message body when sharing a document via email.

Create Link Annotations in PDF

Shows how to only expose link annotations in the UI. Get additional resources by visiting our guide on [adding link annotations to PDFs in iOS](/guid…

Bookmark Creation UI

Show a UI window where the user can create a named bookmark. Get additional resources by visiting [iOS PDF bookmark library](/guides/ios/bookmarks/).

Create a New PDF Programmatically

Use `PSPDFProcessor` to create a new PDF document. Get additional resources by visiting our guide on [generating blank PDFs in iOS](/guides/ios/featu…

Teleprompter Example

Use the continuous scrolling page view with a timer function to automatically scroll through a document, using touch events to pause scrolling. Get a…

Create a Password-Protected PDF

Create a password protected document. Get additional resources by visiting our guide on [generating a password-protected PDF in iOS](/guides/ios/pdf-…

Create a Custom Appearance Stream Generator

Add additional custom drawing to a vector stamp annotation. Get additional resources by visiting our guide on [appearance streams for annotations in …

Create a Custom PDF Navigation Bar with SwiftUI

Show a `PDFViewController` in a SwiftUI context and add custom buttons to the navigation bar. Get additional resources by visiting our [SwiftUI PDF l…

Create a Settings View with SwiftUI

Use a `PDFViewController` with SwiftUI and present a custom page view settings view.

Create an Always-Dark Annotation Toolbar

Customize the Annotation Toolbar to always use Dark Mode UI using `overrideUserInterfaceStyle`on iOS 13.

Create a Custom Annotation Inspector with SwiftUI

Present a custom annotation Inspector written in SwiftUI. Get additional resources by visiting our [SwiftUI PDF library](/guides/ios/getting-started/…

Use a Custom Annotation Provider

Use a custom annotation provider. Get additional resources by visiting our guide on [saving PDF annotations to external storage in iOS](/guides/ios/i…

Custom Comments UI

Replace `PSPDFNoteAnnotationViewController` with a custom view controller.

Use a Custom PDF Bookmark Provider

Use a custom bookmark provider using a `plist` file. Get additional resources by visiting our guide on [iOS PDF bookmark library](/guides/ios/bookmar…

Custom Page Labels in the Sharing UI

Display page labels instead of page numbers in the sharing UI. Get additional resources by visiting our [pageDescriptionProvider API guide](/api/ios/…

Custom PDF Stamp Annotations

Extend the default set of stamps of the `PSPDFStampViewController` with additional text, image and vector stamps. Get additional resources by visiti…

Use Custom Page Templates in the PDF Editor

Add custom page templates to Document Editor’s Add New Page view. Get additional resources by visiting our guide on [adding pages to PDF files in iOS…

Use a Custom Saving Confirmation for the PDF Editor

Provide custom options for saving a document after editing it. Get additional resources by visiting [PDF editor library for iOS](/guides/ios/features…

Add a Custom Thumbnail View Filter

Add a custom filter — that only returns pages with ink annotations — by subclassing `ThumbnailViewController`. Get additional resources by visiting o…

Customize Annotation Link Border Color

Set a red border color for link annotations. Get additional resources by visiting our guide on [adding link annotations to PDFs in iOS](/guides/ios/a…

Use a Custom Protocol Link

Use a custom link protocol with a link annotation. Get additional resources by visiting our guide on [adding link annotations to PDFs in iOS](/guides…

Customize the Annotation Inspector

Shows how to customize the annotation Inspector to set Blend Modes for vector stamp annotations. Get additional resources by visiting our guide on [c…

Color Preset Customization

Override the default color presets in the annotation inspector view. Get additional resources by visiting our guide on [customizing color presets in …

Customize Comment Font Size in PDF

Customize `NoteAnnotationViewController`comments to use a larger font size.

Customize PDF Annotation Toolbar

Customize which tools are shown in the annotation toolbar and how they are grouped if there is not enough space to show all of them.r/

Customize PDF Annotation Toolbar with SwiftUI

Display a custom annotation toolbar created with SwiftUI. Get additional resources by visiting our [SwiftUI PDF library](/guides/ios/getting-started/…

Customize the PDF Editor Toolbar

Customize the new page button and remove all remaining buttons from the Document Editor Toolbar. Get additional resources by visiting our guide on [e…

Customize the Appearance of PDF Form Elements

Customize the Appearance of Forms. Get additional resources by visiting our guide on [supported PDF form fields in iOS](/guides/ios/forms/introducti…

Customize PDF Outline

Shows how to use a custom document outline controller in the document info view. Get additional resources by visiting our guide on [customizing the d…

Use a Custom Page Label Formatter

Shows how to customize the page labels displayed inside the document view. Get additional resources by visiting our [PSPDFPageLabelFormatter API guid…

Customize PDF Sharing Options

Customzie the sharing options for documents. Get additional resources by visiting our guide on [configuring document sharing options in iOS](/guides/…

Customize PDF Tab Titles

Shows how to customize the tab titles for PSPDFTabbedViewController. Get additional resources by visiting our [PSPDFTabbedViewController API guide](/…

Customize PDF View Margins

Adjust the document view margins to make room for your custom user interface elements. Get additional resources by visiting our guide on [customizing…

Customize PDF View Settings

Use `PDFSettingsViewController` to customize key UX elements. Get additional resources by visiting our guide on [configuring scroll directions and pa…

Add Custom Pencil Interactions

Register a custom action to be triggered by `UIPencilInteraction`. Get additional resources by visiting our guide on [supporting for Apple Pencil dou…

Scrubber Bar with Buttons

Add `UIBarButtonItems` to the document scrubber bar. Get additional resources by visiting our [PSPDFScrubberBar API guide](/api/ios/documentation/psp…

Customize Thumbnail Page Labels

Customize page labels in the thumbnails view mode.

Custom Vertical Annotation Toolbar

Create a completely custom annotation toolbar. Get additional resources by visiting our guide on [annotation state manager in iOS](/guides/ios/annota…

Screen Mirroring

Add your own view controller to use with screen mirroring.

Customize the Annotation Selection Knobs

Customize the look of selected annotations by removing, repositioning and tinting the selection knobs. Get additional resources by visiting our [PSPD…

Customize the Annotations List

Customize how the cells used in `AnnotationTableViewController` are drawn. Get additional resources by visiting our guide on [customizing lists of an…

Customize the Filename of Shared PDF

Change the filename on shared files and add additional sharing options. Get additional resources by visiting our guide on [configuring document shari…

Customize PDF Search Highlight Color

Change the search highlight color to blue via `UIAppearance`. Get additional resources by visiting our guide on [searching for text in PDFs on iOS](/…

Customize the Search Result Cell

Use a custom text colors in the table view cell for `PSPDFSearchViewController`. Get additional resources by visiting [PDF search library for iOS](/g…

Customized Note Annotation View Controller

Customize `PSPDFNoteAnnotationViewController` to hide the Note timestamp and author labels. Get additional resources by visiting our [PSPDFNoteAnnota…

Show Documents with UIPageViewController

Use `UIPageViewController` to cycle through PDF documents.

Disable Annotation Reviews

Use Document Features to disable viewing and setting annotation reviews. Get additional resources by visiting our guides on [reviewing and replying t…

Disable Bookmark Editing

Disable bookmark editing using Document Features. Get additional resources by visiting our guides on [PDF Document Features](/guides/ios/features/doc…

Disable Bookmark Renaming

Override the default bookmark cell to disable bookmark renaming. Get additional resources by visiting our guide on [iOS PDF bookmark library](/guides…

Disable PDF Annotation Editing

Use annotation flags to disable annotation editing. Get additional resources by visiting our guide on [disabling annotation editing in iOS](/guides/i…

Disable Scroll Bouncing

Disable bouncing for the document scroll view zoom and zoom view.

Disable Removing Digital Signature

Set `allowDeletingDigitalSignatures` to false to disable removing of added Digital Signatures. Get additional resources by visiting our [PSPDFSignedF…

Confirmation Sheet for Annotation Deletion

Present a confirmation sheet before deleting annotations. Get additional resources by visiting our guide on [annotations object model in iOS](/guides…

Display Measurements on PDF Pages or Spreads

Shows how to add auxilary views to spreads/pages. Get additional resources by visiting our [PSPDFPageView API guide](/api/ios/documentation/pspdfkitu…

Display PDF Annotations on Layers

Use Instant’s Layers feature to display different sets of annotations on a document. Get additional resources by visiting our guide on [creating PDF …

Display PDF in Inbox Directory

Display all files in the Inbox directory via the `PDFDocumentPickerController`. Get additional resources by visiting our [PSPDFDocumentPickerControll…

Popover Presentation

Present the default PDFViewController in a popover controller.

Share a Document’s originalFile

Allow your user to share the original file — like a word document — from which the current PDF was generated from.options for Open In. For more info…

Download a PDF from a Remote URL

Automatically download and cache a PDF, showing a download progress indicator and using offline storage. Get additional resources by visiting our gui…

Draw All Annotations as Overlays

Render all annotations on top of custom subviews of the page view.

Embed PSPDFKit as a Child View Controller

Shows how to embed a PDFViewController as a child view controller. Get additional resources by visiting our guide on [embedding PDF view controllers …

Embed a SwiftUI View inside a Page View

Add a SwiftUI-based child view to a document page view. Get additional resources by visiting our guide on [customizing the display of PDFs in iOS wit…

Embed, Flatten or Remove PDF Annotations

Use the PSPDFProcessor class to embed, flatten or remove annotations. Get additional resources by visiting [iOS PDF Annotation Library](/guides/ios/…

Enable Auto-Save with PDF Checkpointing

Enable auto saving of documents via the document checkpointing API. Get additional resources by visiting our guide on [auto saving PDFs in iOS](/guid…

Enable Fixed PDF Toolbar Position

Only allow the annotation and document editor toolbars to be positioned at the top of the document view. Get additional resources by visiting our gui…

Enable Saving Confirmation when Exiting PDF

Disable document auto saving and display a saving confirmation dialog before exiting. Get additional resources by visiting our guide on [saving PDF d…

Encrypt and Decrypt a PDF Document

Encrypt a document with a key generated from a passphrase, and use the same passphrase to later decrypt it. Get additional resources by visiting our …

Encrypt Disk Cache when Rendering PDF

Wrap cache access into an encryption layer for improved document security. Get additional resources by visiting our guide on [iOS PDF document securi…

Use Encrypted XFDF Documents

You can encrypt or decrypt XFDF files on-the-fly to store annotation data securely. Get additional resources by visiting our [PSPDFAESCryptoDataProvi…

Exit Drawing Mode Automatically

Exit drawing mode automatically after a line has been drawn. Get additional resources by visiting our guide on [annotation state manager in iOS](/gui…

Redact Faces From a Document

Shows how to redact faces in documents with `PSPDFProcessor` and Apple’s `CIDetector`. Get additional resources by visiting our [PDF redaction librar…

Fixed-Size PDF Annotations

Create a custom stamp annotation type that has a fixed size and is not resized when the page is zoomed in or out. Get additional resources by visitin…

Playground

The Quick Start Guide PDF document to help you get around PSPDFKit for iOS’s UI.

Hide or Reveal Area in PDF

Allow users to select areas to hide and reveal on a page, using a custom square annotation.

Highlighting Text in PDF

Shows how to automatically create a highlight annotation after selecting text, replicating the behavior of Apple Books app. Get additional resources …

Annotate on Image Documents

Load an image file from a local folder to use with the PDF annotation tools. Get additional resources by visiting our guide on [adding annotations to…

Implement a Document Picker Sidebar

Implement a Document Picker in the sidebar. Get additional resources by visiting our [PSPDFDocumentPickerControllerDelegate API guide](/api/ios/docum…

Import and Export XFDF Data

The XML Forms Data Format, XFDF for short, can be used to store PDF forms and annotations data independently of a PDF document. This sample shows how…

Initialize a PDF with Data

Initialize a PDF document with Data contents in-memory (the document is not saved to the file system). Get additional resources by visiting our guide…

Insert Page into PDF from another Document

Use `PSPDFDocumentEditor` to copy a page from another document. Get additional resources by visiting our guide on [adding pages to PDF files in iOS](…

Storyboard Integration

Create `PDFViewController` in a UIStoryboard.

E-Learning (LMS) Example

Shows how PSPDFKit can be configured for taking and grading an e-learning exam. Get additional resources by visiting our blog article on [grading pap…

Customize how PDF Annotations Load

A custom annotation provider that lazily loads its annotations and combines them with annotations from the PDF document. Get additional resources by …

Link Annotation View Customization

Enforce a fixed style for link annotations. Get additional resources by visiting our [PSPDFLinkAnnotationView API guide](/api/ios/documentation/pspdf…

Monitor UI Touches

Use UIGestureRecognizer to get a callback when the user touches anywhere inside the `PDFViewController`’s view.

Multi-User PDF Collaboration

Show multiple instances of an Instant document for collaborative editing. Get additional resources by visiting our guide on [Instant Usage](/guides/i…

Multimedia

Load PDF with various multimedia additions and an embedded video.

OCR

Perform optical character recognition (OCR) on a PDF document. Get additional resources by visiting our guide on [how to OCR a PDF in iOS](/guides/io…

Open an AES-Encrypted PDF

An example showing how to open an AES-encrypted PDF on the fly, without storing any of the decrypted information. Get additional resources by visitin…

Open PDF with Preset Password

Unlock document with password programmatically. Get additional resources by visiting our guide on [opening password-protected PDFs in iOS](/guides/io…

Instant PDF Collaboration

Connect to our example PSPDFKit Instant server and download a document for collaborative editing. Get additional resources by visiting our [PDF colla…

PDF Form Examples

This example shows the various ways you can work with PDF Forms, from appearance customization to accessing form field data or working with digital s…

Highlight Annotation Blend Mode Menu

Add the Blend Mode menu item in the highlight annotation selection menu. Get additional resources by visiting our guide on [defining annotation blend…

PDF Magazine Reader

Configure the PSPDFKit UI for use as a magazine reader.

PDF Page Scale & Resize

Use`PSPDFProcessor` to scale (resize) document pages. Get additional resources by visiting our guide on [scaling or resizing PDFs in iOS](/guides/ios…

Reader View: PDF Reflow

Show the Reader View, which reformats document text for easy reading. Get additional resources by visiting our [iOS PDF reader library](/guides/ios/f…

Generate a PDF Report

Generate a document out of multiple PDF files, add new pages, and protect the new PDF document with a password. Get additional resources by visiting …

PDF Streaming

Demonstrates a way to load parts of a document on demand.

PDF Streaming with SwiftUI

Demonstrates a way to load parts of a document on demand in SwiftUI.

Redact Text in PDF Using Regex

Use regular expressions to redact URLs from a document. Get additional resources by visiting our guide on [using RegEx to redact PDFs in iOS](/guides…

PDFViewController Controller State

Shows the default, empty, error, and locked states of the PDFViewController. Get additional resources by visiting our [PSPDFViewController API guide]…

Built-In Passowrd Entry UI

Trying to load a password-protected document without providing the passwort will trigger a dialog. Password is \

Persist View Settings

Persist `PDFSettingsViewController` options set by your user via UserDefaults.

Contained Digital Signatures

Prepare a document with a signature form field to later use to embed a digital signature. Get additional resources by visiting our guide on [containe…

Contained PAdES Digital Signature

Prepare a document to embed a PAdES advanced digital signature afterwards. Get additional resources by visiting our guide on [contained digital signa…

Preserving PDF Annotation Aspect Ratio During Resize

Implement resizing that always preserves the annotation aspect ratio. Get additional resources by visiting our guide on [customize user interactions …

Printer Defaults for PDF Annotations

Configure the printer default settings to print a summary of all annotations. Get additional resources by visiting our guide on [configuring PDF shar…

Add PDF Annotations Programmatically

Add an Ink Annotation in code. Get additional resources by visiting our guide on [programmatically creating PDF annotations in iOS](/guides/ios/annot…

Programmatic PDF Editing

Use `PSPDFDocumentEditor` to rotate the first two pages and then add a new first page to the current document. Get additional resources by visiting o…

Programmatically Go To PDF Outline

Programmatically go to a specific document outline item. Get additional resources by visiting our [Outline API guide](/api/ios/documentation/pspdfki…

Search PDF Without Controller

Search programmatically without displaying a search controller. Get additional resources by visiting our guide on [search for text in PDFs on iOS](/g…

Redact Text in PDF

Redact text from a page using `PSPDFProcessor`. Get additional resources by visiting our guide on [search and redact PDFs in iOS](/guides/ios/redacti…

Remove Password from PDF

Example shows how to use the document processor to remove password protection from a document. Get additional resources by visiting our [Security AP…

Render Drawings on PDF Pages

Shows how to add custom drawing rendering on pages without commiting the drawings to the document. Get additional resources by visiting our guide on …

Rotate PDF Page

Add a button to rotate pages in 90 degree steps and saves the new orientation. Get additional resources by visiting our guide on [rotating PDF pages …

Rotate Page Temporarily

Add a button to rotate pages temporarily in 90 degree steps without writing changes to the PDF. Get additional resources by visiting our [PSPDFRotati…

Save Reading Position in a PDF

Persist the view state so your app can later return to a user’s saved reading position within the document. Get additional resources by visiting our …

Search and Redact Text

Search and redact text in a PDF document. Get additional resources by visiting our guide on [searching and redacting PDFs in iOS](/guides/ios/redacti…

Full-Text Search Across Multiple PDF Documents

Use `PDFDocumentPickerController` to perform a full-text search across all sample documents. Get additional resources by visiting our [PDF search lib…

Select All Text in a PDF

Add an “Select All” item to the menu to select all text within a document. Get additional resources by visiting our guide on [selecting text in our i…

Select Free Text Annotations

Automatically select Free Text Annotations and invoke editing for each. Get additional resources by visiting our [PSPDFDocument API guide](/api/ios/d…

Create Note from Selection

Add a menu item that will look for a text selection and create a note annotation at the selected position with the selected text as its content. Get …

Show Author Name on Annotation Selection

Show author name on annotation selection. Get additional resources by visiting our guide on [PSPDFAnnotation API guide](/api/ios/documentation/pspdfk…

Show Multiple Files as a Single PDF

Display a single document backed by multiple PDF data providers. Get additional resources by visiting our guide on [PDF file coordination in iOS](/gu…

Use PDF Tabs To Show Multiple Documents

Open multiple documents in a tabbed interface. Get additional resources by visiting our guide on [opening multiple windows in our iOS viewer](/guides…

Show Note Controller for Highlights

Automatically show the note controller when selecting highlight annotations. Get additional resources by visiting our [PSPDFPageView API guide](/api/…

Show a PDF's Download Progress

Show file download progress before the PDF file becomes available. Get additional resources by visiting our guide on [downloading PDF from a remote U…

Show or Hide All PDF Annotations

Allow users to hide or show all document annotations. Get additional resources by visiting our guide on [hiding PDF annotations in iOS](/guides/ios/a…

Simple Annotation Inspector

Hide certain properties from the annotation inspector to make it simpler to use. Get additional resources by visiting our guide on [customizing the o…

Simple Font Picker

Limit the choices of fonts in the font picker to make it simpler to use. Get additional resources by visiting our [PSPDFFontPickerViewController API …

Sticky Thumbnail Header

Set up a sticky and customized header for the document thumbnail scroll view. Get additional resources by visiting our [PSPDFThumbnailFlowLayout API …

Multiple Users: Storing PDF Annotations

Shows how to store annotations in JSON files for multiple users. Get additional resources by visiting our guide on [Instant JSON](/guides/ios/json/).

SwiftUI Split Screen

Show two instances of `PDFViewController` side by side using SwiftUI.

Toggle PDF Form Field Highlight Color

Shows how to toggle the drawing of the form highlight color on or off. Get additional resources by visiting our [PSPDFFormElement API guide.](/api/io…

Update Configuration When Rotating PDF

Illustrates how to update the viewing options when rotating the device. Get additional resources by visiting our guide on [configuring scroll directi…

Use PDFViewController with SwiftUI

Show a `PDFViewController` in SwiftUI. Get additional resources by visiting our [SwiftUI PDF library](/guides/ios/getting-started/swiftui/).

Use a Custom Image Picker Controller

Use a custom Image Picker with the source type `UIImagePickerControllerSourceType.camera`. Get additional resources by visiting our guide on [adding …

Customize the Sharing View When Using SwiftUI

See how you can use the delegation pattern to customize parts of PSPDFKit when using SwiftUI.

Using Instant JSON to Collaborate on PDFs

A collection of examples showing how to use the Instant JSON data exchange format. Get additional resources by visiting our [Instant JSON guide](/gui…

Use a Custom Annotation Provider (e.g. a Database)

A custom annotation provider that serializes its annotations. Useful when annotations are loaded from a URL. Get additional resources by visiting our…

Write PDF Annotations to an XFDF File

Create a set of Link Annotations across multiple pages and export an XFDF file containing them. Get additional resources by visiting our guide on [im…

Title Description Languages
Add Analytics to PDF Components Example implementation of `PDFAnalyticsClient` that logs events to the console. Get additional resources by visiting our guide on [iOS PDF viewer ana… Swift
Add Annotation Buttons to the Navigation Bar Shows how to add and update the state of annotation buttons in the navigation bar. Get additional resources by visiting our guide on [showing annotat… Swift
Add an Apple Map Widget to a Page Use a LinkAnnotation to add an Apple Maps Widget to a document page. Get additional resources by visiting our guide on [add link annotations to PDFs … Swift
Add a Copyright Notice Watermark to PDF This example show the different ways you can add copyright notices to a document that is about to be shared. Get additional resources by visiting our… Swift
Add Custom Buttons to the Free Text Keyboard Toolbar Add buttons for custom font sizes to the free text accessory view. Get additional resources by visiting our [PSPDFFreeTextAccessoryView API guide](/a… Swift
Add a File Annotation to PDF Adds new menu items that will create and delete file annotations at the selected position. Get additional resources by visiting our guide on [embedin… Swift
Open an Image Gallery Create buttons that show and hide image galleries or videos. Get additional resources by visiting our guide on [multimedia PDF annotations library in… Swift
Add Overlay Views to PDF Shows how to add custom overlay views, using UIView, on top of pages. Get additional resources by visiting our guide on [adding custom views to a pag… Swift
Add Signature to All PDF Pages Will add a signature to all pages of a document, optionally flattened. Get additional resources by visiting our guide on [adding electronic signature… Swift
Add Snake Game in PDF Play a quick game of old school snake. :) Swift
Add Text Annotation to PDF Add a `FreeText` annotation and programmatically insert text at the caret position. Get additional resources by visiting our guide on [programmatical… Swift
Add a Custom Gallery Annotation Add an animated GIF or inline video. Get additional resources by visiting [multimedia PDF annotations library in iOS](/guides/ios/annotations/multime… Swift
Add Video, Audio, Image Annotation to PDF Gallery example with video, images, audio and YouTube gallery items. Get additional resources by visiting our [multimedia PDF annotations library in … Swift
Add a Watermark to All PDF Pages Uses `PSPDFProcessor` to draw watermarks on all pages currently configured to be exported. Get additional resources by visiting our guide on [securin… Swift
Add a Bottom Inset to the User Interface Make space for custom UI elements by adding a bottom inset and moving the document scrubber bar up. Swift
PDF JavaScript Support: Add Calculator An example document with a working JavaScript-based calculator showing JavaScript support in PSPDFKit. Get additional resources by visiting [JavaScri… Swift
Add a Custom Cloudy Rectangle to PDF This example shows how to add a rectangle annotation with a cloudy border to your PDF documents. The cloudy annotation is popular in the architecture… Swift
Add a Custom Free Text Input Accessory This example shows how you can add a custom Free Text `inputAccessory` view on top of the keyboard on iOS. Swift
SwiftUI Sidebar Display the `PDFViewController` next to a Sidebar using SwiftUI. Swift
Add an Image Signature to PDF Add a stamp annotation using a loaded image and flag it as a signature. Get additional resources by visiting our guide on [adding electronic signatur… Swift
Allow Freeform Image Annotation Resizing Disables the forced aspect ratio resizing for image (stamp) annotations by utilizing autoresizingMask. Swift
Link Annotation Examples Link annotations can point to different pages, documents and even websites and can even be created to use external image or video files. Get addition… Swift
Apply XFDF Annotations to a PDF and Save it as a New Document Generating a new file by opening a document, applying XFDF annotations to it, and saving it using `PSPDFProcessor`. Get additional resources by visi… Swift
Asynchronous Digital Signature Signs a document asynchronously, simulating a PIN-entry screen. Get additional resources by visiting our guide on [adding a digital signature to a PD… Swift
Save as… PDF After Annotation Changes Have Been Detected Add an alert after detecting annotation writes to define a new save location for the modified document. Get additional resources by visiting our [Oth… Swift
Aviation Example Shows how to configure PSPDFKit to display a flight plan for pilots and a passenger list for the cabin crew. It forces the dark appearance for the UI… Swift
Blur PDF Pages Use UIBlurEffect to blur specific pages of a document. Swift
Child View Controller Using Parent Navigation Bar Shows how to embed a PDFViewController as a child view controller and let it use its parent\ Swift
Custom Button to Clear all PDF Annotation Add a \ Swift
Board Meeting Collaboration Example Shows how to create or join a collaborative editing session for a board meeting based on PSPDFKit Instant. This example connects to the public PSPDFK… Swift
Compare PDF Documents Compare documents by using a different stroke color for each of two document and creating a new documend combining the two. Get additional resources … Swift
Configure PDF Annotation Toolbar Manually configure and show the annotation toolbar, without `UINavigationController` or `PSPDFAnnotationBarButtonItem`. Get additional resources by v… Swift
Multiline Document Title Shows how to configure the document title label to fit a long, multiline title. Get additional resources by visiting our [PSPDFUserInterfaceView API … Swift
PDF E-Reader Example Shows how to configure PSPDFKit as an e-reader. Get additional resources by visiting our blog article on [building an e-reader for your application](… Swift
Construction Example An example showing how to configure PSPDFKit to display a building floor plan. Get additional resources by visiting our blog on [working with PDFs in… Swift
Create Free Text Annotations Continuously Keep the user in annotation creation mode in order to allow faster, continuous creation of multiple Free Text annotations. Get additional resources … Swift
HTML to PDF Conversion Convert a URL or simple HTML page to a PDF document. Get additional resources by visiting our guide on [generating PDFs from HTML in iOS](/guides/ios… Swift
Convert MS Office Files to PDFs Convert an MS Office file (DOCX, XLXS, PPTX) to PDF using Document Engine with our Office file conversion component. Get additional resources by visi… Swift
Stamp Button Uses a stamp annotation to trigger a JavaScriptAction. Get additional resources by visiting our guide on [adding a PDF stamp annotations in iOS](/gui… Swift
Create Email Snippet when Sharing PDF Define a standard message body when sharing a document via email. Swift
Create Link Annotations in PDF Shows how to only expose link annotations in the UI. Get additional resources by visiting our guide on [adding link annotations to PDFs in iOS](/guid… Swift
Bookmark Creation UI Show a UI window where the user can create a named bookmark. Get additional resources by visiting [iOS PDF bookmark library](/guides/ios/bookmarks/). Swift
Create a New PDF Programmatically Use `PSPDFProcessor` to create a new PDF document. Get additional resources by visiting our guide on [generating blank PDFs in iOS](/guides/ios/featu… Swift
Teleprompter Example Use the continuous scrolling page view with a timer function to automatically scroll through a document, using touch events to pause scrolling. Get a… Swift
Create a Password-Protected PDF Create a password protected document. Get additional resources by visiting our guide on [generating a password-protected PDF in iOS](/guides/ios/pdf-… Swift
Create a Custom Appearance Stream Generator Add additional custom drawing to a vector stamp annotation. Get additional resources by visiting our guide on [appearance streams for annotations in … Swift
Create a Custom PDF Navigation Bar with SwiftUI Show a `PDFViewController` in a SwiftUI context and add custom buttons to the navigation bar. Get additional resources by visiting our [SwiftUI PDF l… Swift
Create a Settings View with SwiftUI Use a `PDFViewController` with SwiftUI and present a custom page view settings view. Swift
Create an Always-Dark Annotation Toolbar Customize the Annotation Toolbar to always use Dark Mode UI using `overrideUserInterfaceStyle`on iOS 13. Swift
Create a Custom Annotation Inspector with SwiftUI Present a custom annotation Inspector written in SwiftUI. Get additional resources by visiting our [SwiftUI PDF library](/guides/ios/getting-started/… Swift
Use a Custom Annotation Provider Use a custom annotation provider. Get additional resources by visiting our guide on [saving PDF annotations to external storage in iOS](/guides/ios/i… Swift
Custom Comments UI Replace `PSPDFNoteAnnotationViewController` with a custom view controller. Swift
Use a Custom PDF Bookmark Provider Use a custom bookmark provider using a `plist` file. Get additional resources by visiting our guide on [iOS PDF bookmark library](/guides/ios/bookmar… Swift
Custom Page Labels in the Sharing UI Display page labels instead of page numbers in the sharing UI. Get additional resources by visiting our [pageDescriptionProvider API guide](/api/ios/… Swift
Custom PDF Stamp Annotations Extend the default set of stamps of the `PSPDFStampViewController` with additional text, image and vector stamps. Get additional resources by visiti… Swift
Use Custom Page Templates in the PDF Editor Add custom page templates to Document Editor’s Add New Page view. Get additional resources by visiting our guide on [adding pages to PDF files in iOS… Swift
Use a Custom Saving Confirmation for the PDF Editor Provide custom options for saving a document after editing it. Get additional resources by visiting [PDF editor library for iOS](/guides/ios/features… Swift
Add a Custom Thumbnail View Filter Add a custom filter — that only returns pages with ink annotations — by subclassing `ThumbnailViewController`. Get additional resources by visiting o… Swift
Customize Annotation Link Border Color Set a red border color for link annotations. Get additional resources by visiting our guide on [adding link annotations to PDFs in iOS](/guides/ios/a… Swift
Use a Custom Protocol Link Use a custom link protocol with a link annotation. Get additional resources by visiting our guide on [adding link annotations to PDFs in iOS](/guides… Swift
Customize the Annotation Inspector Shows how to customize the annotation Inspector to set Blend Modes for vector stamp annotations. Get additional resources by visiting our guide on [c… Swift
Color Preset Customization Override the default color presets in the annotation inspector view. Get additional resources by visiting our guide on [customizing color presets in … Swift
Customize Comment Font Size in PDF Customize `NoteAnnotationViewController`comments to use a larger font size. Swift
Customize PDF Annotation Toolbar Customize which tools are shown in the annotation toolbar and how they are grouped if there is not enough space to show all of them.r/ Swift
Customize PDF Annotation Toolbar with SwiftUI Display a custom annotation toolbar created with SwiftUI. Get additional resources by visiting our [SwiftUI PDF library](/guides/ios/getting-started/… Swift
Customize the PDF Editor Toolbar Customize the new page button and remove all remaining buttons from the Document Editor Toolbar. Get additional resources by visiting our guide on [e… Swift
Customize the Appearance of PDF Form Elements Customize the Appearance of Forms. Get additional resources by visiting our guide on [supported PDF form fields in iOS](/guides/ios/forms/introducti… Swift
Customize PDF Outline Shows how to use a custom document outline controller in the document info view. Get additional resources by visiting our guide on [customizing the d… Swift
Use a Custom Page Label Formatter Shows how to customize the page labels displayed inside the document view. Get additional resources by visiting our [PSPDFPageLabelFormatter API guid… Swift
Customize PDF Sharing Options Customzie the sharing options for documents. Get additional resources by visiting our guide on [configuring document sharing options in iOS](/guides/… Swift
Customize PDF Tab Titles Shows how to customize the tab titles for PSPDFTabbedViewController. Get additional resources by visiting our [PSPDFTabbedViewController API guide](/… Swift
Customize PDF View Margins Adjust the document view margins to make room for your custom user interface elements. Get additional resources by visiting our guide on [customizing… Swift
Customize PDF View Settings Use `PDFSettingsViewController` to customize key UX elements. Get additional resources by visiting our guide on [configuring scroll directions and pa… Swift
Add Custom Pencil Interactions Register a custom action to be triggered by `UIPencilInteraction`. Get additional resources by visiting our guide on [supporting for Apple Pencil dou… Swift
Scrubber Bar with Buttons Add `UIBarButtonItems` to the document scrubber bar. Get additional resources by visiting our [PSPDFScrubberBar API guide](/api/ios/documentation/psp… Swift
Customize Thumbnail Page Labels Customize page labels in the thumbnails view mode. Swift
Custom Vertical Annotation Toolbar Create a completely custom annotation toolbar. Get additional resources by visiting our guide on [annotation state manager in iOS](/guides/ios/annota… Swift
Screen Mirroring Add your own view controller to use with screen mirroring. Swift
Customize the Annotation Selection Knobs Customize the look of selected annotations by removing, repositioning and tinting the selection knobs. Get additional resources by visiting our [PSPD… Swift
Customize the Annotations List Customize how the cells used in `AnnotationTableViewController` are drawn. Get additional resources by visiting our guide on [customizing lists of an… Swift
Customize the Filename of Shared PDF Change the filename on shared files and add additional sharing options. Get additional resources by visiting our guide on [configuring document shari… Swift
Customize PDF Search Highlight Color Change the search highlight color to blue via `UIAppearance`. Get additional resources by visiting our guide on [searching for text in PDFs on iOS](/… Swift
Customize the Search Result Cell Use a custom text colors in the table view cell for `PSPDFSearchViewController`. Get additional resources by visiting [PDF search library for iOS](/g… Swift
Customized Note Annotation View Controller Customize `PSPDFNoteAnnotationViewController` to hide the Note timestamp and author labels. Get additional resources by visiting our [PSPDFNoteAnnota… Swift
Show Documents with UIPageViewController Use `UIPageViewController` to cycle through PDF documents. Swift
Disable Annotation Reviews Use Document Features to disable viewing and setting annotation reviews. Get additional resources by visiting our guides on [reviewing and replying t… Swift
Disable Bookmark Editing Disable bookmark editing using Document Features. Get additional resources by visiting our guides on [PDF Document Features](/guides/ios/features/doc… Swift
Disable Bookmark Renaming Override the default bookmark cell to disable bookmark renaming. Get additional resources by visiting our guide on [iOS PDF bookmark library](/guides… Swift
Disable PDF Annotation Editing Use annotation flags to disable annotation editing. Get additional resources by visiting our guide on [disabling annotation editing in iOS](/guides/i… Swift
Disable Scroll Bouncing Disable bouncing for the document scroll view zoom and zoom view. Swift
Disable Removing Digital Signature Set `allowDeletingDigitalSignatures` to false to disable removing of added Digital Signatures. Get additional resources by visiting our [PSPDFSignedF… Swift
Confirmation Sheet for Annotation Deletion Present a confirmation sheet before deleting annotations. Get additional resources by visiting our guide on [annotations object model in iOS](/guides… Swift
Display Measurements on PDF Pages or Spreads Shows how to add auxilary views to spreads/pages. Get additional resources by visiting our [PSPDFPageView API guide](/api/ios/documentation/pspdfkitu… Swift
Display PDF Annotations on Layers Use Instant’s Layers feature to display different sets of annotations on a document. Get additional resources by visiting our guide on [creating PDF … Swift
Display PDF in Inbox Directory Display all files in the Inbox directory via the `PDFDocumentPickerController`. Get additional resources by visiting our [PSPDFDocumentPickerControll… Swift
Popover Presentation Present the default PDFViewController in a popover controller. Swift
Share a Document’s originalFile Allow your user to share the original file — like a word document — from which the current PDF was generated from.options for Open In. For more info… Swift
Download a PDF from a Remote URL Automatically download and cache a PDF, showing a download progress indicator and using offline storage. Get additional resources by visiting our gui… Swift
Draw All Annotations as Overlays Render all annotations on top of custom subviews of the page view. Swift
Embed PSPDFKit as a Child View Controller Shows how to embed a PDFViewController as a child view controller. Get additional resources by visiting our guide on [embedding PDF view controllers … Swift
Embed a SwiftUI View inside a Page View Add a SwiftUI-based child view to a document page view. Get additional resources by visiting our guide on [customizing the display of PDFs in iOS wit… Swift
Embed, Flatten or Remove PDF Annotations Use the PSPDFProcessor class to embed, flatten or remove annotations. Get additional resources by visiting [iOS PDF Annotation Library](/guides/ios/… Swift
Enable Auto-Save with PDF Checkpointing Enable auto saving of documents via the document checkpointing API. Get additional resources by visiting our guide on [auto saving PDFs in iOS](/guid… Swift
Enable Fixed PDF Toolbar Position Only allow the annotation and document editor toolbars to be positioned at the top of the document view. Get additional resources by visiting our gui… Swift
Enable Saving Confirmation when Exiting PDF Disable document auto saving and display a saving confirmation dialog before exiting. Get additional resources by visiting our guide on [saving PDF d… Swift
Encrypt and Decrypt a PDF Document Encrypt a document with a key generated from a passphrase, and use the same passphrase to later decrypt it. Get additional resources by visiting our … Swift
Encrypt Disk Cache when Rendering PDF Wrap cache access into an encryption layer for improved document security. Get additional resources by visiting our guide on [iOS PDF document securi… Swift
Use Encrypted XFDF Documents You can encrypt or decrypt XFDF files on-the-fly to store annotation data securely. Get additional resources by visiting our [PSPDFAESCryptoDataProvi… Swift
Exit Drawing Mode Automatically Exit drawing mode automatically after a line has been drawn. Get additional resources by visiting our guide on [annotation state manager in iOS](/gui… Swift
Redact Faces From a Document Shows how to redact faces in documents with `PSPDFProcessor` and Apple’s `CIDetector`. Get additional resources by visiting our [PDF redaction librar… Swift
Fixed-Size PDF Annotations Create a custom stamp annotation type that has a fixed size and is not resized when the page is zoomed in or out. Get additional resources by visitin… Swift
Playground The Quick Start Guide PDF document to help you get around PSPDFKit for iOS’s UI. Swift
Hide or Reveal Area in PDF Allow users to select areas to hide and reveal on a page, using a custom square annotation. Swift
Highlighting Text in PDF Shows how to automatically create a highlight annotation after selecting text, replicating the behavior of Apple Books app. Get additional resources … Swift
Annotate on Image Documents Load an image file from a local folder to use with the PDF annotation tools. Get additional resources by visiting our guide on [adding annotations to… Swift
Implement a Document Picker Sidebar Implement a Document Picker in the sidebar. Get additional resources by visiting our [PSPDFDocumentPickerControllerDelegate API guide](/api/ios/docum… Swift
Import and Export XFDF Data The XML Forms Data Format, XFDF for short, can be used to store PDF forms and annotations data independently of a PDF document. This sample shows how… Swift
Initialize a PDF with Data Initialize a PDF document with Data contents in-memory (the document is not saved to the file system). Get additional resources by visiting our guide… Swift
Insert Page into PDF from another Document Use `PSPDFDocumentEditor` to copy a page from another document. Get additional resources by visiting our guide on [adding pages to PDF files in iOS](… Swift
Storyboard Integration Create `PDFViewController` in a UIStoryboard. Swift
E-Learning (LMS) Example Shows how PSPDFKit can be configured for taking and grading an e-learning exam. Get additional resources by visiting our blog article on [grading pap… Swift
Customize how PDF Annotations Load A custom annotation provider that lazily loads its annotations and combines them with annotations from the PDF document. Get additional resources by … Swift
Link Annotation View Customization Enforce a fixed style for link annotations. Get additional resources by visiting our [PSPDFLinkAnnotationView API guide](/api/ios/documentation/pspdf… Swift
Monitor UI Touches Use UIGestureRecognizer to get a callback when the user touches anywhere inside the `PDFViewController`’s view. Swift
Multi-User PDF Collaboration Show multiple instances of an Instant document for collaborative editing. Get additional resources by visiting our guide on [Instant Usage](/guides/i… Swift
Multimedia Load PDF with various multimedia additions and an embedded video. Swift
OCR Perform optical character recognition (OCR) on a PDF document. Get additional resources by visiting our guide on [how to OCR a PDF in iOS](/guides/io… Swift
Open an AES-Encrypted PDF An example showing how to open an AES-encrypted PDF on the fly, without storing any of the decrypted information. Get additional resources by visitin… Swift
Open PDF with Preset Password Unlock document with password programmatically. Get additional resources by visiting our guide on [opening password-protected PDFs in iOS](/guides/io… Swift
Instant PDF Collaboration Connect to our example PSPDFKit Instant server and download a document for collaborative editing. Get additional resources by visiting our [PDF colla… Swift
PDF Form Examples This example shows the various ways you can work with PDF Forms, from appearance customization to accessing form field data or working with digital s… Swift
Highlight Annotation Blend Mode Menu Add the Blend Mode menu item in the highlight annotation selection menu. Get additional resources by visiting our guide on [defining annotation blend… Swift
PDF Magazine Reader Configure the PSPDFKit UI for use as a magazine reader. Swift
PDF Page Scale & Resize Use`PSPDFProcessor` to scale (resize) document pages. Get additional resources by visiting our guide on [scaling or resizing PDFs in iOS](/guides/ios… Swift
Reader View: PDF Reflow Show the Reader View, which reformats document text for easy reading. Get additional resources by visiting our [iOS PDF reader library](/guides/ios/f… Swift
Generate a PDF Report Generate a document out of multiple PDF files, add new pages, and protect the new PDF document with a password. Get additional resources by visiting … Swift
PDF Streaming Demonstrates a way to load parts of a document on demand. Swift
PDF Streaming with SwiftUI Demonstrates a way to load parts of a document on demand in SwiftUI. Swift
Redact Text in PDF Using Regex Use regular expressions to redact URLs from a document. Get additional resources by visiting our guide on [using RegEx to redact PDFs in iOS](/guides… Swift
PDFViewController Controller State Shows the default, empty, error, and locked states of the PDFViewController. Get additional resources by visiting our [PSPDFViewController API guide]… Swift
Built-In Passowrd Entry UI Trying to load a password-protected document without providing the passwort will trigger a dialog. Password is \ Swift
Persist View Settings Persist `PDFSettingsViewController` options set by your user via UserDefaults. Swift
Contained Digital Signatures Prepare a document with a signature form field to later use to embed a digital signature. Get additional resources by visiting our guide on [containe… Swift
Contained PAdES Digital Signature Prepare a document to embed a PAdES advanced digital signature afterwards. Get additional resources by visiting our guide on [contained digital signa… Swift
Preserving PDF Annotation Aspect Ratio During Resize Implement resizing that always preserves the annotation aspect ratio. Get additional resources by visiting our guide on [customize user interactions … Swift
Printer Defaults for PDF Annotations Configure the printer default settings to print a summary of all annotations. Get additional resources by visiting our guide on [configuring PDF shar… Swift
Add PDF Annotations Programmatically Add an Ink Annotation in code. Get additional resources by visiting our guide on [programmatically creating PDF annotations in iOS](/guides/ios/annot… Swift
Programmatic PDF Editing Use `PSPDFDocumentEditor` to rotate the first two pages and then add a new first page to the current document. Get additional resources by visiting o… Swift
Programmatically Go To PDF Outline Programmatically go to a specific document outline item. Get additional resources by visiting our [Outline API guide](/api/ios/documentation/pspdfki… Swift
Search PDF Without Controller Search programmatically without displaying a search controller. Get additional resources by visiting our guide on [search for text in PDFs on iOS](/g… Swift
Redact Text in PDF Redact text from a page using `PSPDFProcessor`. Get additional resources by visiting our guide on [search and redact PDFs in iOS](/guides/ios/redacti… Swift
Remove Password from PDF Example shows how to use the document processor to remove password protection from a document. Get additional resources by visiting our [Security AP… Swift
Render Drawings on PDF Pages Shows how to add custom drawing rendering on pages without commiting the drawings to the document. Get additional resources by visiting our guide on … Swift
Rotate PDF Page Add a button to rotate pages in 90 degree steps and saves the new orientation. Get additional resources by visiting our guide on [rotating PDF pages … Swift
Rotate Page Temporarily Add a button to rotate pages temporarily in 90 degree steps without writing changes to the PDF. Get additional resources by visiting our [PSPDFRotati… Swift
Save Reading Position in a PDF Persist the view state so your app can later return to a user’s saved reading position within the document. Get additional resources by visiting our … Swift
Search and Redact Text Search and redact text in a PDF document. Get additional resources by visiting our guide on [searching and redacting PDFs in iOS](/guides/ios/redacti… Swift
Full-Text Search Across Multiple PDF Documents Use `PDFDocumentPickerController` to perform a full-text search across all sample documents. Get additional resources by visiting our [PDF search lib… Swift
Select All Text in a PDF Add an “Select All” item to the menu to select all text within a document. Get additional resources by visiting our guide on [selecting text in our i… Swift
Select Free Text Annotations Automatically select Free Text Annotations and invoke editing for each. Get additional resources by visiting our [PSPDFDocument API guide](/api/ios/d… Swift
Create Note from Selection Add a menu item that will look for a text selection and create a note annotation at the selected position with the selected text as its content. Get … Swift
Show Author Name on Annotation Selection Show author name on annotation selection. Get additional resources by visiting our guide on [PSPDFAnnotation API guide](/api/ios/documentation/pspdfk… Swift
Show Multiple Files as a Single PDF Display a single document backed by multiple PDF data providers. Get additional resources by visiting our guide on [PDF file coordination in iOS](/gu… Swift
Use PDF Tabs To Show Multiple Documents Open multiple documents in a tabbed interface. Get additional resources by visiting our guide on [opening multiple windows in our iOS viewer](/guides… Swift
Show Note Controller for Highlights Automatically show the note controller when selecting highlight annotations. Get additional resources by visiting our [PSPDFPageView API guide](/api/… Swift
Show a PDF's Download Progress Show file download progress before the PDF file becomes available. Get additional resources by visiting our guide on [downloading PDF from a remote U… Swift
Show or Hide All PDF Annotations Allow users to hide or show all document annotations. Get additional resources by visiting our guide on [hiding PDF annotations in iOS](/guides/ios/a… Swift
Simple Annotation Inspector Hide certain properties from the annotation inspector to make it simpler to use. Get additional resources by visiting our guide on [customizing the o… Swift
Simple Font Picker Limit the choices of fonts in the font picker to make it simpler to use. Get additional resources by visiting our [PSPDFFontPickerViewController API … Swift
Sticky Thumbnail Header Set up a sticky and customized header for the document thumbnail scroll view. Get additional resources by visiting our [PSPDFThumbnailFlowLayout API … Swift
Multiple Users: Storing PDF Annotations Shows how to store annotations in JSON files for multiple users. Get additional resources by visiting our guide on [Instant JSON](/guides/ios/json/). Swift
SwiftUI Split Screen Show two instances of `PDFViewController` side by side using SwiftUI. Swift
Toggle PDF Form Field Highlight Color Shows how to toggle the drawing of the form highlight color on or off. Get additional resources by visiting our [PSPDFFormElement API guide.](/api/io… Swift
Update Configuration When Rotating PDF Illustrates how to update the viewing options when rotating the device. Get additional resources by visiting our guide on [configuring scroll directi… Swift
Use PDFViewController with SwiftUI Show a `PDFViewController` in SwiftUI. Get additional resources by visiting our [SwiftUI PDF library](/guides/ios/getting-started/swiftui/). Swift
Use a Custom Image Picker Controller Use a custom Image Picker with the source type `UIImagePickerControllerSourceType.camera`. Get additional resources by visiting our guide on [adding … Swift
Customize the Sharing View When Using SwiftUI See how you can use the delegation pattern to customize parts of PSPDFKit when using SwiftUI. Swift
Using Instant JSON to Collaborate on PDFs A collection of examples showing how to use the Instant JSON data exchange format. Get additional resources by visiting our [Instant JSON guide](/gui… Swift
Use a Custom Annotation Provider (e.g. a Database) A custom annotation provider that serializes its annotations. Useful when annotations are loaded from a URL. Get additional resources by visiting our… Swift
Write PDF Annotations to an XFDF File Create a set of Link Annotations across multiple pages and export an XFDF file containing them. Get additional resources by visiting our guide on [im… Swift