Instance Method

draw(with:)

Draws the annotation on its associated page.

Declaration

func draw(with box: PDFDisplayBox)

Parameters

box

The bounding box used to draw the annotation in.

Discussion

The annotation is drawn relative to the origin of box in page space.

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

For additional information see the Constants section in the PDFPage class.

See Also

Managing Annotation Drawing and Output

var shouldDisplay: Bool

Returns a Boolean value indicating whether the annotation should be displayed.

var shouldPrint: Bool

Returns a Boolean value indicating whether the annotation should appear when the document is printed.