One Logo Pool Ball
PDFKit · IOS API REFERENCE

PDFPage

class · iOS 11.0+ · SDK 27.1

class PDFPage

Members (31)

method · iOS 11.0+

addAnnotation

TypeScript
addAnnotation(annotation: PDFAnnotation): void
Swift declaration
func addAnnotation(_ annotation: PDFAnnotation)
method · iOS 11.0+

annotation

TypeScript
annotation(point: { x: number; y: number }): (PDFAnnotation) | null
Swift declaration
func annotation(at point: CGPoint) -> PDFAnnotation?
method · iOS 11.0+

bounds

TypeScript
bounds(box: PDFDisplayBox): { x: number; y: number; width: number; height: number }
Swift declaration
func bounds(for box: PDFDisplayBox) -> CGRect
method · iOS 11.0+

characterBounds

TypeScript
characterBounds(index: number): { x: number; y: number; width: number; height: number }
Swift declaration
func characterBounds(at index: Int) -> CGRect
method · iOS 11.0+

characterIndex

TypeScript
characterIndex(point: { x: number; y: number }): number
Swift declaration
func characterIndex(at point: CGPoint) -> Int
method · iOS 11.0+

draw

TypeScript
draw(box: PDFDisplayBox, context: _CoreGraphics_CGContext): void
Swift declaration
func draw(with box: PDFDisplayBox, to context: CGContext)
init · iOS 11.0+

init

TypeScript
static init(): PDFPage
Swift declaration
init()
init · iOS 11.0+

init

TypeScript
static initImage(image: _UIKit_UIImage): (PDFPage) | null
Swift declaration
convenience init?(image: UIImage)
init · iOS 16.0+

init

TypeScript
static initImageOptions(image: _UIKit_UIImage, options?: NativeMap<PDFPage_ImageInitializationOption, unknown>): (PDFPage) | null
Swift declaration
init?(image: UIImage, options: [PDFPage.ImageInitializationOption : Any] = [:])
method · iOS 11.0+

removeAnnotation

TypeScript
removeAnnotation(annotation: PDFAnnotation): void
Swift declaration
func removeAnnotation(_ annotation: PDFAnnotation)
method · iOS 11.0+

selectionForLine

TypeScript
selectionForLine(point: { x: number; y: number }): (PDFSelection) | null
Swift declaration
func selectionForLine(at point: CGPoint) -> PDFSelection?
method · iOS 11.0+

selection

TypeScript
selectionFor(range: SDKHandle): (PDFSelection) | null
Swift declaration
func selection(for range: NSRange) -> PDFSelection?
method · iOS 11.0+

selection

TypeScript
selectionFor81500(rect: { x: number; y: number; width: number; height: number }): (PDFSelection) | null
Swift declaration
func selection(for rect: CGRect) -> PDFSelection?
method · iOS 11.0+

selectionForWord

TypeScript
selectionForWord(point: { x: number; y: number }): (PDFSelection) | null
Swift declaration
func selectionForWord(at point: CGPoint) -> PDFSelection?
method · iOS 11.0+

selection

TypeScript
selectionFromTo(startPoint: { x: number; y: number }, endPoint: { x: number; y: number }): (PDFSelection) | null
Swift declaration
func selection(from startPoint: CGPoint, to endPoint: CGPoint) -> PDFSelection?
method · iOS 11.0+

setBounds

TypeScript
setBounds(bounds: { x: number; y: number; width: number; height: number }, box: PDFDisplayBox): void
Swift declaration
func setBounds(_ bounds: CGRect, for box: PDFDisplayBox)
method · iOS 11.0+

thumbnail

TypeScript
thumbnail(size: { width: number; height: number }, box: PDFDisplayBox): _UIKit_UIImage
Swift declaration
func thumbnail(of size: CGSize, for box: PDFDisplayBox) -> UIImage
method · iOS 11.0+

transform

TypeScript
transformFor(context: _CoreGraphics_CGContext, box: PDFDisplayBox): void
Swift declaration
func transform(_ context: CGContext, for box: PDFDisplayBox)
method · iOS 11.0+

transform

TypeScript
transformFor40611(box: PDFDisplayBox): _CoreFoundation_CGAffineTransform
Swift declaration
func transform(for box: PDFDisplayBox) -> CGAffineTransform
get · iOS 11.0+

annotations

TypeScript
get annotations(): Array<PDFAnnotation>
Swift declaration
var annotations: [PDFAnnotation] { get }
get · iOS 11.0+

attributedString

TypeScript
get attributedString(): (_Foundation_NSAttributedString) | null
Swift declaration
var attributedString: NSAttributedString? { get }
get · iOS 11.0+

dataRepresentation

TypeScript
get dataRepresentation(): (ArrayBuffer) | null
Swift declaration
var dataRepresentation: Data? { get }
get · iOS 11.0+

displaysAnnotations

TypeScript
get displaysAnnotations(): boolean
Swift declaration
var displaysAnnotations: Bool { get set }
set · iOS 11.0+

displaysAnnotations

TypeScript
set displaysAnnotations(value: boolean)
Swift declaration
var displaysAnnotations: Bool { get set }
get · iOS 11.0+

document

TypeScript
get document(): (PDFDocument) | null
Swift declaration
weak var document: PDFDocument? { get }
get · iOS 11.0+

label

TypeScript
get label(): (string) | null
Swift declaration
var label: String? { get }
get · iOS 11.0+

numberOfCharacters

TypeScript
get numberOfCharacters(): number
Swift declaration
var numberOfCharacters: Int { get }
get · iOS 11.0+

pageRef

TypeScript
get pageRef(): (_CoreGraphics_CGPDFPage) | null
Swift declaration
var pageRef: CGPDFPage? { get }
get · iOS 11.0+

rotation

TypeScript
get rotation(): number
Swift declaration
var rotation: Int { get set }
set · iOS 11.0+

rotation

TypeScript
set rotation(value: number)
Swift declaration
var rotation: Int { get set }
get · iOS 11.0+

string

TypeScript
get string(): (string) | null
Swift declaration
var string: String? { get }

Skipped declarations

No declarations were skipped in this snapshot.

All PDFKit types →