Comment
class Comment: PDFElement
A PDF comment element
-
The leading text of the comment
Declaration
Swift
let leadingText: NSAttributedString
-
The comment text
Declaration
Swift
let commentText: NSAttributedString
-
Background color
Declaration
Swift
let backgroundColor: NSColor
-
Init the comment element
Declaration
Swift
init(_ commentText: String, icon: String = "", backgroundColor: NSColor = .pdfComment)
Parameters
commentText
The text of the comment
backgroundColor
The background color
icon
The icon
-
Draw the comment element as a
Label
elementDeclaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)
Parameters
rect
The available rectangle
calculationOnly
Bool if only the Bounding Rect should be calculated
pageRect
The page size of the PDF document