What problem does it solve?
This Skill helps you display PDF documents, navigate pages, and add highlights, notes, and links inside an iOS app—without building PDF rendering or annotation tooling from scratch.
Core Features & Use Cases
- PDF display & navigation: Render documents with PDFView, jump to pages/destinations, and track page changes for UI updates.
- Loading & document manipulation: Create PDFDocument instances from URLs/Data, inspect page counts, insert/remove/exchange pages, and write out updated documents.
- Search, selection & extraction: Find strings synchronously/asynchronously, highlight matched selections, and extract full/page/region text.
- Annotations & linking: Add highlight/text/free-text/link annotations to PDFPage using correct PDF coordinate space.
- SwiftUI integration: Wrap PDFView in SwiftUI via UIViewRepresentable for modern UI composition.
- Thumbnails & overlays: Generate thumbnails and place custom overlay views per page when standard annotations aren’t enough.
Quick Start
Use the pdfkit skill to render a local PDF file in a SwiftUI screen and enable page navigation with basic highlighting of a search term.