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: Jean-Christophe Helary <email@hidden>
- Date: Sat, 18 Jun 2011 17:02:36 +0900
On Jun 18, 2011, at 4:15 PM, Joar Wingfors wrote:
>> I surely can't be the first person to want to do this, so I ask: what have I missed? How can I generate extremely large rich-text files without having to build the entire file in memory before writing it out?
>
>
> Perhaps your requirements for RTF formatting are simple enough that you can create the document "manually", not relying on the capabilities provided by Cocoa / NSAttributedString? And in that case simply append to the document as you traverse your db. I've never looked at the RTF spec., so I've no idea how feasible that would be...
Unless the documents involve a lot of non ascii texts, creating RTF "by hand" is pretty trivial. I'm using Oreilly's RTF Pocket Guive for reference for all the RTF formatting I need. And I think the author has a site where you can get the samples and see what kind of RTF coding is required.
Jean-Christophe Helary
----------------------------------------
fun: http://mac4translators.blogspot.com
work: http://www.doublet.jp (ja/en > fr)
tweets: http://twitter.com/brandelune
_______________________________________________
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