Comment

class Comment: PDFElement

A PDF comment element

  • The leading text of the comment

    Declaration

    Swift

    let leadingText = NSAttributedString(string: "􀌲", attributes: .sectionLabel)
  • The comment text

    Declaration

    Swift

    let commentText: NSAttributedString
  • Init the comment element

    Declaration

    Swift

    init(_ commentText: String)

    Parameters

    commentText

    The text of the comment

  • Draw the comment element as a Label element

    Declaration

    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