I am trying to create a RTFD file that would contain text (NSString
) and images (JPG). I have not found an easy to follow example that explains this process. If my application has some text and some JPG images, and I'd like to create an editable document containing both of these items, RTFD seems like the best option for output (I want to preserve quality of the image).
If someone could present a simple example showing how to do the text and images that would be helpful. I am also open to doing RTF, as long as image quality is preserved. This is for a Mac OS application.
I've been trying to follow the Attributed String Programming Guide, but am unclear on how I can output my NSAttributedString
and get the bundle created. And secondly, how I get the image references into not only the RTF file, but the bundle where they need to be.