Returns a data object that contains an RTFD stream corresponding to the characters and attributes within the range.
- macOS 10.0+
A required dictionary specifying the document attributes. The dictionary contains values from Document Types and must at least contain
A data object containing the RTFD stream containing the characters and attributes.
Writes the document-level attributes in
doc, as explained in RTF Files and Attributed Strings.
range if any part of
a lies beyond the end of the receiver’s characters.