RE: Creating a file containing both an image and text
RE: Creating a file containing both an image and text
- Subject: RE: Creating a file containing both an image and text
- From: Arthur C. <email@hidden>
- Date: Thu, 17 Jan 2008 21:29:07 +0100
- Importance: Normal
> 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:
This email sent to email@hidden