setValue(_:forAnnotationKey:)
Sets a value in the annotation’s dictionary.
Declaration
func setValue(_ value: Any, forAnnotationKey key: PDFAnnotationKey) -> BoolParameters
- value:
The value to set in the attribute’s dictionary.
- key:
A Pdfannotationkey or appropriate string from the Adobe PDF Specification.
Return Value
Discussion
Some keys expect a complex type. For example, the color key expects an array of zero, one, two, three, or four elements, where each element is a floating-point number from 0.0 to 1.0. As a convenience, this key accepts an NSColor or UIColor value. For details about other conveniences, see the individual PDFAnnotationKey properties or the PDFAnnotationUtilities.h header file.