Agent skill · software engineering · dpearson2699

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.

Why this skill is useful

Provides specific commands and patterns for manipulating PDF documents that the AI wouldn't reliably generate on its own.

What it needs

About 6k tokens when loaded. Last updated 2026-07-31. 973 stars on the source repository.

What this skill does

PDFKit Display, navigate, search, annotate, and manipulate PDF documents with PDFView, PDFDocument, PDFPage, PDFAnnotation, and PDFSelection. Contents Setup Displaying PDFs Loading Documents Page Navigation Text Search and Selection Annotations Thumbnails SwiftUI Integration Common Mistakes Review Checklist References Setup PDFKit requires no entitlements or Info.plist entries. 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. Display Modes Mode Behavior --- --- .singlePage One page at a time .singlePageContinuous Pages stacked vertically, scrollable .twoUp Two pages side by side .twoUpContinuous Two-up with continuous scrolling Scaling and Appearance Loading Documents PDFDocument loads from a URL, Data, or can be created empty. Password-Protected PDFs Saving and Page Manipulation Page Navigation PDFView provides built-in navigation with history tracking. Observing Page Changes Text Search and Selection Synchronous Search Asynchronous Search Use PDFDocumentDelegate for background searches on large documents. Implement didMatchString(:) to receive each match and documentDidEndDocumentFind(:) for completion. Incremental Search and Find Interaction Text Extraction Highlighting Search Results Annotations Annotations are created with PDFAnnotation(bounds:forType:withProperties:) and added to a PDFPage. Highlight Annotation Text Note Annotation Free Text Annotation Link Annotation Removing Annotations Common subtypes include .highlight, .underline, .strikeOut, .text, .freeText, .ink, .link, .line, .square, .circle, .stamp, and .widget. Thumbnails PDFThumbnailView PDFThumbnailView shows a strip of page thumbnails linked to a PDFView. Generating Thumbnails Programmatically SwiftUI Integration Wrap PDFView in a UIViewRepresentable for SwiftUI. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills dpearson2699/pdfkit

View the source on GitHub

Browse the @skills marketplace