Contents

init(bounds:forType:withProperties:)

Creates a PDF annotation with the specified bounds, type, and optional properties.

Declaration

init(bounds: CGRect, forType annotationType: PDFAnnotationSubtype, withProperties properties: [AnyHashable : Any]?)
init(bounds: NSRect, forType annotationType: PDFAnnotationSubtype, withProperties properties: [AnyHashable : Any]?)

Parameters

  • bounds:

    The bounding box of the annotation, in page-space coordinates.

  • annotationType:

    The subtype of the annotation, such as text, link, or line.

  • properties:

    A dictionary that contains properties of the annotation.

See Also

Creating an Annotation