PDFAttributedText

public class PDFAttributedText : PDFText

Advanced text objects using an attributed stringFoundation.NSAttributedString as the internal structure.

Use this class for advanced text drawing. For simpler use cases, consider PDFSimpleText.

  • Attributed string which will be drawn in the PDF graphics context

    Declaration

    Swift

    public var text: NSAttributedString
  • Creates a new attributed text object with the given text

    Declaration

    Swift

    public init(text: NSAttributedString)

    Parameters

    text

    Foundation.NSAttributedString to be drawn in the document

  • Creates 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 text equal; otherwise false

Hashable

  • nodoc

    Declaration

    Swift

    override public func hash(into hasher: inout Hasher)