PDFAttributedText

public class PDFAttributedText : PDFText

Attributed text objects hold an instance of NSAttributedString

Use this class for advanced text drawing

  • Text which will be drawn

    Declaration

    Swift

    public var text: NSAttributedString
  • Initializer

    Declaration

    Swift

    public init(text: NSAttributedString)

    Parameters

    text

    Text, which will be drawn

  • Creats a new PDFAttributedText with the same properties

    Declaration

    Swift

    override public var copy: PDFText { get }

Equatable

  • Compares two instances of PDFAttributedText for equality

    Declaration

    Swift

    override public func isEqual(to other: PDFDocumentObject) -> Bool

    Parameters

    lhs

    One instance of PDFAttributedText

    rhs

    Another instance of PDFAttributedText

    Return Value

    true, if attributes, tag and text equal; otherwise false