pdfkit
Display and manipulate PDF documents using PDFKit. Use when embedding PDFView to show PDF files, creating or modifying PDFDocument instances, adding annotations (highlights, notes, signature widgets), extracting text with PDFSelection, navigating pages, generating thumbnails, filling PDF forms, or wrapping PDFView in SwiftUI.
npx skills add dpearson2699/swift-ios-skills --skill pdfkit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# PDFKit Display, navigate, search, annotate, and manipulate PDF documents with `PDFView`, `PDFDocument`, `PDFPage`, `PDFAnnotation`, and `PDFSelection`. ## Contents - [Setup](#setup) - [Displaying PDFs](#displaying-pdfs) - [Loading Documents](#loading-documents) - [Page Navigation](#page-navigation) - [Text Search and Selection](#text-search-and-selection) - [Annotations](#annotations) - [Thumbnails](#thumbnails) - [SwiftUI Integration](#swiftui-integration) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Setup PDFKit requires no entitlements or Info.plist entries. ```swift import PDFKit ``` | API | Availability | |---|---| | PDFKit framework | iOS/iPadOS/tvOS 11+, Mac Catalyst 13.1+, macOS 10.4+, visionOS 1.0+ | | Find interaction and page overlays | iOS/iPadOS 16+ | ## Displaying PDFs `PDFView` renders PDF content and handles zoom, scrolling, text selection, and page navigation. ```swift import PDFKit import UIKit class PDFViewController: UIViewController { let pdfView = PDFView() override func viewDidLoad() { super.viewDidLoad() pdfView.frame = view.bounds pdfView.autoresizingMask = [.flexibleWidth, .flexibleHeight] v
- Contents
- Setup
- Displaying PDFs
- Display Modes
- Scaling and Appearance
- Loading Documents
- Password-Protected PDFs
- Saving and Page Manipulation
- Page Navigation
- Observing Page Changes
- Text Search and Selection
- Synchronous Search
- Asynchronous Search
- Incremental Search and Find Interaction
What does the pdfkit skill do?
Display and manipulate PDF documents using PDFKit. Use when embedding PDFView to show PDF files, creating or modifying PDFDocument instances, adding annotations (highlights, notes, signature widgets), extracting text with PDFSelection, navigating pages, generating thumbnails, filling PDF forms, or wrapping PDFView in SwiftUI.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill pdfkit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.