Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Creating a file containing both an image and text



> But the question remains: how can I add text (from an NSString) to this PDF? > Or alternatively, like in my first attempt, how to include the PDF image into an RTFD file. 
A working solution (although not the most elegant) is to create a simple RTFD file using TextEdit, containing a PDF image and some text.
Then, paste the RTF header in our Cocoa program, and substitute our own PDF image from
  [NSWindow dataWithPDFInsideRect: myRect]
and our own text...
Saving that to a folder named '.../myRTFD.rtfd' including the pdf file and 'TXT.rtf' does the job.
 
 
Best regards,
 
Arthur C.
 
 
 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Creating a file containing both an image and text (From: Arthur C. <email@hidden>)
 >Re: Creating a file containing both an image and text (From: Andrew Farmer <email@hidden>)
 >RE: Creating a file containing both an image and text (From: Arthur C. <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.