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 propertiesDeclaration
Swift
override public var copy: PDFText { get }
-
Compares two instances of
PDFAttributedText
for equalityDeclaration
Swift
override public func isEqual(to other: PDFDocumentObject) -> Bool
Parameters
lhs
One instance of
PDFAttributedText
rhs
Another instance of
PDFAttributedText
Return Value
true
, iftext
equal; otherwisefalse
-
nodoc
Declaration
Swift
override public func hash(into hasher: inout Hasher)