Re: Writing extremely large RTF or .doc files
Re: Writing extremely large RTF or .doc files
- Subject: Re: Writing extremely large RTF or .doc files
- From: Ken Tozier <email@hidden>
- Date: Sat, 18 Jun 2011 02:08:37 -0400
On Jun 18, 2011, at 1:49 AM, Dave DeLong wrote:
> Fair enough. This is certainly a great alternative to stripping out the document level attributes, but I'd still prefer the format to be as "native" as possible. Using HTML like this feels a bit kludgey.
>
> Dave
There's nothing particularly kludgy about using HTML to create styled text documents. The entire internet is based on it. Once the html file is created, you can save it as RTF and any residual kludgyness goes away. If the minor hack of writing a header and footer to a file bothers you, there's always NSXMLDocument which will allow you to do basically the same thing as the hack, in a completely clean way. Not sure about streaming partial xml nodes though, you'd have to look into it
http://tinyurl.com/NSXMLDocument.
Good Luck!_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden