pdfkit

Display, navigate, annotate, and manipulate PDF content in Swift apps.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/femitz/flyby --skill pdfkit-femitz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdfkit
Source: https://github.com/femitz/flyby/tree/main/.agents/skills/pdfkit
Command: npx skills add https://github.com/femitz/flyby --skill pdfkit-femitz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PDFKit enables display, navigation, annotation, and manipulation of PDF content in Swift-based apps.

Core Features & Use Cases

  • Display PDFs with PDFView and load documents with PDFDocument.
  • Annotate, search, navigate pages, and generate thumbnails; SwiftUI integration for embedding in views.

Quick Start

Create a PDFView, assign a PDFDocument, and present it in your SwiftUI or UIKit interface.

Frequently Asked Questions about pdfkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I display a PDF in a SwiftUI view?

Display a PDF in SwiftUI by creating a PDFView, loading a PDFDocument instance, and embedding the PDFView into your SwiftUI interface to enable document rendering and page navigation.

What is the best way to add annotations to a PDF in Swift?

Adding annotations to a PDF in Swift uses PDFKit's PDFAnnotation API attached to a PDFPage, enabling you to draw, highlight, or mark up document content directly within your PDFView.

Can I use PDFKit to generate PDF thumbnails and search text?

Yes, PDFKit supports generating page thumbnails and searching text within a loaded PDFDocument, allowing users to navigate pages and locate specific content across the PDF in your Swift app.

Does PDFKit work with SwiftUI on both iOS and macOS?

PDFKit integrates with SwiftUI across iOS 26+ and macOS, letting you embed PDFView instances within your app interfaces to load, display, and manipulate PDFDocument content on both platforms.

How do I load and navigate a PDFDocument in a Swift app?

Load and navigate a PDFDocument in Swift by initializing the document from a file URL, assigning it to a PDFView, and using built-in controls to browse pages, search text, and manage content.