pdfkit

Render, navigate, annotate, and manipulate PDF documents with PDFKit.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/harshav167/build-ios-apps --skill pdfkit-harshav167
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdfkit
Source: https://github.com/harshav167/build-ios-apps/tree/main/skills/pdfkit
Command: npx skills add https://github.com/harshav167/build-ios-apps --skill pdfkit-harshav167

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PDFKit provides a unified API set to render, navigate, annotate, and manipulate PDF documents in Swift-based apps, streamlining complex document workflows across iOS and macOS.

Core Features & Use Cases

  • Display PDFs with PDFView, navigate pages, and load documents for viewing.
  • Annotate, fill forms, extract text, generate thumbnails, and wrap PDFView in SwiftUI.
  • Use case: embed PDF viewing and editing in a productivity app that handles forms and reports.

Quick Start

Create a PDFKit view by loading a PDFDocument and attaching it to a PDFView to display a PDF in your SwiftUI or UIKit app.

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 app?

To display a PDF in SwiftUI, load a PDFDocument and attach it to a PDFView. You can wrap the PDFView in SwiftUI to render, navigate, and view PDF documents within your app.

Can I extract text and generate thumbnails from PDFs using PDFKit?

Yes, PDFKit supports extracting text using PDFSelection and generating thumbnails from PDF documents. These features allow you to implement search functionality and create visual previews for pages.

How do I annotate forms and save edits back to disk in iOS?

You can annotate forms and fill form fields using PDFAnnotation components in PDFKit. After manipulating the PDFDocument, the API supports saving the edits directly back to disk on iOS and macOS.

Does PDFKit work with both UIKit and SwiftUI for PDF document manipulation?

PDFKit supports integration with both UIKit and SwiftUI, allowing you to embed PDFView to render, navigate, annotate, and manipulate PDF documents across Apple platforms seamlessly.

What is the best way to embed PDF viewing and editing in a Swift productivity app?

The best way to embed PDF viewing and editing in a Swift app is using PDFKit, which provides a unified API to render, navigate, annotate, and manipulate PDF documents, streamlining complex document workflows.