Instance Method

initWithBounds:

Initializes a PDF annotation object.

Declaration

- (instancetype)initWithBounds:(NSRect)bounds;

Parameters

bounds

The bounding box of the annotation, in page space.

Return Value

An initialized PDFAnnotation instance, or NULL if the object could not be initialized.

Discussion

Subclasses of PDFAnnotation should use this method to initialize annotation instances. Provide bounds in page space. Invoking initWithBounds: directly on a PDFAnnotation object creates an illegal NULL type.

Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.