An object that represents PDF data or a PDF file and defines methods for writing, searching, and selecting PDF data.
SDKs
- iOS 11.0+
- macOS 10.4+
- Mac Catalyst 13.0+
Framework
- PDFKit
Declaration
class PDFDocument : NSObject
Overview
The other utility classes are either instantiated from methods in PDFDocument
, as are PDFPage
and PDFOutline
; or support it, as do PDFSelection
and PDFDestination
.
You initialize a PDFDocument
object with PDF data or with a URL to a PDF file. You can then ask for the page count, add or delete pages, perform a find, or parse selected content into an NSString
object.